Other Parts Discussed in Thread: UNIFLASH, MSP430WARE, MSP-EXP430FR5739
Hi,
I am pretty stumped on this one. I am trying to program the MSP430FR5739 (connected to a EXP-MSP430FR5739 board); initially everything went fine, but at some point it failed when flashing the code.
If I commented out section of the code, it was able to flash the chip. From what I can tell, it is related to the output size.
To make sure it was not RAM issue, i bumped the stack size. Even at 768 bytes, I still got the error. It seems to be related to how it allocates the FRAM on the chip. I am not familliar enough with the .cmd file syntax that I am able to figure out how to adjust code base size (.text?).
Looking at the CCS Memory Allocation view, I can see the total FRAM is 15744 bytes (as expected). In total 2184 bytes are in use (13%), but it still fails. If I comment out sections of my code, the FRAM usage drops to 1864 bytes (11%), it works correctly.
Is there any way I can tweak the memory allocation to allow for larger code base? 13% utilization should not be that big of an issue IMHO. The .cmd file is default generated by CCS; however I tried to define __LARGE_CODE_MODEL__ but it did not help.
I have very few constants defined and I dont need a lot of memory, I just need more programming bytes.
Thanks!
Edit: I have uploaded the two project files. One is able to debug just fine, the other fails with the "MSP430: Failed Soft Reset: Could not communicate with FET" error. The only difference is PPM.c line 43 is commented out in the working version. It is setting a single value in a struck; it cannot be the source of the failure.
I also tried to use UniFlash to flash the .hex file to the chip; with exact same error message.