Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hi team,
I develop application using ind_comms_sdk_am243x_09_02_00_15.
I checked flash reading and writing, with lower program.
I write the data "0F0F0F0F0F.....", and read it.
But, read data sometimes changes to "0b" from "0f".
Could you tell me why this happen, and how to perceive and avoid this.
uint8_t write_flash[32]={0}; uint8_t read_flash[32]={0}; OSAL_MEMORY_memset(write_flash,0x0F,32); //write "0F0F0F0F....." to flash error = NVM_APP_write( NVM_TYPE_FLASH, CONFIG_FLASH0, 0x400000, 32, (void*)write_flash ); //read from same section of flash error = NVM_APP_read( NVM_TYPE_FLASH, CONFIG_FLASH0, 0x400000, 32, (void*)read_flash ); for(uint32_t i=0;i<32;i++){ OSAL_printf("%02x",read_flash[i]); } //the result "0f0f0b0f0b0b0f0f0f0f0..." OSAL_printf("\r\n");
Best regard,
Oyama