Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22173

MSP430FR2433: Different Stack push on call/calla between IAR simulator and TI FET USB-IF emulator

$
0
0
Part Number: MSP430FR2433
Other Parts Discussed in Thread: MSP-FET

Hello,

I am testing an assembly code containing a call/calla to a subroutine using IAR EW 7+ simulator and TI USB-IF emulator and obtain different behaviours.

By monitoring the stack I discovered that while in simulation the right return-address is pushed on the top of it and the subroutine returns to the correct code instruction, the same does not happen in emulation: a wrong value (0x3FFF/0x3FFF3FFF) if pushed on the stack making the return from the subroutine fail.

Am I missing something in the setup or is there some additional code to be added to emulate correctly? Honestly I would expect that simulation and emulation of the same code produce the same result.

Thanks in advance.

Mauro


Viewing all articles
Browse latest Browse all 22173

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>