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.

CCS/TMS320F28379D: Shared_Erase and Shared_Verify Sources

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi dear TI community,

I try to port sci_flash_kernel code to can_flash_kernel and in sci_flash_kernel there are Shared_Erase and Shared_Verify source codes. Do they need for can_flash_kernel also ? 

And what are their functionalities ?

Regards,

Furkan. 

  • Hi Furkan,

    The Shared_Erase() function is used to erase a specified sector using Flash API library functions. The VerifyData() function is to verify the data blocks of the host with the flash. I believe they are good to include, but it depends on whether you see the value to provide the erase/verify commands.

    If you haven't already, I also suggest looking at the can_flash_kernel for F28069 in C2000Ware:
    C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2806x\examples\c28\f28069_can_flash_kernel

    Regards,
    Elizabeth
  • Hi Elizabeth,
    Thanks for your replying.

    Can I port them to F28379D ? If it is possible, how can I do that ?

    Thanks a lot again,
    Best Regards.
  • Hi Furkan,

    Yes, you can. One main consideration is the CAN boot code as this will be different between the F28069 and F2837x. If you haven't already found it, here's the F2837x CPU1 CAN boot code:
    C:\ti\c2000\C2000Ware_1_00_05_00\libraries\boot_rom\f2837xd\rev0\rom_sources\F2837x_bootROM\cpu01-bootROM\source\DCAN_boot.c

    Regards,
    Elizabeth
  • Hi Elizabeth,

    I looked can_flah_kernel code for f28069. But I couldn't find Shared_Verify and Shared_Erase functions. Could you provide me with more advice please ?

    Best Regards.

  • Hi Furkan,

    The Shared_Verify and Shared_Erase functions from sci_flash_kernel example can still be ported to a CAN flash kernel example except for replacing the function call for getting SCI data with a call for getting CAN data as well as removing the function call for SCI checksum.

    Regards,
    Elizabeth
  • The F2837x kernel adds some more commands/features than the F2806x kernel. You can add these if you like by porting the code to 1) F2806x and porting to 2) CAN.

    Hope this helps.

    sal