Skip to content

V1 add micromod #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,39 @@ edge2.menu.loader.sparkfun_svl.build.ldscript={build.variant.path}/linker_script

###############################################################

amap3micromod.name=SparkFun Artemis MicroMod
amap3micromod.build.variant=artemis_micromod
amap3micromod.build.board=AM_AP3_SFE_ARTEMIS_MICROMOD
amap3micromod.upload.maximum_size=960000
amap3micromod.upload.sbl_baud=115200
amap3micromod.build.arch=APOLLO3
amap3micromod.build.mcu=cortex-m4
amap3micromod.build.f_cpu=48000000L
amap3micromod.build.core=arduino
amap3micromod.build.includes="-I{build.variant.path}/config" "-I{build.variant.path}/bsp"
amap3micromod.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
amap3micromod.build.ldscript={build.variant.path}/linker_scripts/gcc/artemis_sbl_svl_app.ld
amap3micromod.build.preferred_export_format=bin
amap3micromod.build.defs=
amap3micromod.build.libs=
amap3micromod.menu.svl_baud.921600=921600
amap3micromod.menu.svl_baud.460800=460800
amap3micromod.menu.svl_baud.230400=230400
amap3micromod.menu.svl_baud.115200=115200
amap3micromod.menu.svl_baud.57600=57600
amap3micromod.menu.loader.sparkfun_svl=SparkFun Variable Loader (Recommended)
amap3micromod.menu.loader.ambiq_sbl=Ambiq Secure Bootloader (Advanced)

amap3micromod.menu.svl_baud.57600.upload.svl_baud=57600
amap3micromod.menu.svl_baud.115200.upload.svl_baud=115200
amap3micromod.menu.svl_baud.230400.upload.svl_baud=230400
amap3micromod.menu.svl_baud.460800.upload.svl_baud=460800
amap3micromod.menu.svl_baud.921600.upload.svl_baud=921600

amap3micromod.menu.loader.ambiq_sbl.upload.tool=ambiq_bin2board
amap3micromod.menu.loader.ambiq_sbl.build.ldscript={build.variant.path}/linker_scripts/gcc/ambiq_sbl_app.ld

amap3micromod.menu.loader.sparkfun_svl.upload.tool=artemis_svl
amap3micromod.menu.loader.sparkfun_svl.build.ldscript={build.variant.path}/linker_scripts/gcc/artemis_sbl_svl_app.ld

###############################################################
15 changes: 15 additions & 0 deletions variants/artemis_micromod/bsp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Variant BSP
The Board Support Package (BSP) is a feature of the AmbiqSuite SDK that allows you to:
- define names and default configurations for pins
- write globally-accessible routines for common functions

These features are potentially useful when:
- designing an Apollo3-based board for a custom purpose where pin functions will be mainly static
- using AmbiqSuite examples within Arduino

For an example of a BSP see the AmbiqSuite release 2.1.0 SDK under 'SDK/boards/Apollo3_EVB/bsp'

To include BSP files (i.e. am_bsp.h, am_bsp.c, am_bsp_pins.h, am_bsp_pins.c, as well as
bsp_pins.src and pinconfig.py) add " -I{build.variant.path}/bsp" to the board definition in
boards.txt as part of the board.build.includes parameter.

Loading