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.

Problem with writing OPT Bootloader (with CAN)

Other Parts Discussed in Thread: TMS320F28335

Hi.

Could you can help please with OTP writing problems?

I create own OPT Bootloader with CAN interface. How I do. I used example from TI site with OTP for 2812 and update code for 28335 with addidtion of our company protocol, and a little updated *.lnk, because searching why it not work. Actualy it is like prposed by TI, but added additional perepherials in LNK. More of them, I tied are few *.lnk linker files... Last version it just united sections as one. (instead of separated by .stack and .bbc anf .text)

And created Release compiled solution just do "Rebuild All" and F11 (to download into Flash) also tried classical "connection->...." result was same, Error.

Problem reproduce as: I has been tried download my OTP program into DSP TMS320F28335 (CCS v5) , But CCSv5 inform me about strange error like:

C28xx: Flash Programmer: Error encountered when writing to Flash memory
C28xx: Error writing: Flash @ address 0x00380400 of length 0x000003F8
C28xx: GEL: File: D:\work\...bla_bla...\my_file.out: load failed.

I was tried are few different board with new DSP problem same.

I not sure that it problem of CCS, think some other but don't know what

More of then, I tried to find detailed instruction how to correct write into OTP - no results.

Also tried set BOOT_PINS in to Flash_Mode and OTP_Mode, no differences.

  1. //       $Boot_Table:   
  2. //   
  3. //         GPIO87   GPIO86     GPIO85   GPIO84   
  4. //          XA15     XA14       XA13     XA12   
  5. //           PU       PU         PU       PU   
  6. //        ==========================================   
  7. //            1        1          1        1    Jump to Flash   
  8. //            1        1          1        0    SCI-A boot   
  9. //            1        1          0        1    SPI-A boot   
  10. //            1        1          0        0    I2C-A boot   
  11. //            1        0          1        1    eCAN-A boot   
  12. //            1        0          1        0    McBSP-A boot   
  13. //            1        0          0        1    Jump to XINTF x16   
  14. //            1        0          0        0    Jump to XINTF x32   
  15. //            0        1          1        1    Jump to OTP   
  16. //            0        1          1        0    Parallel GPIO I/O boot   
  17. //            0        1          0        1    Parallel XINTF boot   
  18. //            0        1          0        0    Jump to SARAM       <- "boot to SARAM"   
  19. //            0        0          1        1    Branch to check boot mode   
  20. //            0        0          1        0    Boot to flash, bypass ADC cal   
  21. //            0        0          0        1    Boot to SARAM, bypass ADC cal   
  22. //            0        0          0        0    Boot to SCI-A, bypass ADC cal   
  23. //                                              Boot_Table_End$  

Help please, project in fire.