I am just getting started with Zephyr and the nRF9160 Feather and I have so many dumb questions, but I’m trying to get through them myself. One barrier has been that I can’t read the output from printk in a terminal. Obviously, being able to examine stuff via logging would be immensely helpful for learning and experimentation.

The blinky_pwm example compiles, flashes, and runs fine for me, but I see garbage at the terminal, and I’m not going to be near my scope or analyzer for the next week to see the signal speed. So a couple of silly questions really:

  1. What is the default baud rate? Using the blinky_pwm example, I see the most garbage at 115200 and have tried all the other common rates. If it is supposed to be 115200, I have 8-bit data with 1 stop bit and no parity/no flow control. Maybe I have something wrong here?

  2. How do I change these values? I don’t see any config options in the blinky_pwm example, and my google foo is failing me - probably because I’m too new to Zephyr to know the right words to use.

    @TrivialSolution do you have a log you can share? Default should be 115200 but the bootloader runs at 1000000 so you may see some garbage characters on boot.

    You may be better off experimenting with the at_client sample or similar since that’s an interactive firmware and supported in NFED. (Right now there’s no blinky_pwm in NFED, are you using the sample from vanilla Zephyr?)

      jaredwolff Yes, vanilla Zephyr, I was unaware of the NFED repo (by which I think you mean this one - sorry, I didn’t realize the board needs a specific… adaptation? of Zephyr). I’ll give it a try for a bit and see if I have better luck.

      Incidentally, except for the garbage from uart, the blinky_pwm example from vanilla Zephyr works nicely :-)

        Yes, vanilla Zephyr, I was unaware of the NFED repo (by which I think you mean this one - sorry, I didn’t realize the board needs a specific… adaptation? of Zephyr). I’ll give it a try for a bit and see if I have better luck.

        Not exactly but all the samples have been tested and they have things like logging enabled by default. So you’re not guessing why you don’t see any output, etc.

        Incidentally, except for the garbage from uart, the blinky_pwm example from vanilla Zephyr works nicely :-)

        Glad something is working!

          Terms and Conditions | Privacy Policy