Hi,
I have got an issue with one of the example programs from the controlSUITE package:
Example_2806xSci_Echoback
It is a fairly simple Hello World program, although it seems to have an issue with the string assignments.
here the relevant code:
void main(void)
{
char *msg;
msg="\r\n\nHello World!\0";
scia_msg(msg);
}
In theory quite simple, although for some reason the msg-pointer points to an uninitialized memory-block or some block used by something else since it contains invalid characters as well as some other totally unrelated text, altough it allways seems to be exacly the same values after restart.
I also tried using:
char msg[50]; or char *msg;
strcpy(msg, "My TestString");
char msg[50]; or char *msg;
msg[0]='M';
msg[1]='y';
.....
Where only the last 2 worked, the strcpy() did not seem to produce anything useful eighter.
Now even though it would in theory be possible i can not quite beleeve that i am supposed to define every string char-by-char :)
What did work:
reading characters from RS232-controller (MAX232)
sending strings (once they were properly initialized) via RS232
Used Tools:
CCS v5.2.1.00018
controlSUITE v3.0.3
TMX320F28069 with DockingStation
It would be much appreciated if someone could help.
Br,
Chris