7 years, 2 months ago.

NRF52832 RX(p8) and TX(p6) pins Digitalout not working?

Hello, I am having some issue with my nrf52832! I need the pins p6 and p8 as outputs, i upload my code on the board to toogle the pins, but i am only getting constant 2.8V. I think the problem is because p6 and p8 are also use for RX and TX. I think i must somehow disable it, but i dont konw how?

Thanks!!

Suad,

Sorry for the issues you are having.

Have you tried other pins to see if the problem still occurs?

What mbed library are you using?

Are you toggling the RX and TX pins anywhere in your program??

For reference the pins: https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/PinNames.h

Regards,

Andrea, team mbed

posted by Andrea Corrado 08 Mar 2017

Thank you for your responese!! Yes, other pins work great i only included the mbed.h library and toogle 3 pins 17,6,8. Pin 17 works perfect but 6 and 8 it wont work, i dont know mabe i gorgot something. Here is the code:

  1. include <mbed.h> DigitalOut led(p17); DigitalOut rx(p6); DigitalOut tx(p8); int main(){

while(1){ led=!led; rx=!rx; tx=!tx; wait(0.5); }

return 0; }

posted by Suad Suljic 08 Mar 2017

1 Answer

6 years, 6 months ago.

I know a website of components, hope it can help you http://www.findic.us/?lnk=lt http://de.findic.com/?lnk=lt