Skip to content

Commit 7bae00e

Browse files
committed
DM: updates for rev B
1 parent 13e2406 commit 7bae00e

File tree

17 files changed

+40
-536
lines changed

17 files changed

+40
-536
lines changed

boards.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ adafruit_metro_m4.vid.1=0x239A
162162
adafruit_metro_m4.pid.1=0x0020
163163
adafruit_metro_m4.upload.tool=bossac
164164
adafruit_metro_m4.upload.protocol=sam-ba
165-
adafruit_metro_m4.upload.maximum_size=1048576
165+
adafruit_metro_m4.upload.maximum_size=507904
166166
adafruit_metro_m4.upload.use_1200bps_touch=true
167167
adafruit_metro_m4.upload.wait_for_upload_port=true
168168
adafruit_metro_m4.upload.native_usb=true
@@ -172,15 +172,15 @@ adafruit_metro_m4.build.usb_product="Adafruit Metro M4"
172172
adafruit_metro_m4.build.usb_manufacturer="Adafruit LLC"
173173
adafruit_metro_m4.build.board=METRO_M4
174174
adafruit_metro_m4.build.core=arduino
175-
adafruit_metro_m4.build.extra_flags=-D__SAMD51J20A__ -D__SAMD51__ {build.usb_flags}
175+
adafruit_metro_m4.build.extra_flags=-D__SAMD51J19A__ -D__SAMD51__ {build.usb_flags}
176176
adafruit_metro_m4.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
177177
adafruit_metro_m4.build.openocdscript=openocd_scripts/arduino_zero.cfg
178178
adafruit_metro_m4.build.variant=metro_m4
179179
adafruit_metro_m4.build.variant_system_lib=
180180
adafruit_metro_m4.build.vid=0x239A
181181
adafruit_metro_m4.build.pid=0x8020
182182
adafruit_metro_m4.bootloader.tool=openocd
183-
adafruit_metro_m4.bootloader.file=metroM4/samd51_sam_ba.bin
183+
adafruit_metro_m4.bootloader.file=metroM4/METRO_M4_sam_ba.bin
184184
adafruit_metro_m4.compiler.c.elf.extra_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16
185185
adafruit_metro_m4.compiler.c.extra_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16
186186
adafruit_metro_m4.compiler.cpp.extra_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16
@@ -194,7 +194,7 @@ adafruit_feather_m4.vid.1=0x239A
194194
adafruit_feather_m4.pid.1=0x0022
195195
adafruit_feather_m4.upload.tool=bossac
196196
adafruit_feather_m4.upload.protocol=sam-ba
197-
adafruit_feather_m4.upload.maximum_size=524288
197+
adafruit_feather_m4.upload.maximum_size=507904
198198
adafruit_feather_m4.upload.use_1200bps_touch=true
199199
adafruit_feather_m4.upload.wait_for_upload_port=true
200200
adafruit_feather_m4.upload.native_usb=true
@@ -212,7 +212,7 @@ adafruit_feather_m4.build.variant_system_lib=
212212
adafruit_feather_m4.build.vid=0x239A
213213
adafruit_feather_m4.build.pid=0x8022
214214
adafruit_feather_m4.bootloader.tool=openocd
215-
adafruit_feather_m4.bootloader.file=metroM4/samd51_sam_ba.bin
215+
adafruit_feather_m4.bootloader.file=metroM4/FEATHER_M4_sam_ba.bin
216216
adafruit_feather_m4.compiler.c.elf.extra_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16
217217
adafruit_feather_m4.compiler.c.extra_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16
218218
adafruit_feather_m4.compiler.cpp.extra_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16
Binary file not shown.

bootloaders/metroM4/Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ OBJCOPY=$(ARM_GCC_PATH)objcopy
5555
NM=$(ARM_GCC_PATH)nm
5656
SIZE=$(ARM_GCC_PATH)size
5757

58-
# -----------------------------------------------------------------------------
59-
# Boards definitions
60-
BOARD_ID?=FEATHER_M4
61-
BOARD_CHIP?=__SAMD51G19A__
62-
6358
# -----------------------------------------------------------------------------
6459
# Compiler options
6560
CFLAGS_EXTRA=-D$(BOARD_CHIP) -DBOARD_ID_$(BOARD_ID)
@@ -71,7 +66,7 @@ else
7166
endif
7267

7368
ELF=$(BOARD_ID)_sam_ba.elf
74-
BIN=$(BOARD_ID)_ba.bin
69+
BIN=$(BOARD_ID)_sam_ba.bin
7570
HEX=$(BOARD_ID)_sam_ba.hex
7671

7772

bootloaders/metroM4/board_definitions_feather_m4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* BOOT_DOUBLE_TAP_ADDRESS must point to a free SRAM cell that must not
3636
* be touched from the loaded application.
3737
*/
38-
#define BOOT_DOUBLE_TAP_ADDRESS (0x20007FFCul)
38+
#define BOOT_DOUBLE_TAP_ADDRESS (0x2002FFFCul)
3939
#define BOOT_DOUBLE_TAP_DATA (*((volatile uint32_t *) BOOT_DOUBLE_TAP_ADDRESS))
4040

