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.

TMS570LS3137: Using NI CAN adapter what is Time for Erasing and writing one Sector of 0x00020000

Part Number: TMS570LS3137

We are using Peak CAN adapter  it takes 28 minutes for BANK 1 size 1.5MB download including delays , we do not have an idea of how much time is taken for Erasing and writing one Sector with NI CAN .

It would help us if we know how much time is taken for one sector using NI CAN and TI provided Boot loader.

It will help To have a Comparison between NI CAN adapter and PEAK CAN adapter and to optimize the code .

  • Hi Chandre,

    The bank and sector erase time is listed in datasheet (spns162). Typically the bank erase time is 0.03 seconds, and 4 seconds maximum. During bank erase, the selected sectors are erased simultaneously. The time to erase the bank is specified as equal to the time to erase a sector.

    The 3-MB programming time is 32 seconds in maximum. This programming time includes overhead of state machine, but does not include data transfer time. The programming time assumes programming 144 bits (16 bytes data + 16 bits ECC) at a time at the maximum specified operating frequency.

    The 144-bit programming time is 40us typically.
  • Hello Mr.QJ Wang ,

    Thanks in Advance,
    Can you download a .bin file and please let us know how much time in Practical with Test setup and connected to NI CAN adapter and TI provided Example

    Regards,
    Chandreshekar Kalvacherla
  • Hi Chandre,

    I know it will take pretty long time. The example program the data to flash every 8 bytes CAN packet. The turning the leds on and off in my example code takes a lot of time, and CAN transfer will also take time.
  • Hi QJ Wang ,

    Thanks for the details . I have removed all the delays for turning LED's and other delays in the Boot Loader Example source code .
    I still have to optimize for Speed and to funnel received data into larger buffer(ex.. 4096 Bytes) and write to FLASH (ex.. 4096 bytes).

    For 1.5 MB data writing the time consumed is 15 Minutes ( with the current logic of 8 byte at a time ) .

    Thanks & Regards,
    Chandreshekar Kalvacherla
  • Hi Chandre,

    Thanks for doing test. It is a good improvement.