Hello, I've a problem using F021 Flash API with TMS570LC4357.
I'm using tms570lc4357 MCU and F021 Flash API v02.01.01 for EEPROM Eemulation Flash Bank 7. When I try to 4 byte or 8 byte write every cycle, there is no problem. The value that written into Bank 7 doesn't change. But if I try to write 2 byte, the vale of written into Bank 7 has been changing. I've read 'F021 Flash API Reference Guide' and 'Advanced F021 Flash API Erase/Program Usage' documents but I didn't see anything about this issue. Here is my code
uint32_t for_counter_u32 = 0 ; uint8_t temp_data_buf [8U] = {0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45, 0x45}; uint8_t write_size = 4U ; while(for_counter_u32 < 0x00020000) { Fapi_issueProgrammingCommand( (uint32_t*)(0xF0200000U + for_counter_u32), temp_data_buf , write_size , NULL , 0U , Fapi_DataOnly ); for_counter_u32 += write_size; }
write_size = 4U;
write_size = 2U;