LPC802 output pin issue when initialize Uart

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC802 output pin issue when initialize Uart

559 Views
asier
Contributor III

Hi,

I was developing a code and all went fine until I decide to use a Uart TX pin. I chosed PIO0_14 and generated code with MCUxpresso to create pin_mux.c and peripherals.c.

I use another pin (PIO0_1) as test output pin, so that when code startes running I can see a pulse of some milisecond on PIO0_1 output pin.

When I was not using Uart I saw this pulse on PIO0_1, but as soon as I do "USART_Init(USART0, &config, CLOCK_GetFreq(kCLOCK_MainClk));" to initialize Uart, my output pulse on PIO0_1 does not work again.

Any helping will be apreciated.

Asier.

0 Kudos
1 Reply

550 Views
asier
Contributor III

I've opened a new project and copy/paste my source c file from old to new one. In the new project all goes right.

Both projects have same board.c, clock_config.c, preipherals.c, pin_mux.c and source c files. I dont know why in old project it does not work and in the new one it works fine.

It creates some insecurity in me. Any idea where is the problem ?

0 Kudos