Part Number: MSP430FR5992
Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hi,
I am using an SPI bootloader for the MSP430FR5992 processor.
The situation looks like this:
1. I'm uploading the bootloader, using a debbuger or uniflash interchangeably.
2. I upload the application via SPI.
3. I go to the application - the application works properly.
4. I reset the processor by turning off the power and the application starts but does not work properly. This means I cannot set the digital outputs to high and the interrupts do not work. I made sure that interrupts are re-enabled via __enable_interrupt(). I also clear PM5CTL0 &= ~LOCKLPM5;
It looks a bit as if some configuration that is set in the bootloader causes the application to work properly, but the second time after powering up, when the bootloader is bypassed and we go directly to the application, not everything works properly.
For example, if I set the SPI configuration in the bootloader before checking the flag whether the application is available and then enter the application, communication with SPI interrupts works. However, if this configuration is not in the bootloader, the application will not work even though the same SPI configuration is present at the very beginning after application startup.
What could be the problem? I'm running out of ideas :)
Regards