Other Parts Discussed in Thread: MSP430F2370
Hi,
I've read through the app note SLAA140 a few times regarding mixing ASM and C in a MSP430 design. In a current design, I've implemented a subroutine in ASM and followed the instructions to PUSH/POP all of the used registers (I am actually using R4-R11 !) upon entering and exiting the routine. I am concerned, however, that I am still missing a step as the subroutine seems to sometimes cause the MSP430 to reset. I've narrowed the cause down to this routine by commenting out the code during debugging. Note that when I am running this subroutine, I also have interrupts disabled, mainly to prevent a stack explosion.
Any suggestions for things to review would be appreciated.
Regards,
Chris