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

After flashing Thingy 52 SDK from uvision IDE thingy not working

downloaded thingysdkv210 from thingy website. extracted that file and executed Prerequisites as per the procedure

downloaded Python v3.xx.xx 

downloaded Git v2.xx.xx

Install GNU ARM embedded toolchain v4.9-2015q3

Make installed with default system path

download "Embedded MotionDriver 6.12"    -->   Unzip the downloaded `motion_driver_6.12` folder and navigate to `motion_driver_6.12/mpl libraries/arm/Keil`. Unzip the folder `libmpllib_Keil_M4FP.zip`. Copy the extracted library `libmpllib.lib` into `<your Thingy folder>/libs/libmpllib_Keil_M4FP/`. 

---> unzip `/motion_driver_6.12/mpl libraries/arm/gcc4.9.3/liblibmplmpu_m4_hardfp.zip`  and copy the extracted library `liblibmplmpu.a` into the folder `<your Thingy folder>/libs/liblibmplmpu_m4_hardfp/`.

run bat file cmd prompt by executing setup_sdk.bat

complied code in uvision by importing ble_app_thingy_s132_pca20020.uvprojx project from thingy 52 sdk

flashed thingy from PEmicro universal multilink programmer. My thingy stopped reponding from LED. I just flashed code without changing firmware. and i was expecting to behave thingy functionality. But it dint work. I donno whats the issue.. Please guide me to get back working thingy52 firmware..

