This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069: Erase Flash through USB

Part Number: TMS320F28069


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

  • Hi Marc,

    You just put the usb library itself in RAM. So you only put the USB library functions in RAM. But your application which makes function calls to the USBlib is not in RAM.

    My suggestion is this, create a function which does all your communication and flash erasing, etc. Then place that function in RAM and execute it from RAM.

    sal