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.
Tool/software: Code Composer Studio
Our IOT project was completed a few years back. This year, we went back to the code to change one line with the protocol for our new server. The code compiles without error and looks like it is loading into our device. But then it stops and says "Error connecting to the target. Unknown device". The first time I tried the MSP-FET emulator required a software update. I thought perhaps the update failed, so I tried loading a very simple program built from scratch and it runs without a problem. Next I thought something might have changed because of a CCS update (I've had this problems like this in the past). So I rebuilt the project from scratch starting from a blank Grace project for this chip. It also compiles without a problem, but encounters the same error. We have many devices with the same hardware and have tried several of them with the same results. We're baffled. It doesn't seem to be the code (it has been working for years). It doesn't seem to be the hardware (it has also been working for years). It isn't the emulator. My colleague tried using a different emulator and hardware and the same thing happened. All the JTAG connections are to spec (and they were not a problem) we are using a 33K pull-up and 1nF pull down on the RST line, which worked fine in the past. What could be causing this problem?
Yes, that is what I tried already. I took the LED blink example and modified it so it wouldn't mess up our hardware. It loaded fine. I was able to single step a few steps and didn't go beyond that because I confirmed that it had loaded...
Thanks for the reply. Yes, I did think of looking at the control registers to see what has changed, but there is one problem How do I look at the registers in the former code if I can no long assemble and load the former code? Is there some way to debug without loading code? Perhaps there is, but I've never done that before. If there isn't, then I'm in a circular problem (like the old song "There's a hole in the bucket"). https://www.youtube.com/watch?v=yD-ffhvefsw
I can't assemble the old code what should I do?
The solution is to run the new CCS.
But the code in the new CCS doesn't run, How do I fix it?
The solution is to look and see what changed in the control registers.
But How do I look at the control registers in the old code?
The solution is to debug the old code.
But how do I debug the old code.
The solution is to assemble it.
But I can't assemble the old code....
Hi Peter, I think we are on the same page. I thought you were suggesting that I compare the registers with how they were previously as a simpler way to figure out what was wrong rather than a debugging process solely looking at the new code that fails. Without the old program to compare, I have to actually understand what every register does and how every bit is set instead of just looking for what changed. So I see now that I should never had worked with Grace to begin with, that any initial time savings I had in being able to write code has been undone and then some now. by keeping me ignorant...
**Attention** This is a public forum