IRQHandler on KL43Z: "DEBUG_PORT"?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IRQHandler on KL43Z: "DEBUG_PORT"?

564 Views
drsmith_yorku
Contributor III

Hi,

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) 

thanks!

James

  

KL25_IRQ_DEBUG_.PNG

Labels (1)
0 Kudos
2 Replies

443 Views
mjbcswitzerland
Specialist V

James

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.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html
Kinetis KL25, KL26, KL27, KL28, KL82, KL43, KL46
- http://http://www.utasker.com/kinetis/FRDM-KL25Z.html
- http://www.utasker.com/kinetis/TWR-KL25Z48M.html
- http://www.utasker.com/kinetis/FRDM-KL26Z.html
- http://www.utasker.com/kinetis/TEENSY_LC.html
- http://www.utasker.com/kinetis/FRDM-KL27Z.html
- http://www.utasker.com/kinetis/Capuccino-KL27.html
- http://www.utasker.com/kinetis/FRDM-KL28Z.html
- http://www.utasker.com/kinetis/FRDM-KL82Z.html
- http://www.utasker.com/kinetis/FRDM-KL43Z.html
- http://www.utasker.com/kinetis/TWR-KL43Z48M.html
- http://www.utasker.com/kinetis/FRDM-KL46Z.html
- http://www.utasker.com/kinetis/TWR-KL46Z48M.html

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

Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M

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

0 Kudos

443 Views
drsmith_yorku
Contributor III

Thanks Mark.  Should have realized that.  I also forgot to turn on the clock to Port C... now it's working.  Augh. :-)

all the best,

James

0 Kudos