XMEGA 192 A3 Studio 4.18 problem

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I use the Studio 4.18 (SP3) and a ICEmkII...

my (now very simple :-( Code shows the dollowing in the lss File:

TxData[0]=48;
252: 80 e3 ldi r24, 0x30 ; 48
254: 89 83 std Y+1, r24 ; TxData[1]=49;
256: 81 e3 ldi r24, 0x31 ; 49
258: 8a 83 std Y+2, r24 ;
and so on.....

opening the cof File in the Simulator (V2) all is good an code behaves like it should..... Opening the cof File in the debugger on a XMEGA192A3 CPU gives the following result:
64: TxData[0]=48;
+0000011E: 8000 LDD R0,Z+0 Load indirect with displacement
+0000011F: 0080 ??? Data or unknown opcode
65: TxData[1]=49;
+00000120: 0000 NOP No operation
+00000121: 0000 NOP No operation
66: TxData[2]=50;
+00000122: 8380 STD Z+0,R24 Store indirect with displacement
+00000123: 0000 NOP
... and so on....

Doing the same on the XPLAIn board (with changed cpu to 128a1 in makefile) gives correct result....

any idea ?
bug in Studio with xxxa3 devices ?

add. Info:
Data programmed into Flash and original hexfile are the same (Flash readback and compared)

mhhhh..... after some retrys it seems to work....

Are there any hints to avoid this problem ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Surely that is the wrong address. The .lss shows address in hex as byte addresses. Studio uses words address 0x252 / 2 = 0x129, yet in the above you are looking at 0x11E, see if you have the LDI, STD, LDI, STD sequence shown at 0x129 instead.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for reply, but I cannot check this until this evening.
The curious thing is, that in the simulator AND ind the 128A1 board, the code runs properly, but sometimes not in the debugger (connected to 192A3 CPU).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I tried again and now it works... Now I used PDI and all works fine... how the ICE and/or Studio decides wether to use JTAG or PDI ?