Toolbox for S32K1xx version 4.1.0 : gpio_isr block building error

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

Toolbox for S32K1xx version 4.1.0 : gpio_isr block building error

600 Views
liuqimin
Contributor IV

Hello:

     A simple model using the gpio_isr module is as follows:

 pastedImage_1.png

    an error occurs when compiling.Is the gpio_isr module not available in this way?

    pastedImage_2.png

 Best Regards!

  Liu Qimin

0 Kudos
1 Reply

522 Views
mariuslucianand
NXP Employee
NXP Employee

Hello liuqimin‌,

What you are trying there will not work since the stdint.h is not included in the right file when the code is generated. You can replace the gpi_s32k_isr.tlc file attached in the toolbox under "src\mbdtbx_s32k\blocks\gpio" folder to make it work.

But, I don't recommend to build the blocks like this due to the following reasons:

  1. the Toggle LED subsystem will update a value when the interrupt is triggered. This value will be provided to the RED_LED GPO Write block only on step time, so the isr is useless.
  2. the constant value provided will only keep the led turned off so you will not be able to see any changes. 

pastedImage_2.png

Another issue is that the GPI ISR Control, must be placed in a part of the code not to be executed at each step time. Basically, like this the program will enable the interrupt to be triggered "when logic 1" so basically it will not do anything.

pastedImage_3.png

Our toolbox comes with the gpio_isr_control_s32k144 examples that shows how to enable and disable the interrupt.

Hope this helps,

Marius

0 Kudos