I'm working from the ARM documentation on Interrupts for the FRDM KL25 and am converting to run on the FRDM KL43. The code is CMSIS-based and I'm trying to keep my code CMSIS-compatible. I ran across the setting and clearing of "Debug Port" register at the beginning and end of the example ISR. Seems to be fine for the KL25, but MCUXpresso doesn't recognize it among the header files for the KL43.
Is there an equivalent register on the KL43 for enabling/disabling debug mode on the FRDM KL43? (what I'm assuming the attached code is doing)
The two lines that are causing problems are toggling an output so that the time spent in the interrupt routine can be measured. You can comment them out if you don't need them.
Presumable in your KL25 project you have a define somewhere for the port being used and the bit being toggled (DEBUG_PORT and DBG_ISR_POS) - if you search for these you will find which port and bit are being used and you could alternatively copy the same defines to your KL43 project (or change them to suit).
There is no debug register that only certain chips have since you will find it to be a simple define to one of its GPIO register sets. It also has nothing to do with CMSIS - just user code.
Kinetis KL25, KL26, KL27, KL28, KL82, KL43, KL46
Build with: CW10.x, KDS, MCUXpresso, IAR, Keil, Greenhills, Crossworks, CooCox, Atollic, S32 Design Studio, GNU Make and Visual Studio
GPIO interrupt video: https://youtu.be/CubinvMuTwU
For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html