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')
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.