NRF52833 and circuitpython

Hello,

I'm trying to install circuitpython onto an nrf52833 dk board, and am running into a fair amount of trouble.

Wondering if anyone can provide a guide on the explicit processes and requirements to push this project (or one like it) onto the board.

Main issue:

CircuitPython provides a .uf2 file that is 458k large. When the 833dk is powered up with the bootloader exposed, it only has 128k available. Simply not enough room.

Hoping someone can help me see what I'm missing.

Cheers,

S.

OS: Win10/MacOS Monterey
Board: nrf52833 dk, with soc being the next target
CircuitPython repository: https://github.com/adafruit/circuitpython

Parents
  • Hi,

    You could check out micropython, which is used for instance for the micro:bit (version 2 of the micro:bit uses nRF52833.) There is also a fork of micropython specifically for the micro:bit.

    Regards,
    Terje

  • Hi tesc,

    Thanks for getting back.

    I have built this project successfully, but the issue remains the same: the bootloader is simply too small (128k) to accommodate the hex file that results from the build. This means I cannot simply drag-and-drop that hex onto the bootloader.

    When I try to load the hex from the command line using

    nrfjprog -f NRF52 --program MICROBIT.hex --verify --log

    I get some errors that neither micropython nor the microbit project know how to handle -- The former doesn't support NRF52, and the latter is expecting a microbit device, not a Fanstel dk board.

    Parsing image file.
    Verifying programming.
    ERROR: [  nRF52] - Data does not match in address range [0x0001c000-0x00065878] (Flash)
    ERROR: [  nRF52] - Expected byte value 0xdd but read 0x00 at address 0x00027000.
    ERROR: [  nRF52] - Flash verification failed.
    ERROR: [  nRF52] - Failed while verifying file MICROBIT.hex.
    ERROR: Write verify failed.

    The resulting log file is quite lengthy, but I can provide.

    Appreciate any guidance here.

    Best!

Reply
  • Hi tesc,

    Thanks for getting back.

    I have built this project successfully, but the issue remains the same: the bootloader is simply too small (128k) to accommodate the hex file that results from the build. This means I cannot simply drag-and-drop that hex onto the bootloader.

    When I try to load the hex from the command line using

    nrfjprog -f NRF52 --program MICROBIT.hex --verify --log

    I get some errors that neither micropython nor the microbit project know how to handle -- The former doesn't support NRF52, and the latter is expecting a microbit device, not a Fanstel dk board.

    Parsing image file.
    Verifying programming.
    ERROR: [  nRF52] - Data does not match in address range [0x0001c000-0x00065878] (Flash)
    ERROR: [  nRF52] - Expected byte value 0xdd but read 0x00 at address 0x00027000.
    ERROR: [  nRF52] - Flash verification failed.
    ERROR: [  nRF52] - Failed while verifying file MICROBIT.hex.
    ERROR: Write verify failed.

    The resulting log file is quite lengthy, but I can provide.

    Appreciate any guidance here.

    Best!

Children
No Data
Related