code limit? (IAR + Kinetis + MQX + FNET)

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

code limit? (IAR + Kinetis + MQX + FNET)

跳至解决方案
960 次查看
master_szumi
Contributor III

Hello.

 

I'm using IAR and developing my project.

 

I've noticed very strange thing - when my code is over 240 000 bytes (code memory), program does not start. When I've just remove any fuction to achieve code limit under 240 000 bytes it works fine. What is wrong?

 

 

IDE = IAR (time limited)

Board = Kintetis K60N512 (tower kit)

Debugger = JLINK

 

Firmware:

FNET bootloader (first 48kb of code)

Application (up to 240 000 bytes works fine)

 

 

 

 

 

 

0 项奖励
回复
1 解答
606 次查看
LuisCasado
NXP Employee
NXP Employee

Hello,

 

Try to add these lines at the beginning of your project code:

 

  FMC_PFB0CR&=~(FMC_PFB0CR_B0DCE_MASK | FMC_PFB0CR_B0ICE_MASK | FMC_PFB0CR_B0DPE_MASK | FMC_PFB0CR_B0IPE_MASK);

  FMC_PFB1CR&=~(FMC_PFB1CR_B1DCE_MASK | FMC_PFB1CR_B1ICE_MASK | FMC_PFB1CR_B1DPE_MASK | FMC_PFB1CR_B1IPE_MASK);

 

It is possible that you have an early silicon in your TWR-K60. There was a bug when crossing flash blocks boundaries.

 

Best Regards,

 

Luis

在原帖中查看解决方案

0 项奖励
回复
2 回复数
607 次查看
LuisCasado
NXP Employee
NXP Employee

Hello,

 

Try to add these lines at the beginning of your project code:

 

  FMC_PFB0CR&=~(FMC_PFB0CR_B0DCE_MASK | FMC_PFB0CR_B0ICE_MASK | FMC_PFB0CR_B0DPE_MASK | FMC_PFB0CR_B0IPE_MASK);

  FMC_PFB1CR&=~(FMC_PFB1CR_B1DCE_MASK | FMC_PFB1CR_B1ICE_MASK | FMC_PFB1CR_B1DPE_MASK | FMC_PFB1CR_B1IPE_MASK);

 

It is possible that you have an early silicon in your TWR-K60. There was a bug when crossing flash blocks boundaries.

 

Best Regards,

 

Luis

0 项奖励
回复
606 次查看
master_szumi
Contributor III

Thanks Luis, it works.

 

Solved.

 

Regards

Jakub

 

0 项奖励
回复