Skip to content

Commit

Permalink
Adapt helper script for nRF5340
Browse files Browse the repository at this point in the history
  • Loading branch information
marbre committed Nov 8, 2023
1 parent 4071c07 commit 77ef36d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build_tools/configure_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ case $2 in
fi
;;

nrf5340)
echo "Building for NRF5340"
export ARM_CPU="cortex-m33"
if [ -z ${PATH_TO_LINKER_SCRIPT+x} ]; then
export PATH_TO_LINKER_SCRIPT="${PATH_TO_REPO}/third_party/nrfx-custom/nrf5340_xxaa_application.ld"
fi
;;

stm32f407)
echo "Building for STM32F407"
export ARM_CPU="cortex-m4"
Expand Down Expand Up @@ -128,6 +136,7 @@ case $2 in
*)
echo "Unknown device. Supported devices are"
echo " 'nrf52840'"
echo " 'nrf5340'"
echo " 'stm32f407'"
echo " 'stm32f411xe'"
echo " 'stm32f446'"
Expand All @@ -146,6 +155,10 @@ case $2 in
UART=0
;;

nrf5340)
UART=0
;;

*)
UART=2
;;
Expand Down

0 comments on commit 77ef36d

Please sign in to comment.