I am trying to use, UARTPrintf function.
How can i use my setup...in c code.
UARTCharPut function is not ...........
UART printf ::: i like very much to use...
pls guide to use this...
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am trying to use, UARTPrintf function.
How can i use my setup...in c code.
UARTCharPut function is not ...........
UART printf ::: i like very much to use...
pls guide to use this...
Hi,
Two steps:
1) add the file utils/uartstdio.c to your project. Ad it as a symbolic link.
2) inside the file you call functions from this file, insert at the beginning #include utils/uartstdio.h
Do not forget to read the code inside .c file and the comments of each function.
Petrei
Complied ....
as you said ...
But i obereved the result in console
CORTEX_M4_0: Error: Debug Port error occurred.
CORTEX_M4_0: Trouble Halting Target CPU
It is not working....
#define TARGET_IS_BLIZZARD_RB1
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/debug.h"
#include "driverlib/fpu.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "driverlib/pin_map.h"
#include "driverlib/rom.h"
#include "driverlib/sysctl.h"
#include "driverlib/systick.h"
#include "driverlib/uart.h"
#include "utils/uartstdio.h"
#include "utils/uartstdio.c"
.................................
UARTprintf("OFF");
...................................
Hi,
If diving a car too fast you may hit the traffic lights at the corner...
Please observe what I said: add the file utils/uartstdio.c as symbolic link, not to inlude it like the .h file. Do not know how to do it? Better ask, or just copy both files to your project (take care how to do it).
Also, what I said, was to read first the comments and functions; just jumping to UARTPrintf does not help, should init first with UARTStdioInit(comport) - again just read what can be comport and do not forget to init the pins for that, if it is the case.
Petrei