Comments (4)
I got this same error. Attempted to fix it by editing inc/uf2.h:
-#define FLASH_NUM_ROWS 1024
+#define FLASH_NUM_ROWS 512
That allows it to get past the STATIC_ASSERT, but then there is a linker error:
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: section .binfo LMA [0000000000001ff0,0000000000001fff] overlaps section .relocate LMA [0000000000001e30,0000000000001ffb]
from uf2-samdx1.
I don't mean to hijack the thread with my own issues, but I did get past the linker error by turning off some features in inc/uf2.h, namely USE_FAT, USE_INDEX_HTM, and USE_WEBUSB. Probably these features just made the bootloader too big for this chip.
Unfortunately, I'm now fighting OpenOCD issues. So I can't yet report on whether these fixes work.
from uf2-samdx1.
I finally manage to solve this issue, i just change the chip compilation for the ATSAMD21G17, its a bit tricky but it works.
At this moment i dont have time to get the diff to see what its the real problem right now, but it should be a define or something like that.
Regards, Carlos.
from uf2-samdx1.
For me, it was enough to do the FLASH_NUM_ROWS change I mentioned above, set #define USE_INDEX_HTM 0 to make it a bit smaller, and define the chip type in board.mk:
CHIP_FAMILY = samd21
CHIP_VARIANT = SAMD21J17A
Also, -Wno-deprecated in the top Makefile and editing scripts/dbgtool.js to use a patched OpenOCD with ST-Link (master branch and releases of OpenOCD have a bug when using ST-Link with this chip).
With that, bossac in zephyr doesn't work, but putting *.uf2 on the USB FAT works.
from uf2-samdx1.
Related Issues (20)
- bin2uf2.js throwing deprecation warning HOT 2
- Encountered two compile errors and propose a patch HOT 1
- MSC handover documentation? HOT 1
- Which Bootloader for ATSAMD21G18A-AU? HOT 3
- This repo is missing important files
- Makefile echo and python errors HOT 1
- USB initialization fails sometimes
- FAT32 HOT 2
- SAMD SDU library HOT 2
- Support Family SAML? HOT 3
- Add .bin for Seeed Wio Lite w600
- Shouldn't check_start_application clear *DBL_TAP_PTR on BOD reset, also? HOT 10
- purpose of flash_write() function in flash_samd21.c? HOT 2
- [Question] Extending storage space with external flash HOT 5
- MSC incorrect enumeration when pc booting HOT 1
- UF2 MSC volume does not show up under Linux - MacOS works fine HOT 5
- SAMD51 using SERCOM5? HOT 1
- I2C in the bootloader HOT 2
- WMODE not entirely correct
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.