Skip to content
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

stable_20.3.x.FOME: add ChibiOS FOME_STM32_LSE_WAIT_MAX macro warnings #4

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f51de01
Artery AT32F4xx port
dron0gus May 29, 2023
5002530
Artery AT32F4xx port: update
dron0gus May 29, 2023
6778567
Artery AT32F4xx port: update clocks
dron0gus May 29, 2023
738d55a
AT-START-F435 demo project
dron0gus May 28, 2023
b04fd5a
Scripts: helpers for OpenOCD and GDB
dron0gus May 29, 2023
903e61c
AT-START-F435 demo: fix pinmuxes
dron0gus May 29, 2023
5cf35e9
Fix SD1/USART1
dron0gus May 29, 2023
c7ac1c0
AT-START-F435 demo: update, switch to 288Mhz
dron0gus May 30, 2023
30135a2
Artery AT32F4xx port: update, cleanup
dron0gus May 30, 2023
b131215
GHA CI for AT32
rusefillc May 31, 2023
ff91f87
port to 20
rusefillc May 31, 2023
b38d562
port to 20 more
dron0gus May 31, 2023
b9487ee
AT32F4xx: USB demo
dron0gus May 31, 2023
c256fdb
Artery AT32F4xx port: USB clock settings
dron0gus May 31, 2023
2383834
AT-START-F435 board: fix OTG1 and OTG2 pinmuxes
dron0gus May 31, 2023
63b2c84
USB demo update
dron0gus May 31, 2023
c50a868
Artery AT32F4xx port: updates: gpio, otg, ldo
dron0gus May 31, 2023
a09c823
AT-START-F435 board: update pinmuxes
dron0gus May 31, 2023
0e056de
GHA CI for testhal
rusefillc May 31, 2023
dbf5390
port to 20
rusefillc May 31, 2023
09b5653
fancy!
rusefillc May 31, 2023
162977f
upload-artifact
rusefillc Jun 1, 2023
f400e2f
progress
rusefillc Jun 1, 2023
a5930d1
i am lazy
Jun 2, 2023
e175c37
explicit message
Jun 4, 2023
913dcac
Add ADC test
vishamaev Jun 6, 2023
ca7c13c
ADC GHA
Jun 7, 2023
51d2782
Add flashing script
dron0gus Jun 7, 2023
abc1094
LF line endings for LSE MAX_WAIT v21 rebase
nmschulte Jan 16, 2025
7ea171c
FOME-ize LSE max_wait patches
nmschulte Mar 13, 2024
b3a5c94
add ChibiOS FOME_STM32_LSE_WAIT_MAX macro warnings
nmschulte Jan 16, 2025
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
58 changes: 58 additions & 0 deletions .github/workflows/build-AT32-eval.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Firmware at GHA

on: [ push, pull_request ]

jobs:
build-firmware:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

# Build machines don't have arm-none-eabi gcc, so let's download it and put it on the path
- name: Download & Install GCC
if: ${{ env.skip != 'true' }}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: |
tools/provide_gcc.sh
echo "::add-path::`pwd`/gcc-arm-none-eabi/bin"

- name: 1. Compile AT32 USB testhal
run: |
cd testhal/AT32/AT32F4xx/USB_CDC_IAD
make -j

- name: Attach USB_CDC_IAD
if: always()
uses: actions/upload-artifact@v3
with:
name: USB_CDC_IAD binaries
path: testhal/AT32/AT32F4xx/USB_CDC_IAD/build/ch*.*

- name: 2. Compile AT32F435 demo
run: |
cd demos/STM32/RT-AT32F435-ARTERY144
make -j

- name: Attach RT-AT32F435-ARTERY144
if: always()
uses: actions/upload-artifact@v3
with:
name: RT-AT32F435-ARTERY144 binaries
path: demos/STM32/RT-AT32F435-ARTERY144/build/ch*.*

- name: 3. Compile AT32 ADC testhal
run: |
cd testhal/AT32/AT32F4xx/ADC
make -j

