Other Parts Discussed in Thread: RM44L520
Hi,
I applied this ste-by-step tutorial to execute some parts of my code in the RAM area, with the purpose of getting a reduction of the time execution of real-time critical instructions.
I see in the datasheet SPNS229C figure 5.2 that no wait state is required for RAM access, whereas Flash access requires wait states. I deduce that a reduction of the time execution of critical code can be reach when executing it in RAM.
I checked in my tested MCU that the setup of the wait states is conform with the datasheet (all wait state setup with 0 except RWAIT = 2 because Fcpu=120MHz).
I have checked that the code was really executed in RAM on my RM44L520PZ MCU running at 120MHz. I did not enable any RAM protection (MPU are all disabled).
I made time measurement of the critical code execution and I am disappointed to observe no reduction of the execution time.
Did someone made such execution time measurement and comparisons (code executed in flash and in RAM) ?
Best regards,
JDM