Event handler for external pin interrupt on MKL03 with PE and Designstudio?

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

Event handler for external pin interrupt on MKL03 with PE and Designstudio?

1,464 Views
rolandzitzke
Contributor II

Hi,

I am trying to set up a project for a MKL03Z32 MCU using Design Studio.

I selected processor expert in the project wizard which "automatically" also enabled the SDK somehow.

The only part i am currently struggling with is to configure an external interrupt on an LLWU pin.

I would expect that processor expert creates an OnInterrupt stub function (or simmilar) in the events.c file once I configure the corresponding pin to create an interrupt on "either edge" like it is done - for example - for ADC completion.

However, I can not find any stub or hint on where to put code for the interrupt service. There is an IntMan1 component in the project but it does not offer anything on the "events" tab either.

I found an "ExtInt" component which appears to be what I would need but adding this component to the project is disabled.

So my question is:

How to setup a processor expert project for the MKL03Z32 which executes application code upon occurrence of an external interrupt on an LLWU input pin?

TIA, Roland

Labels (1)
0 Kudos
3 Replies

666 Views
BlackNight
NXP Employee
NXP Employee

The newer devices like the KL03Z are supported by the Kinetis SDK only. So what you expect (ExtInt, OnInterrupt()) is supported with the non-SDK devices and Processor Expert, but not by the SDK, as the SDK is using a different approach. That's why it is disabled for the KL03Z. I'm moving this discussion to the SDK forum.

Erich

0 Kudos

666 Views
rolandzitzke
Contributor II

Hi Erich, thanks for the explanation.

So what is the recommended approach with this? Is usage of processor Expert discuraged as such in favor of the SDK or should people just add their IRQ handlers manually - and if so, on which level?

If initialization is still done by PE then is it safe to use a function like

OSA_InstallIntHandler

to install the handler?

TIA, Roland

0 Kudos

666 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Roland:

What is the status of your project?

Since you have a KL03 and want to use low power modes with LLWU pins, the next documents by colleague Marek Neuzil could be very useful:

How to install KL03 SDK support in KDS 1.1.1 and KDS 2.0.0

Low power demo application on FRDM-KL03Z board

Regards!

Jorge Gonzalez

0 Kudos