FNET Bootloader on K60N512

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

FNET Bootloader on K60N512

跳至解决方案
1,760 次查看
master_szumi
Contributor III

Im using bootloader and with small programs it works OK.

 

I've got huge program with MQX (over 200kb) and bootloader returns me error on writing to address 0x46200.

 

(In debbuger I've noticed: Error is caused by verify function - ram is different than flash)

 

It means that internal flash is corrupted?

 

How to verify if flash is corrupted or not?

 

 

0 项奖励
回复
1 解答
1,410 次查看
master_szumi
Contributor III

 

 

From freescale support:

 

Pls try this code           FNET_MK_FMC_PFB0CR &= 0xFFFFFFE6; /* Single entry buffer disable.*/          FNET_MK_FMC_PFB1CR &= 0xFFFFFFE6; /* Single entry buffer disable. */          FNET_MK_FMC_PFB0CR &= 0xFFFFFFF9; /* Data Cache disable. */          FNET_MK_FMC_PFB1CR &= 0xFFFFFFF9; /* Data Cache disable. */instead of the one you mentioned. I tried this and it worked, at least I didn't get an error. Should you need to contact us with regard to this message, please see the notes below.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,410 次查看
master_szumi
Contributor III

I've noticed that verify function gives error - so I set breakpoint in this function and flash memory is not the same as ram,

but than I let program go and stop it again and flash is equal as ram (flash changed!). Whats up?

 

0 项奖励
回复
1,411 次查看
master_szumi
Contributor III

 

 

From freescale support:

 

Pls try this code           FNET_MK_FMC_PFB0CR &= 0xFFFFFFE6; /* Single entry buffer disable.*/          FNET_MK_FMC_PFB1CR &= 0xFFFFFFE6; /* Single entry buffer disable. */          FNET_MK_FMC_PFB0CR &= 0xFFFFFFF9; /* Data Cache disable. */          FNET_MK_FMC_PFB1CR &= 0xFFFFFFF9; /* Data Cache disable. */instead of the one you mentioned. I tried this and it worked, at least I didn't get an error. Should you need to contact us with regard to this message, please see the notes below.
0 项奖励
回复
1,410 次查看
butok
NXP Employee
NXP Employee

Hi Szumi,

 

I have just checked it, - the new version of cache disabling, does not cause any issue for my Kinetis chip, which I have.

So it will be added to the next version of FNET Kinets flash driver, to cover your Kinetis mask-set.

 

Thank you,

Andrey Butok

0 项奖励
回复