hithesh123
Full Member level 6
- Joined
- Nov 21, 2009
- Messages
- 324
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- lax
- Activity points
- 3,548
RFDATA_BUF[102]; Is there enough ram available?
Try const unsigned char for all your messages and use const unsigned char * as argument for your function. RFDATA_BUF[] has consumed 102 bytes of RAM. Remove your function and Compile and see how much RAM and ROM is left free.
If I use const char, then how would I call the printf_uart function.
for example, unsigned const char *strln1="error1";
How would I call the function - printf_uart(strln1); ?