Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit cfe2f4c

Browse files
committed
add a flag to distinguish between QSPI flash& Hyper flash
1 parent 363a7cf commit cfe2f4c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

boards.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222

23+
menu.flash=Flash
2324
menu.speed=CPU Speed
2425
menu.debug=Debug
2526

@@ -53,3 +54,6 @@ seeed_arch_mix.menu.debug.on=On
5354
seeed_arch_mix.menu.debug.on.build.flags.debug=-g
5455
seeed_arch_mix.menu.speed.600= 600 MHz (standard)
5556
seeed_arch_mix.menu.speed.600.build.f_cpu=600000000L
57+
seeed_arch_mix.menu.flash.QSPI=QSPI (defalut)
58+
seeed_arch_mix.menu.debug.on.build.flags.flash=-DQSPI_FLASH
59+
seeed_arch_mix.menu.flash.Hyper=Hyper

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ compiler.sdk.ldflags=-Wl,--whole-archive "{runtime.platform.path}/tools/lib/{bu
9898
# ----------------
9999

100100
## Compile c files
101-
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {build.flags.debug} {compiler.arm.cmsis.c.flags} {compiler.preproc.include} {includes} "{source_file}" -o "{object_file}"
101+
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {build.flags.debug} {build.flags.flash} {compiler.arm.cmsis.c.flags} {compiler.preproc.include} {includes} "{source_file}" -o "{object_file}"
102102

103103
## Compile c++ files
104-
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {build.flags.debug} {compiler.arm.cmsis.c.flags} {compiler.preproc.include} {includes} "{source_file}" -o "{object_file}"
104+
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {build.flags.debug} {build.flags.flash} {compiler.arm.cmsis.c.flags} {compiler.preproc.include} {includes} "{source_file}" -o "{object_file}"
105105

106106
## Compile S files
107107
recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {build.cache_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"

0 commit comments

Comments
 (0)