lpcware

BUG UART1 IOCON_112x.h  lpcopen_2_17_keil_iar_nxp_lpcxpresso_1125

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by ybouchet on Thu Jul 23 04:16:55 MST 2015
Hi,
i started to work with a lpc1124 and need to use uart0 and uart1.
I begin my work based on the uart example of lpcopen.
to use uart1 on PIO0_6 and PIO0_7 i used the function:
Chip_IOCON_PinMuxSet(LPC_IOCON, IOCON_PIO0_6, (IOCON_FUNC3 | IOCON_MODE_INACT ));/* TXD */
Chip_IOCON_PinMuxSet(LPC_IOCON, IOCON_PIO0_7, (IOCON_FUNC3 | IOCON_MODE_INACT ));/* RXD */
My uart1 dosen't work.
After controle all registers, look what i saw:
&LPC_IOCON->REG[IOCON_PIO0_6]: 0x4004404c 0010 0000 0000 0010 0010 0000 0010 0011 <CR><LF>
&LPC_IOCON->REG[IOCON_PIO0_7]: 0x40044050 0010 0000 0000 0010 0010 0000 1010 0000 <CR><LF>
0x4004404c and 0x40044050 was wrong adresses (Bug on the lpcopen project).

After setting the port like that:
  //PIO0_6, address 0x4004 40C4
  *((uint32_t *)0x400440C4) = (IOCON_FUNC3 | IOCON_MODE_INACT );
 
  //PIO0_7, address 0x4004 40C8
  *((uint32_t *)0x400440C8) = (IOCON_FUNC3 | IOCON_MODE_INACT );
It also work fine.

Do i miss something or do something wrong????
Is it just a bug?

Thank you for your reply.

Outcomes