Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hi,
To dump code into flash of a 379D controller, we are currently use debugger via JTAG. Now the requirement is such that a common point of code dump should be done and there are multiple DSPs, so each of this DSP would receive the required code. All the DSPs are connected to a common CAN A bus. Given the document from TI "sprad51a" about CAN Flash Programming of c2000 microcontrollers, we are following the steps. However, I stumbled across a few doubts which needs to be clarified:
1. My understanding is after setting the GPIO 72 and 84 to Get Boot Mode (both GPIOS pulled high through SW1), we need to set the Z1 BOOTCTRL register BMODE and KEY to 0x07 and 0x5A in order to receive code into flash of DSP through CANA. Now, question regarding this is, how do I program the Boot Mode in Launch pad? Like my understanding is we need to set up the boot mode before the application code begins. Now the BOOTCTRL register is Read only, so how do I write to it and if so, when to write (in which file). I saw that there are some OTP based concepts, I am not clear about it.
2. After I am done with this, from the documentation, I am trying to use the dcan flash programmer. However, the examples specified in the document as: dcan_flash_programmer.exe -d f28003x -k flash_kernel_ex5_dcan_flash_kernel.txt -a led_ex1_blinky.txt -v . I have found the flash kernel and i have generated the led_ex1_blinky.txt from the application code. MY question is whether I have selected the correct settings while generating the application.txt? I am attaching the screenshots of what options I have selected.



3. If the above steps are correct, then I have the proper application txt. Now I open command line and write the command under the folder where dcan flash programmer.exe is present. Now, when I do that I only change the device name from f28003x to f2837xd as per my DSP. However, it does not recognize the device name and the following message pops up:
-d <device> - The name of the device to load to.
f28003x, f28p65x, f280015x
Kindly tell me what should be the device name for the TMS320F28379D Dsp. Also, let me know whether we need to modify the flash kernel anyways for this particular dsp as I am not sure whether the current flash kernel can be used or not with F28379D dsp? And if so, what should be modified in particular? Same query about the dcan flash programmer.exe also.
4. With respect to point 1, I have tried to edit BOOTCTRL register from the Tools -- > ON chip flash settings after debugging through debugger. In that I came across Z1 OTPBOOTCTRL. It was originally 0x FFFFFFFF. I re wrote that as 0x 0000 075A to enable it to work through CAN dump mode. However, even after doing that, when I debug through a debugger, the code goes to RAM and code runs. Shouldn't it be only working if dump code through CAN A only as I reprogrammed the Z1 BOOT CTRL get boot mode. Or does dumping code through debugger over writes all these? But when I comment RAM linker cmd file and use Flash linker cmd file, the code goes to it but it doesnt run. It says 






