zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.04k stars 6.18k forks source link

SAMD21 Adafruit examples no longer run on boards #15580

Closed ixmeins closed 5 years ago

ixmeins commented 5 years ago

A fresh download and install of Zephyr 14 will build the (eg) samples/subsys/shell/shell_module code but when downloaded to an Adafruit Feather M0 board the code does not run or simply causes the soc to reboot. On Zephyr 13 these examples compiled and ran as expected. The helloworld sample produces the same result, successful build but just reboots the board into bootloader on 14. I found this after trying to re-add my SAMR21 soc and board to the new Zephyr build but could not get anything to run. It appears to be a new issues in the samd21 soc support. Compiler is 8.2.1 20181213 (release) [gcc-8-branch revision 267074]

ixmeins commented 5 years ago

Fixed - another newb gotcha, you need to manually set the flash base address (ninja menuconfig) to 0x2000 to allow for the Adafruit feather bootloader being at 0x0000. Obviously I did that once when I first installed 13.

KubaFYI commented 4 years ago

Are we expected to need to change this manually every single time? Is there a way to make that into a permanent change?