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

thingy52 (&nRF52840) writing my own software

Hey Nordic Devzone,

I am really new to Nordic and am still a student in embedded software engineering. So first some background information.

I have 6x nRF52840 and 5x Thingy52. My goal is to create a mesh network using 5 thingy52's connected to a nRF52840. Than using thread/low6PAN to connect 2 nRF52840 and have one of the nRF52840 setup with a Wiznet5100 chip to post stuff to the internet.

Last few weeks were setup in to getting myself acquainted with the nRF52840 and got the Wiznet5100 chip working on a unit and can send HTTP GET & POST.

Back to the Thingy52: Right now I have Keil uVision installed and am able to compile (30 day license to bridge the 32k code limit) the code in : \thingy_sdk_v2.1.0\project\pca20020_s132 How do I get the .axf file on one of my Thingy52. If I am correct the Thingy52 does not support serial connection. So is it true that I have to use some cable to connect it to my nRF52840 to upload the program? Or can I do something else to get my program on the Thingy52? My goal is to get the Thingy52 connected with the nRF52840, any guides or tutorials available?

Another thing, the nRF52840 had some really good examples and documentation and getting started. I am kinda missing this with the Thingy52, I can only find documentation about the Android/iPhone app and the standard firmware/software the thingy52 is delivered with.

One note; the help has been awesome in this community and I want to thank all the people that have helped me in the last few weeks up front : Sigurd & Bjørn Kvaale

  • Like I mentioned above, I would either get a cable or try it using the Nordic Thingy app? Do you have an iPhone or are you using an Android phone? I have not tried OTA-DFU using the nrf connect app yet, so I would need to look into that a bit more. But try one of the other two methods I posted first. :)

    EDIT: What I have posted previously is wrong, as you need to do Secure DFU in order to flash a custom FW onto the Nordic Thingy. For OTA-DFU of the Nordic Thingy FW, it is possible to either go via nrf51/52 dk/SWD (edit: not JTAG) cable or via the Thingy app for Android or iOS.

  • I have a Android, is it possible to upload a boot_loader package using the Thingy App. Because I cant see the device in DFU mode when using the thingy app.

  • Using the thingy app my boot_loader also does not get loaded correctly. I think it has to do with that error I am getting when using nRFconnect on my desktop. Although I am not getting any feedback or error code from the thingy app.

  • Trying to verify if my bootloader I compiled using the Thingy52 SDK is correct. So following the guides on the thingy52 website which refers me to the nrfutil guide

    If I try to tun the command specified there to check my boot_loader specifics:

    > nrfutil settings display nrf52832_xxaa_s132.hex
    Failed to parse .hex file: Bad access at 0xFF000: not enough data to read 4 contiguous bytes
    

    Starting to feel a bit helpless with these Thingy52's. No where it is specified while buying these I would need a specific development cable, nor is it delivered with the 5 units that were purchased.

    Cant I just use the bootloader that is present on the thingy52 and write my own application? I just want to connect them in a Mesh Network with the nRF52840 and share the sensor data.

    Thanks in advance for any help.

  • Was able to get a cable from the electronics department, was able to flash my boot_loader onto the unit know using the direct connection with a nRF52840-PDK. I also compiled the code in the project\pca20020_s132. With my own bootloader the Thingy52 just hangs in the DFU mode.

    Seems this topic is about the same problem so I asked a question there to.

    Because the cable is allowing me to flash and at least compile&upload the base code to the thingy52 I will start studying the mesh capabilities on the Thingy52. Although at this moment reading the library seems everything is BLE(4) with gap, gatt. Not the bluetooth 5 structure.

    Can someone from Nordic tell me if the idea/project idea I had is even really remotely possible with the hardware I have now (6x nRF52840 PDK & 5x Thingy52) but most importantly with the software that is available for the thingy52 and the nRF52840. The idea I am referring to is: Mesh network of 5x Thingy52 & 1x nRF52840-PDK as host. Another network of multiple nRF52840-PDK using thread.

Related