Unable to write more then 8K data into 64k flash sector like sector13 in lpc4337 flash

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

Unable to write more then 8K data into 64k flash sector like sector13 in lpc4337 flash

1,925 次查看
vinayshivappa
Contributor I

can anybody help im facing problem like Unable to write more then 8K data into 64k like sector13 in lpc4337 flash ?? even 64K capacity sectors also allowing only 8k data during flash write .

if i provide "IAP_NUM_BYTES_TO_WRITE" > 16384 bytes then ret_code returns error code.im using periph_flashiap example of openlpc SDK..

Kindly anybody suggest or help regarding this issue

Thanks & Regards

Vinay

 

0 项奖励
回复
3 回复数

1,896 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @vinayshivappa 

Please send your project and steps that  how to reproduce your issue, thanks, I will help to check on my side.

 

BR

Alice

0 项奖励
回复

1,872 次查看
vinayshivappa
Contributor I

Hello @Alice_Yang 

I'm attaching flashiap project here,

1. When i tried to write  IAP_NUM_BYTES_TO_WRITE from 8kb to 16Kb .im unable to write it to the Flash sector14 start address 0x1A070000/0x1B070000   even it is 64Kb capacity in both  BankA as well as BankB...

2. /* Number of bytes to be written to the last sector */
#define IAP_NUM_BYTES_TO_WRITE 16384 // 8192 // 32768 //512 in flashiap.c under examples/src

It returns error during debug at ret_code variable as below

ret_code =0x6

instead 0x0 for successful write into flash sectors.

 

Please check and let me know.

 

0 项奖励
回复

1,842 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @vinayshivappa 

Please see UM10503,   Table 53. IAP Copy RAM to Flash command, the number of bytes to be written should be 512/1024/4096, not support 16384. 

Alice_Yang_0-1686043164959.png

 

BR

Alice

 

0 项奖励
回复