We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Howdee
I'm trying to create a UART Debug Function in which i can pass it some parameters 1 of them a string or array of data I've tried then following but none of them work
FUNC void UARTinput(unsigned char CMD, unsigned char DATA[]) { ... }
FUNC void UARTinput(unsigned char CMD, unsigned char DATA[255]) { ... }
The idea is to run the Debug Function as follows: UARTinput( 0x34, 'HELLO WORLD')
Arrays, structures and pointers are not allowed. This is stated in the documentation.
Drats thats dissapointing...
Thanx Jakob
Nonsense!
"This is stated in the documentation"
Where??
Post a link to where it says that!
No - it's just wrong!
Keil tools certainly do support pointers & arrays & structures!
What happens if you use a name other than DATA...?
And you're sure that applies to debugger functions too?
Ah - no.
I totally missed that!
>blush<
Yes that is one of the restrictions of uVision Debug Functions - see: http://www.keil.com/support/man/docs/uv4/uv4_df_diffbtwdbgandc.htm (5th bullet point).
My mistake.
Andy here it is stated in the debug language documentation, oddly I was using the simulator the last few weeks to find an obscure bug anyhow I happened to know for a change:
http://www.keil.com/support/man/docs/uv4/uv4_df_diffbtwdbgandc.htm
PS is the op sure it was a C251 he was working with? I haven't written anything for that thing for 8 years.
Stephen