Git Product home page Git Product logo

Comments (8)

microbuilder avatar microbuilder commented on July 29, 2024

Since we may need an option for force OTA boot mode instead of the more common SERIAL mode, but we don't have a free pin dedicate for this, I propose to use the F.RST pad which is located on a test point on the bottom of the PCB. It won't happen commonly anyway.

We can still keep factory reset behaviour like normal (when only FRST is asserted), but asserted both DFU and FRST pins at the same time will enter OTA bootloader mode, which at least keeps the possibility even if it's more trouble than entering SERIAL bootloader mode.

from adafruit_nrf52_arduino.

hathach avatar hathach commented on July 29, 2024

What is the factory reset pin though. I don't see it in the schematics .

from adafruit_nrf52_arduino.

microbuilder avatar microbuilder commented on July 29, 2024

See P0.22 here: #1

It doesn't have a 0.1" pin, it's only available as a test pad on the bottom of the PCB.

from adafruit_nrf52_arduino.

hathach avatar hathach commented on July 29, 2024

Ah I see P0.22. Forget about factory reset, will it erase the memory application as well application data right ?

from adafruit_nrf52_arduino.

hathach avatar hathach commented on July 29, 2024

Btw, I forgot about the factory reset. Let's review the memory flash a bit.

  • Our bootloader is larger starting from 0x78000 with 32KB + 8KB bootloader data ~ 40KB.
  • Softdevice + MBR currently is 104 + 4 = 108
  • Application + data is 512 - (40+104+4) = 364 KB

How much did we partition the application data, I would suggest 32KB, that leave 332 KB for dual bank --> an image is limited at 332/2 = 166KB

PS: SD 3.0.0 is larger with 120KB

image

from adafruit_nrf52_arduino.

microbuilder avatar microbuilder commented on July 29, 2024

I think 166KB is fine for a SD based image with OTA update support. That's still WAY more than we have for Bluefruit on the nRF51.

from adafruit_nrf52_arduino.

hathach avatar hathach commented on July 29, 2024

ok let give 32KB for user than. Factoryreset will cause bootloader to erase

  • application code region
  • applicaticon data region

Let's wait for this, we will dot it later when having something solid.

from adafruit_nrf52_arduino.

hathach avatar hathach commented on July 29, 2024

move discussion to bootloader repo adafruit/Adafruit_nRF52_Arduino_Bootloader#1

from adafruit_nrf52_arduino.

Related Issues (20)

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.