Compiled uart example does not work

Hello,

we are using the Bluetooth module BL651 which should be using the nrf52810 chip soldered on our custom board.
I followed the documentation installing the appropriate software and drivers(arm-gcc, Jlink, nrf connect for desktop and the nrfjprog) .
I tried flashing the UART compiled example via the nRF programmer and it worked, I tried the same with the command line tool and it worked as well.
What I tried doing next was to modify the main.c of the example and re-compile the project and flash it, but for some reason it does not work. Keep in mind that I just added a "printf" before another one.
I flashed both with the command line tool and with the nRF programmer and still no output on serial terminal nor on a logic state analyzer. I have tried removing the parts about UART flow control, I checked if the pins were correct and tried modifing the Makefile but with no luck.
I am compiling with arm-gcc installed on WSL and I am flashing with the nrfjprog installed on Windows OS. On final note at the installation of the drivers, there was a problem about a different version of the Jlink driver when opening nRF connect as a solution I installed the driver version that the program was expecting.
If someone has any ideas or can give me some suggestions and/or documentation I will really appreciate that.
Thank you in advance
Mattia Gianesini

Some specifications
OS: Windows 11
arm-gcc version:  10.2.1
Jlink version:    7.66a
Nordic SDK:       17.1.0

Parents
  • Hi,

    First, it looks like you are getting into development with our products; nice!
    I should let you know that we have two SDKs. See the nRF Connect SDK and nRF5 SDK statement.

    I recommend the Nordic Developer Academy as an excellent place to start learning the nRF Connect SDK.

    If you need to use the nRF5 SDK, this is fine, but I recommend using the nRF Connect SDK if you are getting started.

     

    Let me know which SDK you want to use before I go on assisting in this case.

    Regards,
    Sigurd Hellesvik

    PS: You can use the terminal for working with the nRF Connect SDK if you prefer that (I do).

  • Hello,
    Thank you for your answer, I have followed the first lesson of the course explained and I was able to build and flash an example (peripheral_uart) but it still does not work.
    First of all it gives me problems when compiling if I use the default "prj.conf", saying that some content will not fit the FLASH and/or RAM section. So I did some research and I chose to use the
    "prj_minimal.conf", with this configuration the build completes and I am able to flash it. But however I see nothing on TeraTerm nor on the logic state analyzer. Right now I am out of ideas, could you
    please provide me with some additional help about my problems ?

    Thank you in advance
    Mattia Gianesini

    Some specifications
    OS: Windows 11
    arm-gcc version:  10.2.1
    Jlink version:    7.66a
    Nordic SDK:       17.1.0

Reply
  • Hello,
    Thank you for your answer, I have followed the first lesson of the course explained and I was able to build and flash an example (peripheral_uart) but it still does not work.
    First of all it gives me problems when compiling if I use the default "prj.conf", saying that some content will not fit the FLASH and/or RAM section. So I did some research and I chose to use the
    "prj_minimal.conf", with this configuration the build completes and I am able to flash it. But however I see nothing on TeraTerm nor on the logic state analyzer. Right now I am out of ideas, could you
    please provide me with some additional help about my problems ?

    Thank you in advance
    Mattia Gianesini

    Some specifications
    OS: Windows 11
    arm-gcc version:  10.2.1
    Jlink version:    7.66a
    Nordic SDK:       17.1.0

Children
Related