Closed freemovers closed 6 years ago
I added back the board ID and board chip in the makefile, and it seems to work now.
# Boards definitions
BOARD_ID?=METRO_M4
BOARD_CHIP?=__SAMD51J19A___
Are you usually adding these through the command line?
Hi yes those are usually added through the command line. Unfortunately this bootloader was just used for testing purposes before our uf2 bootloader was finished and has been removed in the master branch. You are welcome to continue using it, but it is completely unsupported :)
On Tue, Apr 3, 2018 at 11:15 PM Sander van de Bor notifications@github.com wrote:
I added back the board ID and board chip in the makefile, and it seems to work now.
# Boards definitions BOARD_ID?=METRO_M4 BOARD_CHIP?=SAMD51J19A
Are you usually adding these through the command line?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/adafruit/ArduinoCore-samd/issues/33#issuecomment-378467155, or mute the thread https://github.com/notifications/unsubscribe-auth/AGA5un3oRbd_5xY7MtmCz6ikDWEMD6Xqks5tlDqygaJpZM4TGCqU .
Thank your for the quick response. I think I got it, I was even able to compile for the ATSAME54N20 after adding some lines to the CMSIS files. I will look into the UF2 bootloaders as well, haven't used those yet, but looks promising to make it even more user friendly.
here's our uf2 repo: https://github.com/adafruit/uf2-samd21
i second recommend UF2, its bossa compatible but has drag n drop and webUSB support (in the future), its what we're using going forward for SAMD chips
I’m looking into the UF2 right now, try to find out what will be involved to get it going for the ATSAME54N20. It looks pretty simple compared to the SAMBA bootloader, but I might miss something here J. I will just download, make some changes, and compile.
From: ladyada [mailto:notifications@github.com] Sent: Wednesday, April 4, 2018 7:44 AM To: adafruit/ArduinoCore-samd ArduinoCore-samd@noreply.github.com Cc: Sander van de Bor sander@freemovers.eu; Author author@noreply.github.com Subject: Re: [adafruit/ArduinoCore-samd] Bootloader for ATSAME54N20 (#33)
i second recommend UF2, its bossa compatible but has drag n drop and webUSB support (in the future), its what we're using going forward for SAMD chips
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adafruit/ArduinoCore-samd/issues/33#issuecomment-378625329 , or mute the thread https://github.com/notifications/unsubscribe-auth/AgsqXb9UW6AJ0ZtmGbq0-NZpANfmWKmfks5tlNw5gaJpZM4TGCqU . https://github.com/notifications/beacon/AgsqXTJ1DUB93_a8kOktJpHNHOC8bPOUks5tlNw5gaJpZM4TGCqU.gif
I'm working on a custom board where I like to Arduino to create the programs. I customized BOSSAC already to accept the SAME54, and I am able to upload sketches through Arduino using the METRO_M4_sam_ba.hex for the bootloader. I like to compile a custom bootloader for the ATSAME54N20, but have difficulties compiling the source with MSYS. I always get the following error, even after adding the board ID:
_Compiling bootloader using BASE PATH = C:\Users\AppData\Local/Arduino15/packages/arduino GCC PATH = C:\Users\AppData\Local/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi- board id = METRO_M4 Compiling board_driver_led.c to build/board_driver_led.o "C:\Users\AppData\Local/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mthumb -mcpu=cortex-m4 -c -std=gnu99 -MD -MP -MF "build/board_driver_led.d" -MT"build/board_driver_led.d" -MT"build/board_driver_led.o" -ffunction-sections -fdata-sections -nostdlib -nostartfiles --param max-inline-insns-single=500 -Os -DDEBUG=0 -D -DBOARD_ID_METRO_M4 -I"C:\Users\AppData\Local/Arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" -I"C:\Users\AppData\Local/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" board_driver_led.c -o build/board_driver_led.o