This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[C6670] Problem with enabling/disabling GIE

Guru 15520 points

Hi,

I have a question about MCSDK FFTC example project for C6670.

I'm testing the "FFTC_Multicore_exampleProject" using C6670EVM.
In the example there are system_init() API. In system_init() the following
APIs are called:
==================================
system_init()
{
 Qmss_init(){
  key = Qmss_osalCsEnter();
  
  ・・・
  
  Qmss_osalCsExit(key);
 }
}
==================================

I have a question about Qmss_osalCsEnter() and Qmss_osalCsExit().
These API control GIE bit field of CSR.
Qmss_osalCsEnter() will disable GIE and Qmss_osalCsExit() will enable GIE.
But when I execute the program and check the GIE bit field just after Qmss_osalCsExit(),
it never enables the GIE.
Is there any information that why GIE never get enabled by this API?

best regards,
g.f.

  • It shouldn't enable it upon exit but instead set it back to it's former state prior to entry.  For example if an interrupt service routine is what called the API, then GIE would have been disabled prior to entry and you would not want it enabled upon exit.

    Best Regards,

    Chad