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
Good evening...
I have the above EVM and am continually getting my code to break and jump into boot.c @ CSTART_DECL _c_int00_noargs_mpu(void).....
I have not noticed problems until I went ahead and updated (a couple of weeks ago) to add CC and RF family products to the existing MSP products that I have been using...It clearly seems the compiler has updated to 20.?? as I have seen warnings saying I had been using compiler 18.??
Please explain what is going on here.....I notice this with hardware only as well as hardware/software breakpoints that I add BEFORE I start the debugger running. This is VERY annoying and on top of it the EVM will periodically go off into space and CANNOT be repowered without re-flashing the MSP DEBUGGER....To do this I must hold in the reset button while the flashing is going on, then I release the reset and the code will flash. I have two EVM boards and both will do the same thing....It's a 50/50 whether they work or lock up. I notice when the issue comes up the RED and GREEN LED on the debugger side will sit there and flash on and off RED, GREEN, RED, GREEN, etc. forever!!
What is going on?????????
Here is the current code that is causing grief! If I place one HW breakpoint somewhere before the while loop (ex. INITUART)....The code runs to there then I hit run again and it stops itself back at INITUART...so it goes into the while loop (verified by my logic analyzer and the signalling of the UART) AND then somehow resets and pops out!
/* * d_rxtx.c * * Created on: Apr 8, 2020 * Author: ridge */ #include <msp430.h> #include <string.h> #include <stdint.h> #include "rc.h" #include "LPRSradio.h" volatile char *pRx; char incoming[20]; const char *pTx; const char *configCmdAck[] = {"ER_CMD#a01", "ER_CMD#W2", "ER_CMD#b1"}; const char *testack = "ACK"; uint8_t i = 0; boolean tx = T; int k; int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer IOconfig; initClockTo16MHz(); initUART(); pRx = incoming; pTx = configCmdAck[0]; while (1) { __bis_SR_register(LPM3_bits + GIE); //go to sleep: LPM3 if (tx) pTx++; else { if (!strncmp(incoming, configCmdAck[i], 10)) { pTx = testack; i++; UCA1IFG |= UCTXIFG; } pRx++; } } } #pragma vector=USCI_A1_VECTOR __interrupt void M(void) { switch(__even_in_range(UCA1IV, USCI_UART_UCTXCPTIFG)) { case USCI_NONE: break; case USCI_UART_UCRXIFG: tx = F; *pRx = UCA1RXBUF; __bic_SR_register_on_exit(LPM3_bits); break; case USCI_UART_UCTXIFG: tx = T; if (*pTx != '\0') UCA1TXBUF = *pTx; __bic_SR_register_on_exit(LPM3_bits); break; case USCI_UART_UCSTTIFG: break; case USCI_UART_UCTXCPTIFG: break; } }
Sincerely
Steve
Hi Steve,
sorry to hear about this negative experience on your side.
You mentioned on one hand the change of the compiler version on one hand and use of break points on the other hand. For the first, you could could try selecting the compiler, which you have been using before. When clicking with the right mouse button on the project, you can go to "properties" and then "General" you should see the used compiler version. By clicking on the small pull down button on the right of the compiler version, you can see the available options, and could select the old one. If only the current one shows up, there was a major update of your CCS IDE and the older compiler versions have not been moved to respective directories in the CCS installation path. In this case you could search through the previous CCS installations and copy the compiler directories into the respective path of the most recent CCS version.
The other point are the break points. You stated you're using HW break points. Though, as especially with the small MSP430 devices, the number of available HW breakpoints is very limited, the IDE tends to use for some things, like stopping at first line of main SW breakpoints. It could be, that these SW breakpoints are somehow getting corrupted and causing trouble with code execution, as SW breakpoints are small pieces of code included by the debugger/compiler in debug mode. Thus you could also try disabling the use of SW breakpoints. Please see here a screen shot, where to find this option.
Best regards
Peter
Peter....
Yes I went back to 18.12.1....Keeping my fingers crossed here.....
I went ahead and unchecked the "Allow software brea......
Interesting is I can place 2 HW breakpoints and it does seem to allow me to place one SW breakpoint? I know this bcz if I hover over the breakpoint it will indicate either H/W or S/W
thanks
Steve
Peter...
For the record...18.12.1 compiler seems to be more stable with my code...have been using it all morning and so far have not had to reflash FW on debugger....I suspect your version 20 is unstable somehow
thanks
Steve
Peter...
I would like to keep this case open as I am still having issues with the debugger wanting to reflash it's firmware....I would like to connect off line, send you my source files and have you run on a MSP430FR2355 EVM if possible.....I am in the midst of using this part on a project and am looking to stop and change course as I am having trouble with it...If I stop the debugger and hit the reset on the evm the debugger LEDs flash RED, GREEN back and forth ....Please advise how to get this code to you or someone who has the capacity to solve this so ....This is becoming URGENT and the one per day emails are not working for me anymore......
thanks
Steve
Hi Steve,
sorry for the delay in communication. I am based in Germany, and we had public holiday due to Easter.
Understood your situation. We will try to put more focus on this. To be able to share privately critical information, I'll request a friendship within the E2E system with you. As soon as you accept, you can post me private messages including attachments, visible only to me. We will do our best, to get this resolved timely.
Best regards
Peter
Peter....
I'm glad to say that over the holiday weekend I resolved my issue....Turns out it wasn't code at all....I had soldered a radio (LoRa) onto the bottom of the MSP EVM....The dc/dc converter hiccup was because the radio was rebooting due to a command I was issueing to it....I removed the 3.3V JUMPER between the debugger and target sections of the board and powered the target section with a power supply and all issues about erratic code jumping / missing breakpoints, etc. went away.....
Thank you for your commitment to getting back with me....
Stay safe over there
Steve
Hi Steve,
thank you very much for the update. I am glad to hear you have been able to resolve the problem. Stay healthy.
I am closing this thread based on your feedback.
Best regards
Peter
**Attention** This is a public forum