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.

TMS320VC5509A: Programming Instructions

Part Number: TMS320VC5509A

Hi,
I'm working on a project involving the TMS320VC5509A microcontroller along with BlackHawUSB100v2 debugger. I tried to flash the code to the hardware by selecting Run -> Load{} from Code Composer Studio version_6.1.3. But did not find the code programmed. So could you please guide me through the instructions on how to flash a code to it.

  • Hi Nandith,

    The C5509A does not have on chip flash, so the Run -> load from CCS only load the program from your host PC into the SRAM of the C5509A. You will have to write your application program into the external EEPROM or the flash. Please refer to the following document for how to bootload from external devices:

    Using the TMS320VC5503/C5506/C5507/C5509/C5509A Bootloader (Rev. F

    Best regards,

    Ming

  • Hi Ming,

    Thank you for sharing the document link. It will definitely help me understand the booting methodology and how to implement it.

    However, my current requirement is to program my application into the external flash (part number: AT45DB642). Could you please guide me on the procedure for writing the application to this external flash? It would also be very helpful if you could share any sample code for the same.

    Best regards,
    Nandith R

  • Hi Nandith,

    Here is the procedure for flash the boot image to C5509A

    The process has two stages: (1) generate a boot table from your compiled application, then (2) program that boot table into the EEPROM starting at address 0.


    Step 1: Generate the Boot Table

    Use the HEX55 hex conversion utility (version 2.10 or later) with these critical options:

    hex55 my_app.out --boot -v5510:2 -serial8 --binary -e entry_point -o my_app.bin
    Option
    Purpose
    --boot
    Creates a boot table
    -v5510:2
    Selects the correct C55x boot table format (applies to C5509A despite the name)
    -serial8
    Required for SPI EEPROM boot (both 16-bit and 24-bit address modes)
    --binary
    Outputs raw binary suitable for EEPROM programming
    -e
    Specifies the entry point address

    Step 2: Program the EEPROM

    Program the generated binary as a single continuous image starting at EEPROM address 0. The DSP's ROM bootloader issues a read instruction (03h) beginning at address 00h during boot.

    You'll need an external SPI/I2C EEPROM programmer (e.g., a dedicated device programmer or a custom routine running on the DSP via JTAG) to write the binary to the physical EEPROM.


    Step 3: Configure Boot Mode Pins

    Set the BOOTM[3:0] pins (shared with GPIO) according to your EEPROM type:

    EEPROM Type
    BOOTM[3:0]
    SPI – 24-bit address
    0001
    SPI – 16-bit address
    1001
    I2C EEPROM
    0011