Hello,
I want to erase some sector Piccolo's FLASH with a command transmitted through USB serial CDC.
I manage to erase the sectors though UART, but with USB I suspect that the library get lost because it resides in FLASH.
So, I tried to place usblib in ram with this code:
usblib : LOAD = FLASHF,
RUN = RAML7_L8,
LOAD_START(_RamUSBLoadStart),
LOAD_END(_RamUSBLoadEnd),
RUN_START(_RamUSBRunStart),
LOAD_SIZE(_RamUSBLoadSize),
PAGE = 0
{
"usblib.lib"(.text)
}
and memcopy it in ram.
But it doesn't seem to work. It's not a compilation error, but i can't communicate after the erase command, and the erase time seems to be "fast".
Do I miss something ?
Anybody tried to do this ?
Best regards,
Marc