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.

TMS320F28379D: Boot Mode for F28379D Control Card

Part Number: TMS320F28379D

Hi,

I'm a beginner with programming microcontrollers, so I apologize about the basic question.  I'm trying to understand each of the four boot modes for the F28379D Control Card.

Could you please explain in simple terms for a newbie what each of the four modes is and what they are used for?

I noticed that I'm able to successfully use the XDS110 debug probe and Code Composer Studio with either Mode #00 (Parallel I/O) or Mode #02 (Wait Boot Mode).  What is the difference between these two modes?  With the debug probe, they both seem to be working equivalently.

I assume that the Get Mode (Flash by default) means that the microcontroller will run a program that is stored in its memory, correct?   What is the Boot from SCI used for?

Thanks,

Kevin

  • Hi Kevin,

    Different BOOTMODE are used to download the code in device via different interface. Parallel IO uses parallel interface and SCI BOOT uses UART interface. If you have not read the BOOT ROM chapter in device TRM, I would suggest to go through the same (Chapter "ROM Code and Peripheral Booting" of device TRM)  to understand different bootmodes in detail.

    Regards,

    Vivek Singh

  • Vivek,

    Thanks for your reply.  I read the "ROM Code and Peripheral Booting" section of the F28379D Technical Reference Manual.  It was helpful, but as a newbie, a lot of it was difficult for me to understand since it is written at a much more advanced level.  Could you please if my basic understanding of these boot modes and their uses is correct?

    1.  Is it correct that the SCI boot mode is used when you want to run and debug your code in CCS and you have a USB cable connecting your computer to pin A:J1 (Emulation/UART Connector) on the Control Card?

    2.  Is it correct that the Parallel I/O mode is used when you want to run and debug your code in CCS and you have a XDS110 Debug probe connecting your computer to the JTAG connector on the Control Card Docking Station?

    3.  Is it correct that the Flash mode is used to run a program that has been stored in the memory of the microcontroller so that you can run without needing to connect your computer and run in CCS?

    4.  Can the Wait mode be used for running and debugging your code in CCS with your computer connected to either the JTAG connector on the Control Card Docking Station or the Emulation/UART Connector Port on the Control Card?  (I noticed that I'm able to successfully connect with the JTAG connector and run my code from CCS with either the Parallel I/O mode or the Wait mode but not in the other two modes).

    Thanks,

    Kevin

  • Hi Kevin,

    As mentioned earlier, if you are connected to CCS then you can just load your code using CCS and irrespective of BOOTMODE, you'll be able to run the code after loading the code via CCS.

    1.  Is it correct that the SCI boot mode is used when you want to run and debug your code in CCS and you have a USB cable connecting your computer to pin A:J1 (Emulation/UART Connector) on the Control Card?

    As mentioned, you don't need SCI boot if CCS is already connected. CCS can load the code via JTAG irrespective of the bootmode pin setting.

    2.  Is it correct that the Parallel I/O mode is used when you want to run and debug your code in CCS and you have a XDS110 Debug probe connecting your computer to the JTAG connector on the Control Card Docking Station?

    No. Same as #1.

    3.  Is it correct that the Flash mode is used to run a program that has been stored in the memory of the microcontroller so that you can run without needing to connect your computer and run in CCS?

    Correct.

    4.  Can the Wait mode be used for running and debugging your code in CCS with your computer connected to either the JTAG connector on the Control Card Docking Station or the Emulation/UART Connector Port on the Control Card?  (I noticed that I'm able to successfully connect with the JTAG connector and run my code from CCS with either the Parallel I/O mode or the Wait mode but not in the other two modes).

    Correct. Wait BOOT is recommended for this though other mode may also work based on your board and device. E.g. if you not programmed your device and BOOT mode is set to Get Mode then on power-up CPU will try to fetch from flash which is ALL_1 (0xFFFF_FFFF) and it'll ITRAP the CPU and cause reset cycle so may not work as expected.

    Regards,

    Vivek Singh

  • Hi Vivek,

    Thanks for your helpful reply.   You said that, "if you are connected to CCS then you can just load your code using CCS and irrespective of BOOTMODE, you'll be able to run the code after loading the code via CCS." 

    However, when I have the dip switches in the position where the boot mode is either "Boot from SCI" or "Get Mode", I get the following error when trying to run my program from CCS (I'm using the TI XDS110 Debug Probe to connect my computer to the JTAG port of the Control Card Docking Station):

    "Load program Error.  File xxxxx.out: a data verification error occurred, file load failed."

    If I should be able to load my code using CCS irrespective of boot mode, why am I getting this error when using the "Boot from SCI" or "Get Mode" mode?  I'm just trying to understand.

     Thanks,

    Kevin

  • Kevin,

    As I mentioned in my last post, it is recommended to use WaitBOOT. If you have to run with SCI BOOT are Get Mode only then after connecting to CCS, please issue a reset (from debugger) and then click on "RUN" icon. This will run the BOOTROM code to initialize the device properly. Now try to load your code and see if it work.

    Regards,

    Vivek Singh

  • Hi Vivek,

    Could you please clarify how I can issue the reset from the debugger?  Sorry for the beginner questions.

    Thanks,

    Kevin

  • Kevin,

    Once device is connected to CCS, you can see a CCS icons like shown in below snap shot for "reset" and run".

    I would also suggest you to go through this workshop .

    Regards,

    Vivek Singh

  • When I hit the reset button, I see the following message in the debugger.  Does this mean that the reset failed?

    Thanks,

    Kevin

  • No, this is good. At reset CPU PC points to BOOTROM code and there is no symbol for the same hence this message. This is not "Error message".

    Regards,

    Vivek Singh