S32K312 BusFault using AUTOSAR RTOS

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

S32K312 BusFault using AUTOSAR RTOS

跳至解决方案
461 次查看
eusebiudapatech
Contributor II

Hello,

I am getting a BusFault at the following generated line:

eusebiudapatech_0-1744479144916.png

eusebiudapatech_2-1744480142903.png

The function is called in StartOs() function and it write the STM0 control register.

The code is generated from Tresos using the RTOS and RTD plugins.

I have checked the address and it's the correct STM0 control register address.

eusebiudapatech_1-1744480116734.png

 

 

0 项奖励
回复
1 解答
419 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @eusebiudapatech,

Is the STM0 clock enabled?

MC_ME PRTN1_COFB0_STAT[29]

danielmartynek_0-1744621231780.png

 

Thanks

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
420 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @eusebiudapatech,

Is the STM0 clock enabled?

MC_ME PRTN1_COFB0_STAT[29]

danielmartynek_0-1744621231780.png

 

Thanks

 

0 项奖励
回复
412 次查看
eusebiudapatech
Contributor II
Thank you for the hint. I didn't call the Mcu_SetMode API to switch to RUN mode where STM0 is enabled. That solved the problem.
0 项奖励
回复