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.
I am programming the EZ430 with IAR embedded workbench IDE. When my CC2560 board is connected to the EZ430 USB dongle, it will run code normally. When I remove the CC2560 board and connect it to the battery pack, it will not run and appears to be held in reset (Green power LED turns on, but nothing else happens). Is there a setting in IAR that may causing this? Any thoughts on what I should try?
Fred,
My first guess would be to check the voltage level supplied by the batteries. It might be too low.
Regards,
~Miguel
Hi Miguel,
Batteries are good. I have a CC2560 whose code has not been modified. It works fine on the battery pack.
Fred
Could you share the major mods between the code that works and the one that does not?
~Miguel
Miguel,
No difference in code, just compiled and downloaded to device at an earlier date. I had done some work with the debugger in the interim, I'm thinking I must have changed a setting somewhere that is causing this. I don't think that it can be code because it starts up correctly when connected to the USB device, but not when connected to batteries.
Fred
Fred,
Could you feel the board to see if there's anything hot? Also, are the RED or Blue LEDs blinking?
Regards,
Gustavo
Hi Gustavo,
Nothing hot on the board when connected to batteries.
All three LEDs light up and function (green, blue, red) when connected to the USB debugger. Only the green LED lights up when connected to batteries.
I just grabbed the original, unmodified SDK from the website, and downloaded it to the target. Same behavior.
Fred
Fred,
What about the other target board? Does it show the same behavior?
Regards,
Gustavo
Gustavo,
The other target board (the one that was compiled and downloaded earlier) does not show the same behavior. It works correctly on both the USB debugger and on a battery connection (All three LEDs light up).
Fred
I determined that this is a hardware issue on the CC2560 board. I am looking into what component isn't functioning correctly. Guessing that it is a pullup resistor or something similar. Wish I had a schematic :)
Fred
Fred,
One way to test this is to connect power from the battery but still use the debugger (without using its power). This will require some splitting of cables but it's only 4 wires.
Then run the code and see if you're stuck.
Regards,
Gustavo
Fred,
Could you check if the XTAL that is next to the MSP430 is oscillating?
Regards,
~Miguel
Hi Miguel,
Not sure where that signal is. Can you give me a screen shot of where I would probe?
Fred
Fred,
Please look at the attachment. You can probe any of two ends of the XTAL.
Rgds,
~Miguel
Fred,
Could you run the code in debug mode and check where the program halts please?
Regards,
~Miguel
Hi Miguel,
When connected to the debugger, it does not halt; it runs correctly. I am nearly 100% certain this board is damaged in some way. I have other boards though that work fine, so I think we can close this case.
Regards
Fred
I apologize. I forgot that it works with the debugger. Could you try the disabling the Sensor Initialization? i.e. Comment out the sensor_init() call under sdk_init_bsp() and check if the red and blue leds come out now.
Regards,
~Miguel
I made this code change and observed no change in behavior. If you are curious about what has failed in hardware, we can continue to dubug this, but for my part I'm no longer concerned about it. Regards - Fred