- name: Attach ADC
if: always()
uses: actions/upload-artifact@v3
with:
name: ADC binaries
path: testhal/AT32/AT32F4xx/ADC/build/ch*.*

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.dep
build
7 changes: 7 additions & 0 deletions demos/STM32/RT-AT32F435-ARTERY144/.gdbinit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
target extended-remote localhost:3333
file build/ch.elf
#file build-openblt/openblt_microrusefi.elf
load
set breakpoint auto-hw on
set remote hardware-breakpoint-limit 8
set remote hardware-watchpoint-limit 4
189 changes: 189 additions & 0 deletions demos/STM32/RT-AT32F435-ARTERY144/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
##############################################################################
# Build global options
# NOTE: Can be overridden externally.
#

# Compiler options here.
ifeq ($(USE_OPT),)
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
endif

# C specific options here (added to USE_OPT).
ifeq ($(USE_COPT),)
USE_COPT =
endif

# C++ specific options here (added to USE_OPT).
ifeq ($(USE_CPPOPT),)
USE_CPPOPT = -fno-rtti
endif

# Enable this if you want the linker to remove unused code and data.
ifeq ($(USE_LINK_GC),)
USE_LINK_GC = yes
endif

# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT =
endif

# Enable this if you want link time optimizations (LTO).
ifeq ($(USE_LTO),)
USE_LTO = yes
endif

# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = no
endif

# If enabled, this option makes the build process faster by not compiling
# modules not used in the current configuration.
ifeq ($(USE_SMART_BUILD),)
USE_SMART_BUILD = yes
endif

#
# Build global options
##############################################################################

##############################################################################
# Architecture or project specific options
#

# Stack size to be allocated to the Cortex-M process stack. This stack is
# the stack used by the main() thread.
ifeq ($(USE_PROCESS_STACKSIZE),)
USE_PROCESS_STACKSIZE = 0x400
endif

# Stack size to the allocated to the Cortex-M main/exceptions stack. This
# stack is used for processing interrupts and exceptions.
ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
USE_EXCEPTIONS_STACKSIZE = 0x400
endif

# Enables the use of FPU (no, softfp, hard).
ifeq ($(USE_FPU),)
USE_FPU = no
endif

# FPU-related options.
ifeq ($(USE_FPU_OPT),)
USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv4-sp-d16
endif

#
# Architecture or project specific options
##############################################################################

##############################################################################
# Project, target, sources and paths
#

# Define project name here
PROJECT = ch

# Target settings.
MCU = cortex-m4

# Imported source files and paths.
CHIBIOS := ../../..
CONFDIR := ./cfg
BUILDDIR := ./build
DEPDIR := ./.dep

# Licensing files.
include $(CHIBIOS)/os/license/license.mk
# Startup files.
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_at32f4xx.mk
# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/ports/AT32/AT32F4xx/platform.mk
include $(CHIBIOS)/os/hal/boards/AT_START_F435/board.mk
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Auto-build files in ./source recursively.
include $(CHIBIOS)/tools/mk/autobuild.mk
# Other files (optional).
include $(CHIBIOS)/test/lib/test.mk
include $(CHIBIOS)/test/rt/rt_test.mk
include $(CHIBIOS)/test/oslib/oslib_test.mk

# Define linker script file here
LDSCRIPT= $(STARTUPLD)/AT32F435ZMxx.ld

# C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
CSRC = $(ALLCSRC) \
$(TESTSRC) \
main.c

# C++ sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
CPPSRC = $(ALLCPPSRC)

# List ASM source files here.
ASMSRC = $(ALLASMSRC)

# List ASM with preprocessor source files here.
ASMXSRC = $(ALLXASMSRC)

# Inclusion directories.
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)

# Define C warning options here.
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes

# Define C++ warning options here.
CPPWARN = -Wall -Wextra -Wundef

#
# Project, target, sources and paths
##############################################################################

##############################################################################
# Start of user section
#

# List all user C define here, like -D_DEBUG=1
UDEFS =

# Define ASM defines here
UADEFS =

# List all user directories here
UINCDIR =

# List the user directory to look for the libraries here
ULIBDIR =

# List all user libraries here
ULIBS =

#
# End of user section
##############################################################################

##############################################################################
# Common rules
#

RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
include $(RULESPATH)/arm-none-eabi.mk
include $(RULESPATH)/rules.mk

#
# Common rules
##############################################################################

##############################################################################
# Custom rules
#

#
# Custom rules
##############################################################################
Loading
Loading