Factory programming script with S332 V7.0.1, App and bootloader that boots the app

Hi,

I am struggling getting my production programming script to work in a way where I get everything programmed including the App being validated...

For some reason it stays in bootloader mode after programming

What am i missing

Programming script:

@echo off
echo.|time
echo Erasing the chip...
nrfjprog.exe -e

echo.
echo Programming SoftDevice S332
nrfjprog.exe --program hex\ANT_s332_nrf52_7.0.1.hex --verify

echo.
echo Programming Secure Bootloader version 01
nrfjprog.exe --program hex\secure_bootloader_ble_s132_pca10040.hex --verify

echo.
echo Programming N52 FW version 1.0.0.0
nrfjprog.exe --program hex\ble_app_cscs_pca10040_s132.hex --verify

echo.
echo Programming settings hex file
nrfjprog.exe --program hex\settings.hex --sectorerase -r

The hex files are production builds

And I am unsure what the settings file does - it is generated as follows

nrfutil settings generate --family NRF52 --application ~/Dropbox/BodyBike/SES_Files/ble_app_cscs_pca10040_s132.hex --application-version 0xFFFFFFFF --bootloader-version 1 --bl-settings-version 2 settings.hex

asdasd

Parents
  • Hi!

    1) Does the program run fine if you don't flash the bootloader and the settings hex?

    Your FW is called ble_app_cscs_pca10040_s132.hex , but you are using S332?

    2) If you flash the *_debug variant of the bootloader, then nrf_logs are enabled and you should get some information in the log about why it did not start.

Reply
  • Hi!

    1) Does the program run fine if you don't flash the bootloader and the settings hex?

    Your FW is called ble_app_cscs_pca10040_s132.hex , but you are using S332?

    2) If you flash the *_debug variant of the bootloader, then nrf_logs are enabled and you should get some information in the log about why it did not start.

Children
  • Hi!

    Yes the app runs just fine when I program it with S332 og app using dev tool Segger Embedded Studio ;)

    I know the hex file is misleading - this is because I used the Example code and converted it to S332

    I should rename this

    I have tried buildig the debug version but It cannot fit into the same bootloader space so need to adjust things

    But have tried debugging the bootloader and can actually see CRC is good but there are so many checks before the app is validated

  • Flemming Jensen said:
    I have tried buildig the debug version but It cannot fit into the same bootloader space so need to adjust things

    The debug project is already adjusted, you can find it in 

    sdk_folder\examples\dfu\secure_bootloader\pca10040_s132_ble_debug

Related