Part Number: MSP430F5172
Hello
I have some problems with the msp430f5172 microcontroller, I am developing a telemetry application in which I send some temperature values to a server (as a means of connection I use the wiznetw5100 module), but I have been trying to solve a communication problem for several days that still do not I can understand.
To store the response from the server, the requests and the data I am using char-type vectors such as:
char recibido [250];
volatile char token [160];
char petfinal [450];
const char peticion[17] =" HTTP/1.1\r\nHost: ";
const char agent [33]="User-Agent: Gigawatt_firmwareV1.0";
const char authorization[14]="Authorization:";
const char content[30]="Content-Type: application/json";
const char accept[11]="Accept: */*";
const char length[16]="Content-Length: ";
The functions to communicate with the W5100 work well because I have already used them in other applications, the problems I have are:
1) The values of some variables are changing sporadically, I think it is something related to the RAM memory since when monitoring for example the variable "peticion", its value is combined with some other string that I use later, for example, I paused the program for a moment and in the "expressions" window I saw that the value of "peticion" was in: " HTTP/1.1\asig IP ", which I imagine is caused by combinig it with a text that I used for the menu of device configuration.
2) When I load the program, debugging does not start correctly, the following window appears:

As if the program started running without me having given the "Run" button, in order to work I had to select "TI MSP430 USB1 / MSP430 (Running)" and press the "suspend" button leaving the screen as shown below:

Here I stagnated for a while since I did not know what to do, until I discovered that by changing the value of the variable "count" to 1, the program let me exit and continue with the execution of the code. Why does this happen? That could be related to a test that I carried out, where in a loop (while) I wrote a char type vector without defined size until it exceeded 2K of RAM memory?
Now, whenever I load the program I have to do this for it to run, and when I turn on the device without the debug connection, it does not turn on.