4141
/*

bootloaders/metroM4/board_definitions_metro_m4.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@
2828
#define USB_PID_HIGH 0x00
2929
#define USB_PID_LOW 0x20
3030

31+
3132
/*
3233
* If BOOT_DOUBLE_TAP_ADDRESS is defined the bootloader is started by
3334
* quickly tapping two times on the reset button.
3435
* BOOT_DOUBLE_TAP_ADDRESS must point to a free SRAM cell that must not
3536
* be touched from the loaded application.
3637
*/
37-
#define BOOT_DOUBLE_TAP_ADDRESS (0x20007FFCul)
38+
#define BOOT_DOUBLE_TAP_ADDRESS (0x2002FFFCul)
3839
#define BOOT_DOUBLE_TAP_DATA (*((volatile uint32_t *) BOOT_DOUBLE_TAP_ADDRESS))
3940

4041
/*

bootloaders/metroM4/bootloader_METRO_M4.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
MEMORY
2929
{
3030
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x4000 /* First 16KB used by bootloader */
31-
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00040000-0x0004 /* 4 bytes used by bootloader to keep data between resets */
31+
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00030000-0x0004 /* 4 bytes used by bootloader to keep data between resets */
3232
}
3333

3434
/* Linker script to place sections and symbol values. Should be used together

bootloaders/metroM4/samd51_sam_ba.bin

-7.1 KB
Binary file not shown.

bootloaders/metroM4/samd51_sam_ba.cproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ProjectVersion>7.0</ProjectVersion>
66
<ToolchainName>com.Atmel.ARMGCC.C</ToolchainName>
77
<ProjectGuid>dce6c7e3-ee26-4d79-826b-08594b9ad897</ProjectGuid>
8-
<avrdevice>ATSAMD51G19A</avrdevice>
8+
<avrdevice>ATSAMD51J19A</avrdevice>
99
<avrdeviceseries>none</avrdeviceseries>
1010
<OutputType>Executable</OutputType>
1111
<Language>C</Language>
@@ -41,7 +41,7 @@
4141
</AsfFrameworkConfig>
4242
<avrtool>com.atmel.avrdbg.tool.edbg</avrtool>
4343
<avrtoolserialnumber>00000000EZE000006352</avrtoolserialnumber>
44-
<avrdeviceexpectedsignature>0x60060007</avrdeviceexpectedsignature>
44+
<avrdeviceexpectedsignature>0x60060005</avrdeviceexpectedsignature>
4545
<avrtoolinterface>SWD</avrtoolinterface>
4646
<com_atmel_avrdbg_tool_atmelice>
4747
<ToolOptions>
@@ -130,7 +130,7 @@
130130
</PropertyGroup>
131131
<PropertyGroup Condition=" '$(Configuration)' == 'featherm4' ">
132132
<ToolchainSettings>
133-
<ArmGcc xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
133+
<ArmGcc>
134134
<armgcc.common.outputfiles.hex>True</armgcc.common.outputfiles.hex>
135135
<armgcc.common.outputfiles.lss>True</armgcc.common.outputfiles.lss>
136136
<armgcc.common.outputfiles.eep>True</armgcc.common.outputfiles.eep>
@@ -159,13 +159,13 @@
159159
<UsesExternalMakeFile>True</UsesExternalMakeFile>
160160
<OutputDirectory />
161161
<BuildTarget>DEBUG=1 all BOARD_ID=FEATHER_M4 BOARD_CHIP=__SAMD51G19A__</BuildTarget>
162-
<CleanTarget>clean</CleanTarget>
162+
<CleanTarget>clean BOARD_ID=FEATHER_M4</CleanTarget>
163163
<ExternalMakeFilePath>Makefile</ExternalMakeFilePath>
164164
<OutputPath>bin\featherm4\</OutputPath>
165165
</PropertyGroup>
166166
<PropertyGroup Condition=" '$(Configuration)' == 'metrom4' ">
167167
<ToolchainSettings>
168-
<ArmGcc xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
168+
<ArmGcc>
169169
<armgcc.common.outputfiles.hex>True</armgcc.common.outputfiles.hex>
170170
<armgcc.common.outputfiles.lss>True</armgcc.common.outputfiles.lss>
171171
<armgcc.common.outputfiles.eep>True</armgcc.common.outputfiles.eep>
@@ -193,8 +193,8 @@
193193
</ToolchainSettings>
194194
<UsesExternalMakeFile>True</UsesExternalMakeFile>
195195
<OutputDirectory />
196-
<BuildTarget>DEBUG=1 all BOARD_ID=METRO_M4 BOARD_CHIP=__SAMD51J20A__</BuildTarget>
197-
<CleanTarget>clean</CleanTarget>
196+
<BuildTarget>DEBUG=1 all BOARD_ID=METRO_M4 BOARD_CHIP=__SAMD51J19A__</BuildTarget>
197+
<CleanTarget>clean BOARD_ID=METRO_M4</CleanTarget>
198198
<ExternalMakeFilePath>Makefile</ExternalMakeFilePath>
199199
<OutputPath>bin\metrom4\</OutputPath>
200200
</PropertyGroup>

bootloaders/metroM4/samd51_sam_ba.elf

-1.15 MB
Binary file not shown.

0 commit comments

Comments
 (0)