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

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

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

2,264 次查看
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 项奖励
回复
10 回复数

2,005 次查看
anniepaul
Contributor II

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

0 项奖励
回复

2,005 次查看
petr_uhlir
NXP Employee
NXP Employee

Hi Kiran,

check attached zip file with patched clock settings for twrk60f120m.

Regards Petr

0 项奖励
回复

2,005 次查看
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 项奖励
回复

2,005 次查看
kirankunnath
Contributor II

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

0 项奖励
回复

2,005 次查看
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 项奖励
回复

2,005 次查看
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 项奖励
回复

2,005 次查看
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 项奖励
回复

2,005 次查看
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 项奖励
回复

2,005 次查看
kirankunnath
Contributor II

Is there any updates on this issue?

0 项奖励
回复

2,005 次查看
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 项奖励
回复