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.

CAN Boot loader and Code Sequrity

I often need to update software in my TMS320LF24xx and 28xx devices. But most of our devices are inaccessible with the JTAG so the best way to update the software is to use CAN.

Does anyone hear have a solution which can be used with enabled Code Sequrity Module and send encrypted data via CAN?

This is important because have to use Sequrity Codes due to specific of the application and we have shared CAN network with other systems (and CAN blackbox) and can't detach our devices from it physicly when updating software.

Thank you

  • There is no problem with CSM - locked firmware. You can update it by embedding the password into the new CAN-download stream, together with the FLASH - API functions and the new control code. As first step after the download into RAM you have to write the password into the key-registers to open the CSM. Next, you can reprogram the FLASH, lock the CSM afterwards and start the new Flash code. Of course, there might be an option to intercept your password by other "unfriendly" CAN-nodes in your net, while you download the password. In such circumstances, I'd recommend to encrypt the download stream.  In the past I used this technique in customer a project but I cannot share the code here because of an NDA.

     

     

  • As I understand, there is no standard TI bootloaders that support encryption of tranfered data.

    I have started my own developments and I want to make it open-source. So it will be nice to get your critique of my solution.

    I will post the results and links to the source code here.