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.

C2prog bootloading... echo error.



I am trying to programming F2808 serially using C2prog. I used USB to RS485 converter as the MCU is connected to RS485. When i try to send a hex file, the autobaud is Ok. However, i get the following error

CRC Info added at 0x003F44A6: 0x0E21 0x019A 0x0000

*** PLEASE RESET TARGET IN SCI BOOT-LOADER MODE ***
Connecting with target (autobaud)...  OK.
Bootloading...  failed (invalid echo)!

 I have tried to change the baud rate of my PC and targets in the .xml file of C2prog as is recommended in the C2prog FAQ but still i get the same error.

For no tangible reason(out of curiousity), i tried to change the frequency in the C2prog, i got the following error.

CRC Info added at 0x003F44A6: 0x0E21 0x019A 0x0000

*** PLEASE RESET TARGET IN SCI BOOT-LOADER MODE ***
Pinging target... Baudrate locked.
Bootloading...  communication timed out!

The most interesting thing is that after i have changed the frequency, the program which were in the MCU (F2808) flash gets executed and Test LEDs blink .

Any recommendation to solve this? Is there a possible problem introduced by the USBtoRS485 converter?

  • Hello!

    Did you try all available options of C2prog (for F2808 there are several options)? Some time ago I had the similar issue with F28335 & USB JTAG connection. C2prog was offering option by default which was generating error message like above. I had to manually select the option and I found right one in the end.

    Regards,

    Igor

  • Hi Igor,

    What do you mean "Available options of C2prog"? Different versions? 

    Regards

  • Regards,

    Igor

  • Hi Igor,

    I have tried every possible frequency.  That is why i have posted about the different results i get when i change the options. It is not working. I have changed the baud rate, added frequency in the .xml file of the targets which does not really help.

    I thought there could be probably some problem in connection to my USBtors485 converter. By the way, that same connection works for Modbus communication and other serial loading softwares. The only problem is with C2prog.

    Regards

     

  • Hi!

    Tsegay Hailu said:

    The most interesting thing is that after i have changed the frequency, the program which were in the MCU (F2808) flash gets executed and Test LEDs blink .

    Could you please explain this sentence in details? Do you mean that C2prog loads firmware into flash anyway?

    Regards,

    Igor

  • Hi,

    In the option, i changed the frequency from 20 MHz to 30 MHz (Note i have added different baud rates in the .xml target file for both frequencies). There is a program initially loaded in the MCU that toggles an LED. When i use the 20 MHz in the C2prog, shorting Pin 34 to ground, nothing happens(The LED does not toggle unless i unshort pin 34 and restart the power supply). However, when i use the 30 MHz, the LED starts blinking immediately after i press the program button. Which i would not expect it at all. Why i have no idea?

  • Hi!

    Well I think these are some glitches. Obviously at first case a reset doesn't take place but at second case one does. This thing is dark. But why your converter does not provide a connection to the device for the C2prog exactly?...

    Do you have USB connector on PC & RS485 on target device or vice versa?

    Regards,

    Igor

  • Hi

    USB at the PC and RS485 at the target.

    Regards

  • Hi!

    Did you try (in C2prog menu): Configure Ports...>Scan Ports. Do you see that your device target port is presented in port list?

    Regards,

    Igor

  • Hi,

    I did that and the device port is recognized.

    Regards

  • Hi!

    Ok...What else?...Did you check your GPIO settings for activation of SCI Boot mode according Chapter 3.2.9 Table 3-7 (p.35) of DM 2867.tms320f2808.pdf? And just in case 7345.TI_boot_rom_spru722c.pdf (mainly p.26).

    Regards,

    Igor

  • Hi Igor,

    The GPIO settings are correct. I have question for the second recommendation. Is not the C2Prog that handles the SCI boot? Do i need to have SCI boot function in my program? My program is a simple GPIO toggle function modified from the tutorials for F2808.

    Regards

  • Hi!

    BTW. How you have loaded your firmware (out-file) to flash (with what utility?)? Did you use the same USB/RS485 converter?

    Regards,

    Igor

  • Hi Igor,

     

    The F2808 i got is loaded with some firmware for AC/DC power supply converter. I also used some software given by the designer of the AC/DC Converter. I used that to load the F2808 for the specific firmware they gave me. However, it can only load a file with .mhx, not with .out file or.hex file. I want to use C2Prog for that purpose. If you could also know a way of converting .out file to .mhx, i would appreciate.

    If you know, i am using matlab for creating .out file. If there is a way of converting matlab code to .MHX, i would also appreciate. Which i can use their software for loading.

    I am very new to this field and it is taking my hell time in understanding all the details.

     

    Regards

  • Hi Tsegay!

    This very important information which you should put in the first post. Well let's go ahead.

    Tsegay Hailu said:

    I also used some software given by the designer of the AC/DC Converter. 

    1 Do you use your USB/RS485 converter with this software to load to flash the *.MHX files?

    2 let's specify again about GPIOs: GPIO18, GPIO29, GPIO34 = 1. Is it so?

    Regards,

    Igor

  • Hi Igor,

    The software i used has not nothing to do with the PINs. It works like this.

     DC power off to the MCU, Start loading to the flash, and Turn on the DC power (with in 1 second). This works. 

    When it comes to the C2prog, i shorted pin 34 to ground and i have a pull up resistor for GPIO 18 and 29 already made in the circuit.

    Regards

     

  • Hi!

    Tsegay Hailu said:

    The software i used has not nothing to do with the PINs.

    I see. I didn't mean this. I mean that on board: GPIO34,18,29 = 1 ("Boot to Flash mode"). And you have not answered my first question about using converter.

    Regards,

    Igor

  • HI Igor,

    Pin 18 and 29 are with pull up resistor in the board i have and pin 34 has a jumper. So i connected pin 34 to ground which makes Boot to SCI ( 110).

    The converter i am using is USB COM485-PLUS1. Normally this converter is to get half duplex 485 communication as required by the power supply communication terminal (rs485). I had to change some pin connection by using DP9 exchanger as the usbrs485 converter and the terminal connector have different pin configuration. It is now working for the other softwares but it is not only working for the C2prog software.

    I hope i have answered your question.

    Btn thanks for the help you are giving. Bless you

     

    Regards

  • Hi Tsegay!

    1) I see. Thanks for answer.  If other applications work with new pin connection then you done all right. I would specify some things about pin 34. According Data Manual (Chapter 3.2.9 Table 3-7 (p.35)) when you loading flash via SCI (with using software from your provider) pin34=0. But after loading you need to pull out jumper to set pin34=1. Only at this case your firmware will start (GPIO34,29,18=1 "Boot to flash mode"). Is it so?

    2) And I'm sorry for my inattention or language problems. I understand that USB COM485-PLUS1 works with other applications except C2prog. But do you apply USB COM485-PLUS1 with software which you got from your provider for loading flash or you try to apply one with C2prog only?

    Regards,

    Igor