Flash EEEWrite not properly generating code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flash EEEWrite not properly generating code

519 Views
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 Kudos
Reply
1 Reply

396 Views
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 Kudos
Reply