Problem to configure pins using NRF52833 in raytac module

Hello everyone,

I trying to configure my MDBT50Q-U512k to use the ble_app_nus example. According to my board, I need change to uart pins defined in this example. Then, I have problems to configure it. My schematic is:

and the defult uart_init funcion is:

where the default pins are:

#define RX_PIN_NUMBER  8
#define TX_PIN_NUMBER  6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
#define HWFC           true

but to my code I modified according to my schematic, but the tx pin doesn't work.

I developed according to datasheet (see top view pins below)

Anyone can help me to solve it? Regards

Parents
  • Hi, 
    Agree with Hugh. You need to use NRF_GPIO_PIN_MAP(port, pin). See: 

     #define NRF_GPIO_PIN_MAP(port, pin) (((port) << 5) | ((pin) & 0x1F))

Reply
  • Hi, 
    Agree with Hugh. You need to use NRF_GPIO_PIN_MAP(port, pin). See: 

     #define NRF_GPIO_PIN_MAP(port, pin) (((port) << 5) | ((pin) & 0x1F))

Children
No Data