CLOCK_SYS_UpdateConfiguration issue/defect

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

CLOCK_SYS_UpdateConfiguration issue/defect

1,199 次查看
tommysvensson
Contributor II

Hi,

 

I'm writing a hardware initialization + application routine. And I want no interrupts during the init period so I call

INT_SYS_DisableIRQGlobal()

 before init starts, and when init is finished I call

 INT_SYS_EnableIRQGlobal()

.

 

The problem is that during init

CLOCK_SYS_UpdateConfiguration()

 is called. And that function enables global interrupt again. I think this is a bug and the behavior is not a wanted side affect.

The function is calling

__asm volatile ("cpsie i" : : : "memory");

instead of

INT_SYS_EnableIRQGlobal() 

which respects nestled calls to global interrupt.

 

I'm using S32K144_SDK_gcc 0.8.1.

 

Hope this can be fixed in a new version of the sdk.

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

987 次查看
bogdannitu-b454
NXP Employee
NXP Employee

Hi,

This issue will be fixed in the next release.

Thank you!

Regards,

Bogdan

0 项奖励
回复