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.

LAUNCHXL-F280039C: Issue with flashing/monitor and tune in Simulink (MATLAB). (Error -2131 @ 0x0) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more

Part Number: LAUNCHXL-F280039C
Other Parts Discussed in Thread: C2000WARE

Hello, 

I was trying to program on Simulink but i will get this error: 

(Error -2131 @ 0x0) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK)

Here is the hardware setting I have. 

I have tried with "Use internal oscillator" was not working. I have tried to unclick the "use internal oscillator" and lowered the "oscillator clock (OSCCLK) frequency in Mhz"and still does not work.  

I double-checked with my external mode port is connected to the correct one, the sample and duration is matched as 8, and the bits per second is also matched. 

The boot mode (S3) is default 11, which is boot from flash. SEL1 (S2) is default 00, and QEP (S5) is default 11. The CAN Route (S4) is low (i tried high as well).

I have tried unplugging and plugging back to reset the board, as well as using the reset button. I also created new simulink file and still not working. 

I also tried to power the board using an external power supply and an external XDS110 JTAG debug probe, not using the usb. It was still not working. 

I have used the F280025C launchpad before and it worked successfully, so I tried all the possible things that I have tried on that launchpad with this launchpad, but it's still not working. 

Rinya

  • Hi,

    I am not familiar with using Simulink to program C2000 devices, but I think there is a problem with the target configuration that you are using. If you are using the F280039C.ccxml from a C2000WARE example, that target configuration is actually for our control cards, which support standard 4-pin JTAG. You would need to use the LAUNCH_XL target configuration, which has the settings for 2-pin cJTAG, which is supported on the launchpad. 

    I think the important factor here is that you need to adjust your target configuration settings to use 2-pin cJTAG. 

    Best Regards,

    Ben Collier

  • Hello Ben, 

    Thank you for the reply. I tried to manually change the target configuration F280039C.ccxml setting to use 2-pin cJTAG in CCS. I can flash it, but it is still giving me an error on matlab when I was trying to monitor and tune it. I know that you are not familiar with using Simulink for C2000 devices, it will be great if the device is capable to do monitor and tun. 

    please allow me to crossed out my personal information on the screenshot shown above. I am not sure if this error is the error that causing the monitor and tune to be unable to use. 

    Best Regards, 

    Rinya

  • Hi, 

    I'm not sure what that error means, but I found this page on the mathworks website. It looks like this table specifically mentions the launchpad if they support the launchpad. Noticeably, the F280039C launchpad is missing. I would try to find out if they actually support this, although I don't know why they would support the F28003x devices but not the launchpad.

    I would also look for instructions for using the F28002x and F28004x Launchpads, since they also use cJTAG. Maybe there is something special you have to do in those cases. 

    Best Regards,

    Ben Collier

  • Hello Ben, 

    Thank you for the reply. I will ask a question to the MathWorks community and see if they know about it. At least the device can be flashed. Thank you for the help. 

    Best Regards,

    Rinya

  • Ok,

    Let me know if you have any more questions.

    Best Regards,

    Ben Collier