AnsweredAssumed Answered

CLOCK_SYS_UpdateConfiguration issue/defect

Question asked by Tommy Svensson on Nov 15, 2016
Latest reply on Nov 16, 2016 by Bogdan Nitu

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.

Outcomes