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.

TMS320F28388D: Minimum Allowable Flash Data

Part Number: TMS320F28388D


Tool/software:

Hi fellas,

I develop the bootloader. It gets application program bytes from CAN Bus and then write it to proper Flash Sector.

Bootloader and application resides on the CPU1. Every address 16 bit width.
I write data minimum 64 bit with Fapi_issueProgrammingCommand(). But when i inspect the application .hex datas,
i realized that some data lower than 64 bit. For example

%1663F8000BC010A8000000 -> Address:000BC010 Data:A800 0000

Is it possible to write the 16 bit data? If not, the proper strategy is the, before writing it to flash padding with 0xFF if its lower than 64 bit?(writing the A800 0000 FFFF FFFF)

Best regards.

  • Hi,

    Our expert is currently unavailable. Please expect a delay of 7-8 days in response.

    Regards,
    Divyansh

  • Hi,

    Thank you for informing 

    I also reread SPRAD51A(CAN Flash Programming ), the CopyApplication() function(called from flash_kernel_ex5_dcan_flash_kernel.c). It program 8 word one time.(128 bit)

    I want to know the if ALIGN(8) selected from application, Is that guarantee from compiler that the every memory address distance minimum 128 bit?
    Because if specified address have a data lower than 128 bit, before the writing l'll padding with 0xff until size is the reach the 128 bit.

    Best regards.

  • Hi Attila,

    Yes, ALIGN(8) for the compiler is equivalent to 128bit alignment. For your application's linker CMD File, you can also use palign(8) for your sections and use padding as 0xff.

    Thanks,

    Charles