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.

TMS320F28335: SCI boot

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

boot pins set to sci boot mode and flashed kernel but application is n ot loading after that nor flashing too not going successsfully.help me with process loading using cmd

  • Bhaskar,

    Are you using a F2833x controlCard, or custom hardware? Once the SCI Flash Kernel is downloaded, is there no prompt to download the application?

    Thanks,

    Sira

  • Hi,

    I am using f28335x custom hardware and its not no prompting to download the application.

  • Since the Application Autobaud was successful, I would have expected the Host to begin downloading the Application to the target, with the Kernel running in RAM. Is the application file built correctly? i.e using the right options to convert the .out to .txt?

    hex2000 -boot -a -sci8 <.out filename> -o <output filename>

  • application was built using same command,(tried to flash serially using CMD using TX,RX of rs232 converter and pins boot pins set to SCI ).

    and if i try to flash using ccs (XDS110 debugger)showing error

    C28xx: GEL Output:
    ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Warning: The configured device (TMS320F28335), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
    C28xx: GEL Output:
    ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx: File Loader: Verification failed: Values at address 0x08000@Program do not match Please verify target memory and memory map.
    C28xx: GEL: File: C:\Users\Naga Bhaskar\workspace_v10\f28335_flash_kernel\Debug\f28335_flash_kernel.out: a data verification error occurred, file load failed.

    After flashing kernel serially if device is locked ,how it will be unlocked as i studied that flashing kkernel will unlock and write 0xFF in CSM locations

    is it correct?

  • Bhaskar,

    When you try to Flash using CCS, are you able to connect to the device using the target configuration file?

    What boot mode are you using when you try to Flash using CCS?

    I presume you are trying to directly program the Application file (not Kernel) to Flash using CCS, in this case? So you have a Flash build configuration of the Application project. 

    Is your device locked by CSM? Have you set a CSM password?

    Thanks,

    Sira

  • No im unable to connect,i don't have password and i think its somehow locked while flashing kernel via serial and kernel flash via serial working fine any no.of times.

    SCI boot mode through boot pins.   (GPIO 84,85,86,87-1110)

    Already loaded kernel through serial ,now trying to do same using ccs(XDS110) from example file ?

    device was locked,i don't have password ,any way to erase csm with 0xFF's?

    The solution i need is i need to flash a code using ccs such that it should automatically flash the update data coming through SCI else run code residing in flash itself and boot mode pins will be in the boot to flash mode and cant change .

  • after flashing kernel if tried to program application using c2prog showing

  • Bhaskar,

    I am not able to understand some of your comments.

    You say "device was locked,i don't have password ,any way to erase csm with 0xFF's?"

    How do you know the device is locked, if you have not set any password?

    The CSM cannot be erased. It is part of OTP.

    At what point do you get the CCS (XDS110 debugger) errors you mentioned previously? Do you get it when trying to connect to the device using a target configuration file?

    I understand you want to only use the Boot to Flash mode, and still run a firmware update. This is possible, you don't have to use the SCI Boot mode. In the SCI Boot mode, you stream in the Flash kernel to RAM using the SCI ROM bootloader. With your requirement, that is not possible, so you will not be using the SCI ROM Bootloader to stream in the Flash kernel to RAM. This means that the Flash Kernel has to be resident in Flash. You have to dedicate space for it in Flash. When you boot to Flash, the entry point will be into the Flash kernel. There, you will have to determine if you want to perform a Firmware update (maybe you can wait for a firmware update command for a short time period). If the firmware update command arrives, you proceed with downloading the application and programming it to Flash. (Flash APIs will need to run from RAM or ROM. So will any wrapper functions around the Flash APIs). Then you will perform a device reset so that the new application can run.

    IF the firmware update command does not arrive, you proceed to boot the Application by jumping to the compiler's C initialization routine, which will perform initialization and call main() of your existing application in Flash.

    Thanks,

    Sira

  • when i read CSM area(0x33FFF7) its showing 0x00's so im saying it may be locked.Its due to power down during flashing may be.

    what you mentioned above was exactly my application.To do the same what example should i flash using ccs and and i had my application converted to -sci8 format to send serially for update.

  • Bhaskar,

    You would need to Flash the Flash kernel using CCS. But first you would need to create a Flash build configuration of the Flash Kernel. I think TI only provides a RAM build configuration. You should convert it to a Flash build configuration - modify the linker command files accordingly. Decide which Sectors in Flash you want to dedicate to the Flash kernel. Possibly the first few sectors. Ensure the application area in Flash does not overlap with the Flash kernel area in Flash.

    Let me check on the CSM question and get back to you.

    Thanks,

    Sira

  • Hi Sira ,

    could you please send the steps or files related to LFU build configuration.

  • Bhaskar,

    Do you want to run LFU on F2833x? We don't have an LFU configuration on F2833x. It is a single Flash bank device, so the LFU example on F28002x would be the most similar. Though you should understand that the SCI Flash Kernels are different between the two. Still, the way to add LFU functionality should remain the same.

    The F28002x SCI Flash Kernel (which has an LFU build configuration + Application LFU example (simple LED blinky) are not yet in C2000Ware. If you send me a private message with your email, we can discuss further.

    Thanks,

    Sira