Comments (5)
Ya, it should be 0x4000 for samd51. In CircuitPython we use the py and provide the offset on the command line IIRC.
from uf2-samdx1.
@ladyada @dhalbert what is your opinion on this? These false offsets bear the risk of people nuking their bootloaders on M4 boards.
from uf2-samdx1.
As @tannewt notes, the Makefile
explicitly specifies the offset argument for uf2conv.py
with -b ~$(BOOTLOADER_SIZE)
. So unless you run this by hand, or use binuf2.js
, it will not produce a UF2 with a bad offset.
We can, however, take away the default values for these arguments. bin2uf2.js
doesn't take arguments but we could add those (or just get rid of this script in favor of the python one).
Also I'd note that the Makefile tries to use python2
to run uf2conv.py
. It should be made to be version independent or py3 only. @TG-Techie noticed that this morning.
from uf2-samdx1.
I see, thanks for clearing that up for me. Removing the default values from these scripts would make them more foolproof in my opinion since you would not be able to execute them without specifically specifying an offset. In addition to your notes I also want to mention sketch.cpp
again where bootloader_size
is passed as argument, but BOOTLOADER_K
is hardcoded to be 8k
I'm not sure how to go about this (maybe you can point me in the right direction) but the same issues are present in the upstream microsoft repository. Should I open a separate issue over there?
Thanks again for your time!
from uf2-samdx1.
We send PR's to upstream regularly, and we're the only non-8K bootloader right now, so just here is fine.
from uf2-samdx1.
Related Issues (20)
- Unlock bootloader for j-link/SWD debugging HOT 5
- Problem Program SAMD51 from UART1 (SERCOM3) - Metro M4 AirLift HOT 2
- SAMD21 Clock Config HOT 5
- NeoKey Trinkey update files missing HOT 3
- SAME51 update for Adafruit Feather M4 CAN? HOT 2
- Compiling for the SAMDA1G16B HOT 5
- reset into bootloader from user code? HOT 4
- circuit playground express 3.14 macos Monterey HOT 4
- Having an issue with USB device disappearing if the programmer is not connected HOT 1
- Makefile issues HOT 4
- macOS 13.0 (Ventura) Finder gives error when uploading UF2 files HOT 4
- Linking issue HOT 1
- Custom pin mapping for ATSAMD21G18A HOT 1
- Problem building the project in VS code HOT 1
- Reading logs - how???? HOT 3
- MKR Vidor 4000 Arduino Sketch Upload halts at around 50% only when loaded via uf2 bootloader
- Building an "unlocked" (no flash write protection) bootloader? HOT 1
- Change the filesystem be changed to FAT or FAT32 ? HOT 1
- Double definition of WDT for SAMD51
- Adding a timeout to the bootloader HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uf2-samdx1.