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

Make MCUboot run without enabling serial

Im trying to recreate the example from:

https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/hardware-design/posts/measuring-psm-idle-current-on-the-nrf91-dk

But also having MCUboot appplication compiled in.

But is I disable the serial port on SPM and my application project then board seems to go into a loop on only running MCUboot, and MCUboot still uses the serial port. Anyone have any insight into how to recreate the same results in the above blog post but still compliling application + spm + mcuboot?

Parents
  • Are you sure you have disabled the serial port? I have added CONFIG_SERIAL=n to SPM and my own custom project and the device no longer prints printk() or printf() to the Link Monitor.

  • My mcuboot outputs:

    Edit: Hm.. Thats perhaps the boot banner... Recompiling.

  • This is for the nRF9160 right? I've never see any output from mcuboot on start-up. Upon starting any nRF9160 sample or custom program I would only see:

    Followed by the rest of my code. This is all silenced when setting CONFIG_SERIAL=n. The only time I would see information close to that is when I invoke NVS which would show:

    But that is again silenced by SERIAL=n. Have you invoked something in either your code or in your prj.conf to display this kind of information. Maybe some kind of logging configuration?

    EDIT:

    Ah ok, re-read your OP, so you are adding MCUBoot to your project which isn't normally done in the example files. Looking at the MCUBoot template, have you tried setting #define MCUBOOT_HAVE_LOGGING to 0?

  • Fixed... The error was me editing the wrong project file.

    The right project file is:

    mcuboot\boot\zephyr\prj.conf

    And just adding:

    Fixed my issue. Thanxs for suggestions and help

Reply
  • Fixed... The error was me editing the wrong project file.

    The right project file is:

    mcuboot\boot\zephyr\prj.conf

    And just adding:

    Fixed my issue. Thanxs for suggestions and help

Children
No Data