Other Parts Discussed in Thread: C2000WARE, UNIFLASH
I have a TMDSCNCD28379D and can successfully build the example led_ex1_blinky project for flash and use the hex2000.exe to generate a .dat file from the led_ex1_blinky.out. I have also successfully used the usb_flash_programmer.exe to program the flash with the generated .dat file using the following:
usb_flash_programmer.exe F2837xD_usb_flash_kernels_cpu01.dat led_ex1_blinky.dat
I then increase the size of the example program by adding a number of functions with asm(" NOP ") to simulate the size of a program we are porting (and want to use the USB flash programmer). The new size is led_ex1_blinky.out - 448608 bytes and led_ex1_blinky.dat - 182914 bytes.
When I try running the USB flash programmer again with the larger file it fails short of writing all of the bytes. It always fails at 132928 bytes (tried a number of times).
Sending 182914 bytes of data from file led_ex1_blinky.dat...
Error sending bulk transfer: 0x0079
132928 out of 182914 bytes sent
USB operation failed!
If I use Code Composer it will erase, program flash, and run the new updated much larger file.
I did modify the linker command file consolidating sectors of flash into FLASHB. But again this works in Code Composer with the larger file. It also works using the USB flash programmer if I remove other code to reduce the file size to get back to the original code.
/* Flash sectors */
FLASHA : origin = 0x080002, length = 0x001FFE /* on-chip Flash */
FLASHB : origin = 0x082000, length = 0x026000 /* on-chip Flash */
FLASHI : origin = 0x0A8000, length = 0x008000 /* on-chip Flash */
FLASHJ : origin = 0x0B0000, length = 0x008000 /* on-chip Flash */
FLASHK : origin = 0x0B8000, length = 0x002000 /* on-chip Flash */
FLASHL : origin = 0x0BA000, length = 0x002000 /* on-chip Flash */
FLASHM : origin = 0x0BC000, length = 0x002000 /* on-chip Flash */
FLASHN : origin = 0x0BE000, length = 0x001FF0 /* on-chip Flash */
Is there a limit for file sizes that can be used with the usb_flash_programmer?
Any suggestions as to what to try?
Thanks for any help.