Git Product home page Git Product logo

Comments (4)

bradjc avatar bradjc commented on June 7, 2024

Progress towards getting the bootloader running on the nRF52840dk (PCA10056)

Useful guides:

  1. Turn off the mass storage device jlink

  2. Build the bootloader

    git clone https://github.com/adafruit/Adafruit_nRF52_Bootloader
    cd Adafruit_nRF52_Bootloader
    git submodule update --init --recursive
    make BOARD=pca10056 clean
    make BOARD=pca10056 sd
    make BOARD=pca10056 flash
    
  3. Compile the kernel with flash address starting at 0x26000.

  4. Convert a bin file to a DFU package

    adafruit-nrfutil dfu genpkg --sd-req 0xFFFE --dev-type 0x0052 --application target/thumbv7em-none-eabi/release/nrf52840dk.bin dfu-package.zip
    
  5. Load the bin file

    adafruit-nrfutil --verbose dfu serial --package dfu-package.zip -p /dev/cu.usbmodem14201 -b 115200 --singlebank --touch 1200
    

Notes

  • The bootloader appears to be at the top of the flash address range.
  • This right now requires the softdevice to be included. If we only care about supporting the DFU version I'm not sure that is required.
  • I had to remove the UICR erase step in the shared nrf boot code so that it does not clear the address of where the bootloader is. otherwise the softdevice does not jump to the bootloader.

from tock-bootloader.

bradjc avatar bradjc commented on June 7, 2024

I think with a little hacking it would be possible to make the bootloader DFU over serial only, and for it to not require a softdevice. And, the bootloader is only given 0xA000 bytes so it will fit in our standard 0x10000 space in flash.

from tock-bootloader.

bradjc avatar bradjc commented on June 7, 2024

Almost done in branch usb-cdc.

from tock-bootloader.

bradjc avatar bradjc commented on June 7, 2024

Done!

from tock-bootloader.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.