S32K144 I2C Example stopped with RTOS

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

S32K144 I2C Example stopped with RTOS

1,589 Views
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 Kudos
Reply
4 Replies

1,528 Views
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 Kudos
Reply

1,574 Views
cheoljin
Contributor III

As I attached capture, it jump to DefaultISR. 

It looks I2C's interrupt priority issue.  

0 Kudos
Reply

1,571 Views
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 Kudos
Reply

1,584 Views
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 Kudos
Reply