Parents
  • Hello,

    The thingy comes preflashed with an application and a bootloader. In addition, both of them require the softdevice in order to run. 

    I believe (without having tested, because I deleted the preflashed firmware on my thingy a long time ago) that if you just replace the application, the bootloader will reject the FW. At least that is how the bootloaders in the "normal" SDK work. So you need to erase the entire flash of the Thingy in order to program a new application.

    If you didn't do this, but only replaced the application, then the bootloader will reject it.

    If you erased the entire flash, it doesn't sound like you have flashed the softdevice, and then the nRF52832 inside the Thingy doesn't know what to do with the application.

    So whatever you did, what you have to do is to:

    Erase the entire flash of the thingy. Usually, you can use "nrfjprog --eraseall" if you have Nordic Command Line Tools installed (although I don't know if that tool works with your programmer). But you can probably find out how to erase the flash with your programmer. 

    Then you need to program the application that you just compiled and the softdevice. By default they don't overlap, so that shouldn't be a problem. I don't think the softdevice comes with the Thingy SDK. You can see in Thingy52SDK\sdk_conponents\softdevice\s132\hex\ that it uses s132 v4.0.2. This is the softdevice that comes with the "normal" SDK version 13.1.0, and can be found in:

    SDK\components\softdevice\s132\hex\s132_nrf52_4.0.2_softdevice.hex, but for simplicity, I have attached it here:

    s132_nrf52_4.0.2_softdevice.hex

    After you have flashed them both, reset the Thingy52, either with your programmer or a power cycle, and it should be up and running again.

    Best regards,

    Edvin

  • how to flash this .exe file ( soft device)

     any configuration need to take care in project wrt windows , GNU compliers,??

    even though i erased from uvision ide, I m unable to get that working

    getting error when initiated flash.

    below are the log files when tried to load binary

    ********************************************************

    compiling system_nrf52.c...
    linking...
    Program Size: Code=124936 RO-data=29808 RW-data=740 ZI-data=35628
    FromELF: creating hex file...
    ".\_release_v1_0_0\app_thingy_s132.axf" - 0 Error(s), 0 Warning(s).
    Build Time Elapsed: 00:02:06
    Load "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\_release_v1_0_0\\app_thingy_s132.axf"
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^
    *** error 10: Syntax error
    Programming sequency is : erase, blank check, program, and verify {default}
    Application verified in memory. No need to reprogram.
    Flash Programming Successful.
    Flash Load finished at 17:13:15
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^
    *** error 10: Syntax error
    Programming sequency is : erase only
    Flash Erase finished 17:30:41
    Load "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\_release_v1_0_0\\app_thingy_s132.axf"
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^
    *** error 10: Syntax error
    Programming sequency is : erase, blank check, program, and verify {default}
    Current content of flash does not match application to be programmed
    Flash Programming Successful.
    Flash Load finished at 17:31:00
    Load "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\_release_v1_0_0\\app_thingy_s132.axf"
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^

    *** error 10: Syntax error
    Programming sequency is : erase only
    Flash Erase finished 17:32:24
    Load "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\_release_v1_0_0\\app_thingy_s132.axf"
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^
    *** error 10: Syntax error
    Programming sequency is : erase, blank check, program, and verify {default}
    Current content of flash does not match application to be programmed
    Flash Programming Successful.
    Flash Load finished at 17:32:39

    ********************************************************

Reply
  • how to flash this .exe file ( soft device)

     any configuration need to take care in project wrt windows , GNU compliers,??

    even though i erased from uvision ide, I m unable to get that working

    getting error when initiated flash.

    below are the log files when tried to load binary

    ********************************************************

    compiling system_nrf52.c...
    linking...
    Program Size: Code=124936 RO-data=29808 RW-data=740 ZI-data=35628
    FromELF: creating hex file...
    ".\_release_v1_0_0\app_thingy_s132.axf" - 0 Error(s), 0 Warning(s).
    Build Time Elapsed: 00:02:06
    Load "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\_release_v1_0_0\\app_thingy_s132.axf"
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^
    *** error 10: Syntax error
    Programming sequency is : erase, blank check, program, and verify {default}
    Application verified in memory. No need to reprogram.
    Flash Programming Successful.
    Flash Load finished at 17:13:15
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^
    *** error 10: Syntax error
    Programming sequency is : erase only
    Flash Erase finished 17:30:41
    Load "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\_release_v1_0_0\\app_thingy_s132.axf"
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^
    *** error 10: Syntax error
    Programming sequency is : erase, blank check, program, and verify {default}
    Current content of flash does not match application to be programmed
    Flash Programming Successful.
    Flash Load finished at 17:31:00
    Load "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\_release_v1_0_0\\app_thingy_s132.axf"
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^

    *** error 10: Syntax error
    Programming sequency is : erase only
    Flash Erase finished 17:32:24
    Load "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\_release_v1_0_0\\app_thingy_s132.axf"
    Include "D:\\thingysdkv210\\project\\pca20020_s132\\arm5_no_packs\\pemicro_connection_settings.ini"
    [STARTUP]
    ^
    *** error 10: Syntax error
    Programming sequency is : erase, blank check, program, and verify {default}
    Current content of flash does not match application to be programmed
    Flash Programming Successful.
    Flash Load finished at 17:32:39

    ********************************************************

Children
  • Where are these logs from? Did you try to use the Nordic Command Line Tools?

  • when device in boot loader mode I updated my thingy to latest version from DFU. I was not having any issues in DFU.

    I had a new task to load firmware from PE micro and i flashed binary to thingy.

    when I flashed my binary to thingy 52 device by importing thingysdkv210 project in uvision IDE and with the help of PE multi link debugger.

    I received error which i mentioned above and thingy is not working. i can able to detect thingy in PE micro debugger and shows flashed binary but default code(without changing code in project)

    when I flashed thingy is not working.. I was thinking that Thingy will reload binary to work but it is not working

    now my thingy52 device unable to got to boot-loader mode neither not activating default thingy  application.In this task Im strucking and I dont have nRF52 DK to flash bootloader from usb .. Please help me to resolve this issue

  • You need a programmer that you can:

    1: Erase the entire flash of the thingy

    2: Program the softdevice that I attached in the first reply

    3: Program the application .hex file that you compiled with your SDK.

    I am not familiar with the programmer that you use, so I don't know how to do it with this one. If you have modified the binaries with a programmer, then the bootloader will not work anymore. You need to be able to program it from scratch. How did you connect your programmer to the thingy?

  • above image is my thingy 52 and programmer(PE micro universal multilink ) which i used for flashing thingysdkv210.

    how to load binaries from scratch?? may be you are true.. i think my boot loader is not working. observed my device is not going to boot mode during the power-on reset switch with top button press simultaneously.

    and i'm using uvision IDE for importing project, building and loading binaries.

    can i get boot-loader code separately so that i can flash my application from DFU to get back my thingy work.

Related