Hi,
I am using the TMS570LS1224. I have a bootloader on it which is functional and can flash a main program and then jump to the main program.
I use the FEE area for a few things: to store a checksum, the bootloader version, and also a reset reason. The idea is that if the main program is running and is told that it needs to be updated, it sets the reset reason to a specific value, and then reboots. The bootloader then reads the reset reason from FEE and if it is set to the value meaning to stay in the bootloader so the main can be updated, then it stays in the bootloader.
I have the FEE working in the bootloader, and it also seems to work if I download the main code and debug it. However, if I run the bootloader, flash the main application and then try to access the FEE I get an undef exception.
I am properly flushing the pipeline when using the fapi. Currently I initialize FEE at the beginning of the bootloader, and then initialize it again at the beginning of the main program.
Do I not need to initialize it twice? Is there something else I need to initialize in order to use the FEE in the main app after using it in the bootloader?
Thanks,
David