Hello
I have created a new project from scratch where I use LPUART13 and LPSPI2 slave. And it works so far, but only if I load the code twice after a reset or power on. I checked the configuration several times but I couldn't find where I made a mistake.
Does anyone have any idea what is going wrong here?
Thanks!
Solved! Go to Solution.
Hello JoDo,
I'm not sure what is the root case here.
Can you use flash instead?
Hello Johannes,
Do you load it to Flash or SRAM?
What does it mean it does not work?
Regards,
Daniel
Hello Daniel,
thanks for the answer.
Yes, I am loading the code in SRAM (debug).
It is a bit curious. When I load the code the first time after a reset or PowerOn and send data to the SPI slave, no interrupt handler is called. I stop the debugger and reload the same code into RAM. After that the handler is called without problems.
I also checked the NVIC Interrupt Registers:
Regards,
JoDo
Hello JoDo,
I'm not sure what is the root case here.
Can you use flash instead?
Hi Daniel,
I had problems with the PLL causing an exception when I loaded the code into flash (RTD 1.0.0 code drop1 issue). When I was working with RAM, there were no such issues. However, I disabled the PLL and now work with Flash. The interrupt handler is also called after reset or power on.
This means for me that working (debugging) with RAM is not so reliable.
Regards,
JoDo