This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Project does not do serial output

code.zip

Hi,

I've created a project combining gps, nvs, and mqtt based off the nrf and zephyr project samples. I've been able to go into the sample projects and add .overlay files to the project and spm sample to output to another UART, but in my combined project it will only output through the Jlink on the LTE Link Monitor and not to the UART I defined. The project loads and builds without error. I have tried with a fresh install of nRF Connect SDK and all dependencies and am on v1.0.0.

CMakeLists

prj.conf

nrf9160_pca10090ns.overlay

nrf9160_pca10090.overlay in spm sample

I've attached a zip of my main.c and includes. I left out the certificates.h and kconfig

Thanks

Parents
  • Have you remembered to open a new build folder after you made changes in the project configuration. Also when you added the overlay files. Make the changes & then open a new example project & just change the build folder from build to build1 for example. This oftentimes solves the problem.

    Also, could you check to make sure that the changes you made are noticeable in this file: nrf\applications\asset_tracker\build1\zephyrnrf9160_pca10090ns.dts_compiled (i.e. the dts_compiled file inside your build folder of your own example).

Reply
  • Have you remembered to open a new build folder after you made changes in the project configuration. Also when you added the overlay files. Make the changes & then open a new example project & just change the build folder from build to build1 for example. This oftentimes solves the problem.

    Also, could you check to make sure that the changes you made are noticeable in this file: nrf\applications\asset_tracker\build1\zephyrnrf9160_pca10090ns.dts_compiled (i.e. the dts_compiled file inside your build folder of your own example).

Children
  • Hi Bjorn,

    Yes, I deleted the build folder and reopened the project each time I made a change. The changes I made were reflected in the dts_compiled file.

  • I probed all the pins on the DK (P.010, P0.11, P0.12, P0.13) and none of them show any indication of them being configured improperly.  They all seem to be at the correct potential.  It seems that the nRF9160 just isn’t outputting anything.

    I also tried connecting via the nRF Connect program just to make sure the VCOM ports weren’t taking over, but nothing is output there either.

    I’ve previously used these same pins and same overlay file to setup and run the UART example.  So I’m thinking it’s something in the conf file that's causing the issue but I’m not sure what.