Hey:
I am really hoping someone can show me the error in my ways here, but in the meantime a quite elementary MCUXpresso 11.3 generated project for the LPC55S06_EVK board crashes when executing CTIMER_init().
A stripped down, just-the-basics project is attached. I have started with a default '55S06 project and used the clock tool to enable the CTIMER2 clock and the peripheral tool to enable CTIMER2 (no pins used). In this example (and every other combo I've tried), program execution will go into deep space in the tool generated CTIMER_Init() on this line:
/* Setup the timer prescale value */
base->PR = CTIMER_PR_PRVAL(config->prescale);
This same code generated for the LPC55S16_EVK board works, but not here for the LPC55S06_EVK. Of course, your example project lpcxpress55s06_ctimer_match_interrupt_example works but find it frustrating what while you promote the pin, clock, and peripheral tools you studiously avoid using them in your examples. I do find in your example base->PR is assigned 0 whereas the peripheral tool prohibits that value.
I have spent considerable time ever more my simplifying my sample and I think it's about a simple as it can get, yet the code refuses to execute. I could, of course, adapt your sample and use it in the short term, but I think skating over the issue will come back to haunt the project at a later date.
Thanks for any insights!
PS: When this code crashes, the only way I've found to de-brick my LPC55S06-EVK board is to use a J-Link as an external debugger and chip-erasing with J-Flash. If anyone knows how to recover with LINK2, please share....