Hello!
Can I use RAML3 to store program memory there, if I am not using CLA?
I observe that I can use RAML3 up to 50%. If I use more than 50% (0x009800) then my program crashes hard.
-Thomas
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello!
Can I use RAML3 to store program memory there, if I am not using CLA?
I observe that I can use RAML3 up to 50%. If I use more than 50% (0x009800) then my program crashes hard.
-Thomas
Thomas,
I understand now. The RAM is all available to the main CPU. You can try reading/writing to it in a memory window as a simple test. It will take some debug to figure out why the program is crashing. Are there any symptoms? Could the stack be overflowing the allocated memory?
-Lori
Hi Lori,
Sorry for the late replay.
The watchdog caused the RESET.
The problem was that the ISR become too long and so the main loop become too slow. The ISR is written in C (optimizer was off) and the ISR was called every 10us (600 cycles), and the ISR duration was about 450 cycles (if I remember correctly). A little bit longer ISR, made the main loop several times slower.
Now I switched on the optimizer and the ISR duration is ~300 cycles and everything is fine.
Lori, thank a lot for your help.
Lg
Thomas