Problem of Processor Expert generated low power BSP code for K60F for 2 MHz clock configuration

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

Problem of Processor Expert generated low power BSP code for K60F for 2 MHz clock configuration

1,552 Views
kirankunnath
Contributor II

Hi,

We are testing low power  mode for K60 Tower board.

Processor Expert generated low power BSP code on for K60F for 2 MHz clock configuration and the VLPR power mode is not working as it is getting stuck in an endless while loop.

while((MCG_S & MCG_S_IRCST_MASK) == 0x00U) { /* Check that the source internal reference clock is fast clock. */

        }

It was mentioned that the CW10.2 version has this problem but it is rectified in CW10.3 version. We are using CW10.5 with MQX 4.0 . but still has this problem.
Kindly provide the solution for resolving the same.

Regards,

Kiran

0 Kudos
10 Replies

1,293 Views
anniepaul
Contributor II

Can you please give details on the bug in the generated CPU.c file.

0 Kudos

1,293 Views
petr_uhlir
NXP Employee
NXP Employee

Hi Kiran,

check attached zip file with patched clock settings for twrk60f120m.

Regards Petr

0 Kudos

1,293 Views
kirankunnath
Contributor II

Thank you for your support.

I have checked with the files you have given, but the same issue again. It hangs in the while loop in CPU.c file.

while((MCG_S & MCG_S_IRCST_MASK) == 0x00U) { /* Check that the source internal reference clock is fast clock. */

        }

I have generated the PE code for DAC along with MQX. Hence the PE generated CPU.c file which contains the clock configuration is being executed by the system instead of bsp_cm.c file.

We are using CodeWarrior 10.5 .

Could you please help us to resolve this issue.

0 Kudos

1,293 Views
kirankunnath
Contributor II

Any updates? I am stuck in this issue.....

0 Kudos

1,293 Views
petr_uhlir
NXP Employee
NXP Employee

Hi Kiran,

the issue is fixed in CodeWarrior 10.5 Update 1 which should be already released.
To update your CodeWarrior run Menu -> Help -> Check for Updates.

Regards Petr

0 Kudos

1,293 Views
kirankunnath
Contributor II

Hi,

     We have updated the code warrior as suggested by you, but still the issue persists. There is no difference between newly generated CPU.c file with the CPU.c file before update.

Could you please help us to resolve this issue.

Thanks & Regards,

kiran

0 Kudos

1,293 Views
petr_uhlir
NXP Employee
NXP Employee

Kiran,

have you done any modifications of ProcessorExpert.pe specifically in Cpu component settings? If so please send your ProcessorExpert.pe file.

Regards Petr

0 Kudos

1,293 Views
kirankunnath
Contributor II

Hi,

    Thank you for your quick response

We are not doing any change in the default configuration. Please find the attached ProcessorExpert.pe , CPU.c , CPU.h files.

Please check it and help us to resolve this issue.

Thanks & Regards,

Kiran

0 Kudos

1,293 Views
kirankunnath
Contributor II

Is there any updates on this issue?

0 Kudos

1,293 Views
anniepaul
Contributor II

Hello,

I am also facing the same issue with PE generated code when switching to low power mode.

Please help to solve the issue.

Regards

Annie

0 Kudos