I am now running into a bootloader issue, I am attempting to upload the compiled serial_lte_modem with the below commands, and I don’t think the bootloader is working, or something is not enumerating correctly.

Entering the bootloader by holding the button and pressing reset while the button is depressed does not appear to be placing it into a mode that I can upload with, it is in some other mode since I don’t get any UART output as in the normal application mode, or it does not match the 115200 speed I am watching the UART with.

The nRF9160 has a native USB I believe, but it is not enumerating as tty.SLAB_USBtoUART as shown in the example I am reading here…

https://docs.jaredwolff.com/nrf9160-programming-and-debugging.html#booloader-use

I have not yet touched the JTAG programmer, seeing if I can upload with just the bootloader.

I do have the nRF9160DK here with a TagConnect cable prepared that I used to update the Icarus modem firmware with so it is an option if I should need to update the bootloader.

I thought I would reach out first before I do more destructive JTAG programming to see if there is something simple I missed.

To add a few more details, running on MacOS 11.1, SDK v1.4.99-dev1 and using the following commands…
/opt/nordic/newtmgr conn add serial type=serial connstring=‘dev=/dev/tty.usbserial-1420’
/opt/nordic/newtmgr -c serial image upload build/zephyr/app_update.bin

Reset also does not respond
/opt/nordic/newtmgr -c serial reset

  • jaredwolff replied to this.
  • aldras are you on Mac? Have you installed the SiLabs drivers? The nRF9160 doesn’t have built in USB. An external CP2102N is being used for that purpose.

    Also, you can’t have anything connected to the serial port (I.e. a console) while using the boot loader.

    aldras are you on Mac? Have you installed the SiLabs drivers? The nRF9160 doesn’t have built in USB. An external CP2102N is being used for that purpose.

    Also, you can’t have anything connected to the serial port (I.e. a console) while using the boot loader.

    Thank, this is exactly what it was!
    I noticed one VCP enumerating so I thought it was not a driver issue, after installing the driver a second VCP popped up. I am now able to load the bootloader but have some more troubleshooting to do, I either misrouted pins or there is some other issue.

    I am currently sidetracked working on a way to compress JPEG on the M4 so I will get back to the nRF9160 in a bit, the JPEG compression is part of the project. In reality though, it is not very practical to have the M4 do JPEG image compression, it takes a few seconds to compress a 160×120 BMP image, but something that I would like to complete. I have it mostly working but I am getting stripes of garbage across the JPEG and trying to figure out what is going on.

      aldras I am currently sidetracked working on a way to compress JPEG on the M4 so I will get back to the nRF9160 in a bit, the JPEG compression is part of the project. In reality though, it is not very practical to have the M4 do JPEG image compression, it takes a few seconds to compress a 160×120 BMP image, but something that I would like to complete. I have it mostly working but I am getting stripes of garbage across the JPEG and trying to figure out what is going on.

      Did you write something custom for this or is there a library for it? I wanted to do this a while back but seemed out of reach for the environment I was working with.

        11 days later

        jaredwolff
        Ah sorry for the late reply on this, I am the the type that gets distracted easily on a project and forgets about other things things easily.
        Started to type a long reply here, I am going to post it in the other thread here.

        Basic answer yes, I got a raw image (read 16 bit 160×120 pixel) JPEG encoder working on the M4.

        https://community.jaredwolff.com/d/65-nrf9160-with-m4-mcu-camera-and-lcd-screen-project/20

        Terms and Conditions | Privacy Policy