Skip to content

Commit 10bd0b5

Browse files
committed
-section-start is not needed for picoboot-lib
1 parent 37333b6 commit 10bd0b5

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

avr/boards.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# picoCore board file - template taken from MicroCore
22
# https://github.com/MCUdude/MicroCore
33

4+
# creates picocore board menu option
45
picocore.name=picoCore
56
picocore.bootloader.tool=avrdude
67
picocore.upload.tool=avrdude
7-
picocore.upload.using=avrdude
8+
picocore.upload.protocol=arduino
9+
picocore.upload.speed=57600
810
picocore.bootloader.unlock_bits=0x3f
911
picocore.bootloader.lock_bits=0x3e
1012
picocore.build.core=picocore
@@ -14,13 +16,13 @@ picocore.build.board=attiny
1416
#picocore.build.extra_flags={build.timing}
1517

1618
#picocore.upload.maximum_size=1024
17-
#picocore.build.mcu_compile=attiny13a
1819
#picocore.build.mcu=attiny13a
1920
#picocore.build.variant=attiny13
2021

2122
# default clock = 8Mhz
2223
picocore.build.f_cpu=8000000L
2324

25+
# creates MCU menu when picoCore board is selected
2426
menu.mcu=MCU
2527

2628
picocore.menu.mcu.t13=ATtiny13

avr/platform.txt

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ compiler.objcopy.cmd=avr-objcopy
3939
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
4040
compiler.elf2hex.flags=-O ihex -R .eeprom
4141
compiler.elf2hex.cmd=avr-objcopy
42-
compiler.ldflags=-Wl,--section-start=.bootloader=0x1f00
42+
compiler.ldflags=
4343
compiler.libraries.ldflags=
4444
compiler.size.cmd=avr-size
4545

@@ -105,20 +105,13 @@ tools.avrdude.path={runtime.tools.avrdude.path}
105105
tools.avrdude.cmd.path={path}/bin/avrdude
106106
tools.avrdude.config.path={path}/etc/avrdude.conf
107107

108-
tools.avrdude.network_cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA
109-
110108
tools.avrdude.upload.params.verbose=-v
111109
tools.avrdude.upload.params.quiet=-q -q
112-
# tools.avrdude.upload.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value
113-
tools.avrdude.upload.verify=
114-
tools.avrdude.upload.params.noverify=-V
115110
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} {upload.verify} -p{build.mcu} -c{upload.protocol} "-P{serial.port}" -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
116111

112+
# when is this needed? - only when upload.protocol is not specified for a board?
117113
tools.avrdude.program.params.verbose=-v
118114
tools.avrdude.program.params.quiet=-q -q
119-
# tools.avrdude.program.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value
120-
tools.avrdude.program.verify=
121-
tools.avrdude.program.params.noverify=-V
122115
tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} {program.verify} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
123116

124117
tools.avrdude.erase.params.verbose=-v
@@ -128,13 +121,3 @@ tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{bu
128121
tools.avrdude.bootloader.params.verbose=-v
129122
tools.avrdude.bootloader.params.quiet=-q -q
130123
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
131-
132-
tools.avrdude_remote.upload.pattern=/usr/bin/run-avrdude /tmp/sketch.hex {upload.verbose} -p{build.mcu}
133-
134-
tools.avrdude.upload.network_pattern="{network_cmd}" -address {serial.port} -port {upload.network.port} -sketch "{build.path}/{build.project_name}.hex" -upload {upload.network.endpoint_upload} -sync {upload.network.endpoint_sync} -reset {upload.network.endpoint_reset} -sync_exp {upload.network.sync_return}
135-
136-
# USB Default Flags
137-
# Default blank usb manufacturer will be filled in at compile time
138-
# - from numeric vendor ID, set to Unknown otherwise
139-
build.usb_manufacturer="Unknown"
140-
build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'

0 commit comments

Comments
 (0)