Just a note to those using the Keil toolchain like me:
The default value of FLASHTIM in the FLASHCFGx registers is 4 after reset (appropriate up to 107 MHz according to the user manual).
The system_LPC43xx.c file from Keil changes the clock frequency but doesn't set FLASHTIM accordingly
(at room temperature it runs fine at that setting, so nobody seems to notice).
With the correct setting the execution time increases by about 40% in my application.
BTW, the CREG structure in the LPC43xx.h header in the latest CMSIS (2012-12-12) doesn't contain FLASHCFGA/B,
it would be .nice if it could be updated.
Sorry, I didn't want to modify LPC43xx.h, so I just cast the addresses to pointers locally.
(BTW, the startup code in the latest CMSIS uses offsets from CREG_BASE to initialize these registers.)
Thanks! Would you mind posting your modified file so we can make use of it please?
Cheers
Richard