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.

TMS320F28335: Troubles to download code on control board with Simulink Embedded Coder

Part Number: TMS320F28335

Hello,

I got a F2833x board and I cannot download any code to the board with Simulink Embedded coder. 

It seems that the device got locked somehow and I don't know how to unlock it (see screenshot below).

Does anybody know how to solve this issue?

thanks

Francesco

  • Francesco,

    Would it be possible for you to use Code Composer Studio(either local or cloud tools https://dev.ti.com )  There are some steps we can take to verify if the device is indeed locked.

    We need to configure the boot mode to something that will not execute code from the secure memories.  If you set the Boot Pins(GPIO84-87) to low/0V this will force SCI boot mode, which should just stall since there is no data coming in on the SCI port.

    Once this is done, you'll want to manually launch the debug connection in CCS via the target config file(you may need to create new .ccxml for the F28335/XDS100V1) and then connect the target.  Once we are connected (this method doesn't attempt to download code) we can look at the CSM Password locations at memory addresses 0x33FFF8-0x33FFFF.

    If you see these as 0xFFFF's then the device is unlocked.  If we see 0x0000, then the device is locked due to a non erased value being programmed here.  If the device is locked, and the CSM password is unknown then we will need to replace the device with a new one.  Let's see what the above shows us and we can go from there. 

    Let me know if there is some help needed on the above steps; I realize this is quite a bit different than the Simulink experience of downloading code and debugging.

    Best,

    Matthew

  • Hello Matthew, 

    We managed to unlock the device. We boot Pins(GPIO84-87) to low/0V with the SW2 switches on the control board...now we got 0xFFFF's on the memory addresses 0x33FFF8-0x33FFFF (device unlocked), whilepreviously the memory addresses were  0x0000. 

    thanks for you help!

    rgs

    Fra