Flash EEEWrite not properly generating code

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

Flash EEEWrite not properly generating code

576 次查看
PaulSMagna
Contributor II

The Flash EEE Write Library block is not properly generating code.

I have selected a UINT16 as the memory type/size and only one byte (the LSB) is being written to EE FLASH. 

 

the code snipet is as follows: 

FLASH_DRV_EEEWrite(&flashSSDConfig, flashSSDConfig.EERAMBase + 0x0F14, 1,
&amplifierboard_B.DataStoreRead10);

 

the method is defined as follows: 

status_t FLASH_DRV_EEEWrite(const flash_ssd_config_t * pSSDConfig,
uint32_t dest,
uint32_t size,
const uint8_t * pData)

size parameter here is set to 1 in the generated code instead of 2.

I have manually updated the code and now it works - setting the size parameter to 2 allows for both bytes to be written. 

 

best regards

Paul

 

0 项奖励
回复
1 回复

453 次查看
Irina_Costachescu
NXP Employee
NXP Employee

Hi @PaulSMagna 

Thanks for pointing this out, this issue was previously addressed by a fix provided in the following link.

Please let us know if this solves the code generation issue of the Flash EEE Write block for your case as well.

Thank you,

Irina

 

0 项奖励
回复