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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
959件の閲覧回数
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 解決策
605件の閲覧回数
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 返答(返信)
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 件の賞賛
返信
605件の閲覧回数
master_szumi
Contributor III

Thanks Luis, it works.

 

Solved.

 

Regards

Jakub

 

0 件の賞賛
返信