With MCUXpresso I developed an application, which takes about 2.5 million CPU cycles on an i.MX RT1010 MCU, running at 500 MHz. Then I compiled and run the same C source code for the i.MX RT1050, with the same optimization (-os). The code is executed from the flash, cache enabled.
Surprisingly, the RT1050 takes 3 million CPU cycles for the same task (measured with the DWT registers).
- What can be the reason for the larger CPU cycle counts on the RT1050?
- What can I do to get the smaller CPU cycle counts of the RT1010 on the RT1050?