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.

TMS320F280039C: TMS320F280039C - UDS development

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi Team,

We are going to use the TMS320F280039C Launchpad for BLDC motor control and UDS stack development process.

Before that i want to clarify the following doubts.

1. Whether TMS320F280039C is suitable for Boot loader and UDS stack implementation.

2.Flash read and Checksum verification and calculation.

3. In motor control code they used all RAM portions. Whether i made changes in RAM partition then it will affect the MOTOR running performance or not?

Advance thanks and regards,

B.Punitha

  • Hi Punitha,

    1) We have examples of Flash bootloaders available for this device, Serial Flash Programming of C2000 Microcontrollers and CAN Flash Programming of C2000 Microcontrollers application notes. 

    2) Can you clarify more on this question? This device is capable of making flash reads through its Flash API, as well as there exists checksum and verification algorithms. I would recommend you to check out our Flash API examples and Flash API Guide, both a part of C2000Ware.

    3) This is something I'm not sure on, but can bring in other experts as needed.

    Thanks,

    Charles

  • Hi Charles,

              I can the flash memory and calculated the checksum using CRC32 algorithm. 

    I need one clarification in motor control code regarding the RAM memory partition.

    Thanks and regards,

    B.Punitha

  • HI Charles,

    Thanks for your reply.

    Kindly find the memory partition of Motor control code

    Whether i change the RAMGs data mapping to RAMLs mapping?

    If i change the above portion then it will affect the motor running process or not?

    Thanks,

    B.Punitha

  • B. Punitha,

    Take a look at section 6.12.5 RAM and ROM Parameters of the F28003x datasheet:

    Specifically, note that access time related to Ls and Gs RAM is identical- the only difference is what actually has access. If your program does not use DMA, there is most likely no issues with switching to Ls.

    Regards,
    Jason Osborn

  • Dear Jason,

    Sorry for late reply. We couldn't use DMA access in our project. So no issue to change the Gx memory into Lx memory.

    Another one clarification needed, I want to use AES accelerator without DMA .

    I studied about the AES example code. In that i want to use ECB mode. In example AES ECB encrypt

    testVectorECB testVectorECBArray[] =
    {
    //
    // Test Case #1 with 128 bit key
    //
    {
    .keySize = AES_KEY_SIZE_128BIT,
    .keyArray = { 0x16157e2b, 0xa6d2ae28, 0x8815f7ab, 0x3c4fcf09 },
    .dataLength = 64U,
    .plainTextArray = { 0xe2bec16b, 0x969f402e, 0x117e3de9, 0x2a179373,
    0x578a2dae, 0x9cac031e, 0xac6fb79e, 0x518eaf45,
    0x461cc830, 0x11e45ca3, 0x19c1fbe5, 0xef520a1a,
    0x45249ff6, 0x179b4fdf, 0x7b412bad, 0x10376ce6 },
    .cipherTextArray = { 0xb47bd73a, 0x60367a0d, 0xf3ca9ea8, 0x97ef6624,
    0x85d5d3f5, 0x9d69b903, 0x5a8985e7, 0xafbafd96,
    0x7fcdb143, 0x23ce8e59, 0xe3001b88, 0x880603ed,
    0x5e780c7b, 0x3fade827, 0x71202382, 0xd45d7204 }
    },

    //
    // Test Case #2 with 256 bit key
    //
    {
    .keySize = AES_KEY_SIZE_256BIT,
    .keyArray = { 0x10eb3d60, 0xbe71ca15, 0xf0ae732b, 0x81777d85,
    0x072c351f, 0xd708613b, 0xa310982d, 0xf4df1409 },
    .dataLength = 64U,
    .plainTextArray = { 0xe2bec16b, 0x969f402e, 0x117e3de9, 0x2a179373,
    0x578a2dae, 0x9cac031e, 0xac6fb79e, 0x518eaf45,
    0x461cc830, 0x11e45ca3, 0x19c1fbe5, 0xef520a1a,
    0x45249ff6, 0x179b4fdf, 0x7b412bad, 0x10376ce6 },
    .cipherTextArray = { 0xbdd1eef3, 0x3ca0d2b5, 0x7e5a4b06, 0xf881b13d,
    0x10cb1c59, 0x26ed10d4, 0x4aa75bdc, 0x70283631,
    0xb921edb6, 0xf9f4a69c, 0xb1e753f1, 0x1dedafbe,
    0x7a4b3023, 0xfff3f939, 0x8f8d7d06, 0xc7ec249e }
    }
    };

    In above that plaintext as input keyarray as key value and cipherText as output. Is the above things are correct or not?

    I use AES on line tool mentioned in the below link
    legacy.cryptool.org/.../aes-step-by-step

    Our requirement AES 128 - Encrypt 10 rounds
    But i put the above values in the tool , then i didn't get the output value correctly.

    Thanks and regards,

    B.Punitha

  • B. Punitha,

    Since this is a follow-up question regarding a different peripheral, you should post a new thread, so that the correct SME can be assigned to it.

    Regards,
    Jason Osborn

  • Dear Jason,

    Another one doubt, In motor control code i have to include another one timer, If this interrupt whether affect the motor running process or not?

    Advance thanks,

    B.Punitha

  • If you choose to implement the timer using an interrupt, as long as you minimize how much time you spend in the ISR, there should be no issue.

    An alternative solution, if the timer task is not high priority, is to handle the timer in the background loop, in which case it absolutely will not impact the motor. The motor control projects in the C2000Ware Motor Control SDK generally use one of the CPU Timers to handle execution rate of the monitoring background tasks, for example.

    Regards,
    Jason Osborn

  • Hi Jason,

    Thanks for your reply. I have created another thread for AES module working. But i didn't get any reply for that. Herewith i have attached the thread link 

    https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1478138/tms320f280039c-tms320f280039c---aes-algorithm

    Kindly support to us for clarification of the AES module 

    Advance thanks and regards,

    B.Punitha.

  • I'll reach out to the moderators. I'm not the correct SME for AES, but I'll make sure they're expedient in getting the right one assigned.