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.

RTOS/TMS320F28075: RTOS/TMS320F28075

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI-RTOS

I am using TI-RTOS version tirtos_c2000_setupwin32_2_16_01_14 on TMS320F28075 microcontroller.  I am facing issue to boot the application from flash on this RTOS. My application is not getting boot from flash after power cycle to board. I have enable the option "Boot from FLASH " in RTOS configuration  file. Please let me know ,if  I need to do some additional settings in configuration file.

  • Does the application work fine with the emulator connected? Are you using a controlCARD? If so, do you have the switches configured correctly to boot from flash?

    Whitney

  • Yes the application works fine with emulator connected. I am not using controlCARD. I am working on prototype board which is designed for our application.

  • Is the device boot selection (values on boot mode pins, BOOTCTRL register if necessary, etc...) configured to boot from flash?

    Are you able to run a simple C2000Ware example from flash? Or is it just this application that's giving you trouble?

    Here's a wiki page with some tips on running in standalone and common flash issues: processors.wiki.ti.com/.../FAQs

    Whitney
  • Hi Whitney, 

    Thanks for your reply. Simple C2000Ware application works will from flash.  But my application with RTOS doesn't work  from flash.

    Can you please tell which BOOT register ,I should verify to check , if my application is configured properly to Boot from flash ?

  • Please read the "ROM Code and Peripheral Booting" chapter in the F28075 Technical Reference manual if you haven't already. I was talking about the BOOTCTRL register discussed in there. However, since you are able to get a C2000Ware application to boot from standalone flash, the boot mode configuration probably isn't the problem.

    I'm going to forward your post to some SYS/BIOS experts who should have some suggestions on how to solve your issue.

    Whitney
  • Hi Atul,

    Are you disabling the watchdog in your application? CCS generally does this for you (via a gel file setting) when you load a device. Note: you can use the reset function in the kernel to do things like this. For example, you could have the following in the .cfg file.

    var Startup = xdc.useModule('xdc.runtime.Startup');
    Startup.resetFxn = "&myResetFunction";

    And then in myResetFunction, add the code to disable the WDT. Please note, there are restrictions on the things you can do in this function since it is called so early in the boot (e.g. no stack yet and .cinit records has not been initialized).

    Todd
  • Hi Todd,

    My application is now working from flash. I have disabled the watchdog timer from RTOS configuration file. I think by default watchdog timer is enable so my application was getting reset. Now it is working fine.  

    Thanks for your help and support.

  • Atul,

    I think by default watchdog timer is enable so my application was getting reset

    Yes, by default watchdog is enable in hardware. When connected to emulator, CCS Gel file disables the watchdog. In standalone, application need to disable the same if not used.

    Regards,

    Vivek Singh