Code Monkey home page Code Monkey logo

Comments (6)

hathach avatar hathach commented on June 4, 2024

issue start to happens with fe712fb

from adafruit_nrf52_bootloader.

hathach avatar hathach commented on June 4, 2024

issue does not happen if flash with segger studio, seem like some volatile or optimization things.

from adafruit_nrf52_bootloader.

hathach avatar hathach commented on June 4, 2024

only happens with arduino, doesn't happen with cpy uploading dfu-flash. Seems to be a quick serial port timeout with Arduino.
Update: flashing larger file such as bootloader still work hmm. strange !!

from adafruit_nrf52_bootloader.

hathach avatar hathach commented on June 4, 2024

Hooking it to the analyzer, it is dynamic issue with cpu blocking by nvmc operation. Basically when erasing + writing flash, the cpu is blocked --> causing the uart irq does not consume incoming data --> overwrite SLIP Start byte 0xC0 --> the whole following packet is discarded as invalid packet --> no ack at all. One of the solution could be modifying hci_slip/app_uart to use UARTE to make use of the DMA.

image

from adafruit_nrf52_bootloader.

hathach avatar hathach commented on June 4, 2024

further diving: seem like only nrf_nvmc_page_erase() cause issue since it block cpu for > 2ms. write words only block for few dozen us, thus isn't an issue. We can use the erase all first approach as previous version for dfu serial

from adafruit_nrf52_bootloader.

hathach avatar hathach commented on June 4, 2024

go back to erase in advance and skip erase on the fly for nrf52832. A small amount of delay (10 ms) is also added by adafruit-nrfutil after each 4KB to be safe.

from adafruit_nrf52_bootloader.

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.