Tool/software: TI-RTOS
Hi,
I made a custom board works with SYS/BIOS on XIP(but exactly same as IDK, except part suffix..(I'm using MX66L51235F'Z2I'.)
Because I use XIP, I can't use Board_readFlashStorage(), Board_writeFlashStorage() and the fuctions in qspi_lib.c.
I need to save some data in the board, so I tested this code.
main()
...
        *(volatile int*)(0x3001F000) += 1;
...
BIOS_start();
...
Task()
{
while(1)
        CONSOLEUtilsPrintf("%4u\t", *(volatile int*)(0x3001F000));
}
...
I expected count value increase when re-powering, but it has the value 0.
Should I do something before flash writing? If so, how could I do that without library functions?
I read about 3/4-byte address mode setting things, but it is so confusing me..(destination address is lower than 0xFFFFFF..)
(How could I send a command to flash? I'm using flash memory all time, and the code is in flash memory, isn't there something to be wrong?)
I used memcpy() function like this, but the data isn't saved(but it seems to succeeded before power-off, the data goes away after power-on.)
memcpy((volatile int*)destination, (char*)data, datasize);
I couldn't use L3 build because application size exceed the RAM size..
Thank you,
YK.
 
				 
		 
					 
                           
				