adafruit / uf2-samdx1

MSC bootloader (based on UF2) for SAMD21
Other
214 stars 187 forks source link

NVMCTRL not declared in this scope #161

Closed VaFlyer closed 3 years ago

VaFlyer commented 3 years ago

Trying to load bootloader via Arduino sketch to a Feather M0 with LoRa, using "update-bootloader-feather_m0-v3.12.0." I'm following "Using LoraWAN and The Things Network with CircuitPython" instructions. [https://learn.adafruit.com/using-lorawan-and-the-things-network-with-circuitpython/circuitpython-installation] I keep getting "'NVMCTRL' not declared in this scope." and the upload process exits. Thinking I'm missing some step or file here. I tried commenting out the offending line but then another NVMCTL line is declared not in scope. What am I doing wrong?

dhalbert commented 3 years ago

Don't comment anything out. That kind of error is usually because:

Also I'd recommend installing the latest Arduino IDE before doing the above as well.

VaFlyer commented 3 years ago

Thank you.

On Fri, Feb 19, 2021, 2:37 PM Dan Halbert notifications@github.com wrote:

Don't comment anything out. That kind of error is usually because:

  • You need to set the Board to "Feather M0"; it is still some other non-SAMD board
  • You need to install the SAMD Board Support Packages. Install the Arduino SAMD package first, then the Adafruit one:
  • "Arduino SAMD Boards"
  • "Adafruit SAMD Boards"

Also I'd recommend installing the latest Arduino IDE before doing the above as well.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adafruit/uf2-samdx1/issues/161#issuecomment-782295750, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLXDX44KDZPCZOGZVQXJXDS724RPANCNFSM4X44M5SA .

dhalbert commented 3 years ago

Let us know if this did not work.

VaFlyer commented 3 years ago

Your advice was exactly right. Thanks for helping the newbie.

Virginia Stouffer Transformational Technologies

On Sun, Feb 21, 2021 at 2:24 PM Dan Halbert notifications@github.com wrote:

Let us know if this did not work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adafruit/uf2-samdx1/issues/161#issuecomment-782911153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLXDX3FQ5MEAQMOBYHVEX3TAFMXBANCNFSM4X44M5SA .