Flash EEEWrite not properly generating code

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

Flash EEEWrite not properly generating code

646件の閲覧回数
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 返信

523件の閲覧回数
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 件の賞賛
返信