S32K144 I2C Example stopped with RTOS

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

S32K144 I2C Example stopped with RTOS

1,841 次查看
cheoljin
Contributor III

Hello, I am using S32K144 EVB board and S32DS3.4 to develop a program to read data through the I2C. 

But I2C example do not work after adding RTOS as below. 

cheoljin_0-1632829023856.png

IDE Version :   S32DS3.4

Example :   lpi2c_master_s32k144 + RTOS

Target : S32K144 EVB

 

The other thing is below wornning occurred when I start debugging. 

Warning 17927. Target MCU mismatch. Download performance limited. See http://www.pemicro.com/opensda/pe_tools.cfm for information on debugging external processors.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS.3.4\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_5.1.0.202109011413\win32\gdi\P&E\supportFiles_ARM\NXP\S32K1xx\freescale_s32k144f512m15_pflash_dflash_eeprom.arp

Thanks. 

0 项奖励
回复
4 回复数

1,780 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @cheoljin,

It could be a fault exception.

Please follow these instruction to find the fault instruction and the fault memory address in case of a bus fault.

https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

 

Regards,

Daniel 

0 项奖励
回复

1,826 次查看
cheoljin
Contributor III

As I attached capture, it jump to DefaultISR. 

It looks I2C's interrupt priority issue.  

0 项奖励
回复

1,823 次查看
TomLightning
Contributor III

I am a bit confused due to that your attached project does not use FreeRTOS. It does not start a FreeRTOS scheduler at all. If you think it is a priority issue try to give it a logical lower priority (numerical higher). You can use functions of the interrupt manager driver from NXP for that.

0 项奖励
回复

1,836 次查看
TomLightning
Contributor III

Hello,

at which code section exactly does your code crash? Please, go step by step through your code in Debug Mode.

Best regards,

Tom

0 项奖励
回复