Part Number: MSP430FR5969
Tool/software: TI C/C++ Compiler
My application's stack is overflowing and stepping on data in the lower parts of RAM. I thought about trying to move everything except the stack out of SRAM and into FRAM but even in that case, I would only have 2k of stack space which I'm concerned might be insufficient. I therefore believe that moving the stack is the better choice. To do that I've been considering:
Moving stack into HIFRAM
This would be the ideal choice because all I would have to do is point the stack section at the top of HIFRAM and I would have plenty of room. Unfortunately, according to the related post from 2016, it seems that the stack pointer register is only 16bits. Is this still the case or has the register size been increased? If $sp is still 16 bits, is there a work around for this problem?
Moving part of ROM into HIFRAM
This option would be more difficult, but I could potentially allocate a portion of the ROM that is currently in lower memory into HIFRAM. Then I could move the stack into the available space. Does this seem like a realistic option?