{"id":21191659,"url":"https://github.com/edgeimpulse/firmware-nordic-thingy53","last_synced_at":"2025-07-10T03:30:51.641Z","repository":{"id":80694126,"uuid":"488107162","full_name":"edgeimpulse/firmware-nordic-thingy53","owner":"edgeimpulse","description":"Official Edge Impulse firmware for Nordic Semiconductor Thingy:53","archived":false,"fork":false,"pushed_at":"2024-09-18T08:13:00.000Z","size":8398,"stargazers_count":17,"open_issues_count":0,"forks_count":8,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-09-18T10:50:38.522Z","etag":null,"topics":["edge-impulse","edge-impulse-firmware","nordicsemi","nrf5340","thingy53"],"latest_commit_sha":null,"homepage":"https://edgeimpulse.com/","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgeimpulse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-03T06:56:28.000Z","updated_at":"2024-09-18T08:13:04.000Z","dependencies_parsed_at":"2024-06-24T12:16:14.424Z","dependency_job_id":"17419e7f-c8ae-4685-89c8-93cc084a4a1a","html_url":"https://github.com/edgeimpulse/firmware-nordic-thingy53","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Ffirmware-nordic-thingy53","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Ffirmware-nordic-thingy53/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Ffirmware-nordic-thingy53/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Ffirmware-nordic-thingy53/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgeimpulse","download_url":"https://codeload.github.com/edgeimpulse/firmware-nordic-thingy53/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225615185,"owners_count":17496944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["edge-impulse","edge-impulse-firmware","nordicsemi","nrf5340","thingy53"],"created_at":"2024-11-20T19:04:19.164Z","updated_at":"2025-07-10T03:30:51.635Z","avatar_url":"https://github.com/edgeimpulse.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Edge Impulse firmware for Nordic Semiconductor Thingy:53\n\n[Edge Impulse](https://www.edgeimpulse.com) enables developers to create the next generation of intelligent device solutions with embedded Machine Learning. This repository contains the Edge Impulse firmware for the Nordic Semiconductor Thingy:53 development board that includes a subset of the available sensors, for all of the currently supported sensors see [src/sensors](https://github.com/edgeimpulse/firmware-nordic-thingy53/tree/main/src/sensors). This firmware supports all Edge Impulse features, including ingestion, remote management, and inferencing. Direct communication with the device is performed over a mobile application, but the user can execute all functions via AT command over a USB interface. By including specific build configuration this firmware can be enabled to run with Nordic compatible WiFi external board **nRF7002eb**.\n\n\u003e [!NOTE]  \n\u003e This firmware is compatible with **NCS version 2.4.0**\n\n## Building the device firmware (locally)\n\n1. Install the [nRF Connect SDK](https://docs.nordicsemi.com/bundle/ncs-2.4.0/page/nrf/getting_started/installing.html) in a *separate* folder from this repository (e.g. `~/repos/ncs`).\n\n2. Clone this repository:\n\n    ```bash\n    $ git clone https://github.com/edgeimpulse/firmware-nordic-thingy53\n    ```\n\n3. Build the application:\n\n    ```bash\n    #  Thingy:53 build command\n    $ west build -b thingy53_nrf5340_cpuapp\n\n    # Thingy:53 with nRF7002eb (WiFi) builf command\n    $ west build -b thingy53_nrf5340_cpuapp -- -DSHIELD=nrf7002eb \n    ```\n\n## Building the device firmware (Docker)\n\n1. Clone this repository:\n\n    ```bash\n    $ git clone https://github.com/edgeimpulse/firmware-nordic-thingy53\n    ```\n\n2. Build the Docker container:\n\n    ```bash\n    $ docker build -t edge-impulse-nordic .\n    ```\n\n3. Build the application:\n\n    ```bash\n    #  Thingy:53 build command\n    $ docker run --rm -v $PWD:/app edge-impulse-nordic west build -b thingy53_nrf5340_cpuapp\n\n    # Thingy:53 with nRF7002eb (WiFi) builf command\n    $ docker run --rm -v $PWD:/app edge-impulse-nordic west build -b thingy53_nrf5340_cpuapp -- -DSHIELD=nrf7002eb \n    ```\n\n## Flashing\n\n### Over JLink\n\n1. Connect the JLink to the Thingy:53 as described [in this guide](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/device_guides/working_with_nrf/nrf53/thingy53_gs.html#updating_through_external_debug_probe); if not previously done, erase the chip with:\n\n    ```bash\n    $ nrfjprog --recover\n    ```\n\n2. Flash the chip, both application core and networking core, with the command:\n\n    ```bash\n    $ west flash\n    ```\n\n### Over Serial DFU using `mcumgr` CLi tool\n\n1. Connect USB-C to the Thingy:53. Open the enclosure, press the small button (`SW2`) on top of the device and turn the power switch on.\n\n    ![Recovery button location](./docs/recovery-button.png)\n\n2. After the device is on, release the button. The device is now in bootloader mode. For flashing the new firmware, use commands:\n\n    ```\n    mcumgr -t 60 --conntype serial --connstring=/dev/ttyACM0 image list\n    mcumgr -t 60 --conntype serial --connstring=/dev/ttyACM0 image upload app_update.bin\n    ```\n\n### Over Serial DFU using nRF Connect Desktop\n\nFollow the steps from [this guide](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/device_guides/working_with_nrf/nrf53/thingy53_gs.html#updating_through_usb). Instead of precompiled firmware, use the file `build/zephyr/app_signed.hex`.\n\n### Over BLE DFU\n\n#### Use mobile app (Android/iOS)\n\nUse [nRF Connect for Android](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp) or [nRF Connect for iOS](https://apps.apple.com/pl/app/nrf-connect-for-mobile/id1054362403) and `build/zephyr/dfu_application.zip`. After connecting to the device, click on the DFU icon and select the file. When the DFU process is done, the device will boot with the new image.\n\n#### Use `mcumgr`\n\n1. Install [mcumgr](https://docs.zephyrproject.org/latest/guides/device_mgmt/mcumgr.html)\n2. Upload the firmware (adjust the path to `app_update.bin` and `hci` interface number if you have a few of them)\n\n    ```bash\n    mcumgr --conntype ble --hci 0 --connstring peer_name='EdgeImpulse' image upload app_update.bin\n    ```\n\n3. Check if the firmware has been uploaded correctly and get the hash of new firmware\n\n    ```bash\n    mcumgr --conntype ble --hci 0 --connstring peer_name='EdgeImpulse' image list\n    ```\n\n    The output should be similar to the one below; the new image is in slot 1.\n\n    ```\n    Images:\n    image=0 slot=0\n        version: 0.9.9\n        bootable: true\n        flags: active confirmed\n        hash: 67f6f87f3f639217140f9e8073cb28f214499d7f646cb774276496108326a7ba\n    image=0 slot=1\n        version: 0.9.1\n        bootable: true\n        flags:\n        hash: c218220606d3ecef26dc46ffd7c112e700d08837335516c40ae12f6a86aa7ab2\n    Split status: N/A (0)\n    ```\n\n4. Test the image and swap the images\n\n    ```\n    mcumgr --conntype ble --hci 0 --connstring peer_name='EdgeImpulse' image test \u003cHASH_OF_THE_IMAGE\u003e\n    ```\n\n5. Reset the device (may take up to 10-20 seconds)\n\n    ```\n    mcumgr --conntype ble --hci 0 --connstring peer_name='EdgeImpulse' reset\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeimpulse%2Ffirmware-nordic-thingy53","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgeimpulse%2Ffirmware-nordic-thingy53","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeimpulse%2Ffirmware-nordic-thingy53/lists"}