Toolbox for S32K1xx version 4.1.0 : gpio_isr block building error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Toolbox for S32K1xx version 4.1.0 : gpio_isr block building error

642 次查看
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 项奖励
1 回复

564 次查看
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 项奖励