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

Applications not running in non-secure

Hello guys,

I am trying to run the mqtt_simple sample. I tried to do so on both nrf9160_pca10090ns and nrf9160_pca20035ns. The application builds fine for both boards but when I flash the program, nothing happens. I am expecting:

The MQTT simple sample started

to come through on the serial port but it never happens. I thought the issue was with the printk function so I tested a simple hello world and found out that when I flash programs for secure boards they run, but when I flash programs for non-secured boards (i.e. nrf9160_pca10090ns or nrf9160_pcs20035ns) they don't. The program seems to be flashed correctly but the application never starts or operates as expected.

Regards,

Parents
  • Try running nrfjprog --eraseall and see if that resolves your problem.

    Best regards,

    Simon

  • Now I can't flash the thingy91. It throws this error

    [1/9] Performing build step for 'spm_subimage'
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: Flashing file: /home/pascal/ncs/nrf/samples/nrf9160/mqtt_simple/build/zephyr/merged.hex
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    ERROR: command exited with status 33: nrfjprog --program /home/pascal/ncs/nrf/samples/nrf9160/mqtt_simple/build/zephyr/merged.hex -f NRF91 --snr 801014545 --sectorerase
    

Reply
  • Now I can't flash the thingy91. It throws this error

    [1/9] Performing build step for 'spm_subimage'
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: Flashing file: /home/pascal/ncs/nrf/samples/nrf9160/mqtt_simple/build/zephyr/merged.hex
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    ERROR: command exited with status 33: nrfjprog --program /home/pascal/ncs/nrf/samples/nrf9160/mqtt_simple/build/zephyr/merged.hex -f NRF91 --snr 801014545 --sectorerase
    

Children
No Data
Related