It's far too long to post it all here, but basically the section that is giving the trouble does this:
1. Sends a command to an external device , and then reads the returned string into a byte array - via USART.
2. Sends this returned string array out via SUART/UART for viewing in Terminal. This is just for me to see what is being returned. i.e. a 'test-print'.
Most of the time it is fine, but in one case something odd happens.
When sending the string to Terminal it actually sends the text "_DB_StrConst_07590" which is something in the Assembler listing instead of the actual variable value(??).
The line where it apparently errs is:
Code: Select all
uart.write("Rstep= ",dectostr(maxblock),13,10)
Is this some behaviour with an obvious solution or workaround?
I'd be really grateful for some tips here.