Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
29f84c4
feat: migrate BSP application to static module assembly
Jiu-xiao Sep 15, 2026
2ffe96a
merge: retain current dev BSP fixes
Jiu-xiao Sep 15, 2026
62e5bfd
feat: complete static XRobot BSP integration
Jiu-xiao Sep 15, 2026
b04175e
Migrate to static assembly
Jiu-xiao Sep 18, 2026
2314627
Pin LibXR static assembly candidate
Jiu-xiao Sep 18, 2026
4fdf367
Regenerate CubeMX config in CI
Jiu-xiao Sep 18, 2026
42efd0c
Regenerate app_main with the CMSIS cache-line fallback
Jiu-xiao Sep 23, 2026
dc9c698
Commit the stamped XRobot entry and verify generated files in CI
Jiu-xiao Sep 24, 2026
00e5585
Pin LibXR with absolute-path stamp inputs
Jiu-xiao Sep 24, 2026
40c4c05
Regenerate the entry without the stamp tool line
Jiu-xiao Sep 24, 2026
f315900
Regenerate app_main with XROBOT_MAIN() owned by the generator
Jiu-xiao Sep 28, 2026
fec149b
Normalize application configs to the canonical YAML layout
Jiu-xiao Sep 28, 2026
324a0d6
Build with pinned tools and the xrobot CLI in CI
Jiu-xiao Sep 28, 2026
ac1395b
Pin the tools and stop tracking generated XRobot files
Jiu-xiao Sep 28, 2026
abfeb4c
Pin LibXR with the XRobot freshness check and Release-active topic ch…
Jiu-xiao Sep 28, 2026
bf77117
Lock the Module feature heads
Jiu-xiao Sep 29, 2026
1e00559
Add a README for the XRobot 1.0 workflow and license under Apache-2.0
Jiu-xiao Sep 29, 2026
25b7367
Regenerate with the generated-file notices
Jiu-xiao Sep 29, 2026
05b1025
Write config strings in double quotes and code without quotes
Jiu-xiao Sep 30, 2026
bfb44b3
Generate with libxr parse and libxr gen
Jiu-xiao Oct 1, 2026
f7fc8f3
Migrate to STM32CubeMX 6.18.1 and FreeRTOS CMSIS-RTOS V2
Jiu-xiao Oct 1, 2026
004bc24
Route stack overflows to LibXR error handling
Jiu-xiao Oct 1, 2026
1da6f54
Key the CAN settings by the lower-case instance name
Jiu-xiao Oct 1, 2026
aba7faf
Regenerate with libxr stm32 setup
Jiu-xiao Oct 1, 2026
0305be6
Enable the EXTI15_10 interrupt of ACC_INT and GYRO_INT in NVIC
Jiu-xiao Oct 1, 2026
f1a7f08
Drop FlashLayout from libxr_config.yaml
Jiu-xiao Oct 1, 2026
9622b60
README: regenerate with libxr stm32 setup after CubeMX changes
Jiu-xiao Oct 2, 2026
f1b8790
README: the build check compares input content
Jiu-xiao Oct 2, 2026
cdd3e16
Update LibXR to 7f51121
Jiu-xiao Oct 2, 2026
9fedbff
Update LibXR to 6c51bf4 and build the flash from runs
Jiu-xiao Oct 2, 2026
5c9ce1b
Resolve the Modules against dev
Jiu-xiao Oct 3, 2026
55cfd9c
Place the GOT in its own FLASH section
Jiu-xiao Oct 3, 2026
5378c8a
Merge dev
Jiu-xiao Oct 3, 2026
81447fd
Rewrite the README to the BSP README structure
Jiu-xiao Oct 3, 2026
5bb6ec7
Remove the personal paths and J-Link serial from DevMC02.jdebug
Jiu-xiao Oct 3, 2026
b1010c8
Normalize line endings
Jiu-xiao Oct 3, 2026
a43d806
Merge the line ending normalization
Jiu-xiao Oct 3, 2026
a02b994
Regenerate the BSP objects with the new code generator
Jiu-xiao Oct 4, 2026
68d2e71
Generate the database from libxr_config.yaml
Jiu-xiao Oct 4, 2026
c75502e
Restore the CubeMX toolchain files and set the optimization in LibXR.…
Jiu-xiao Oct 4, 2026
a6590ac
Add the LibXR .clang-format
Jiu-xiao Oct 4, 2026
ad662b2
Use the shared BSP workflow
Jiu-xiao Oct 4, 2026
fb39eec
Update the README for the shared CI and LibXR.CMake
Jiu-xiao Oct 4, 2026
bed5f8c
Name User/libxr_config.yaml in the app_main notice
Jiu-xiao Oct 4, 2026
891ee24
Describe the empty LIBXR_OPT_RELEASE value in LibXR.CMake
Jiu-xiao Oct 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Language: Cpp
BasedOnStyle: Google
IncludeBlocks: Regroup
ColumnLimit: 90
BreakBeforeBraces: Allman
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.sh text eol=lf
*.bat text eol=crlf
51 changes: 19 additions & 32 deletions .github/workflows/xrobot_stm32.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
name: xrobot stm32 build test

on:
push:
branches: [ "main", "master", "dev" ]
pull_request:
branches: [ "main", "master", "dev" ]

jobs:
build:

runs-on: ubuntu-latest
container:
image: ghcr.io/xrobot-org/docker-image-stm32:main
options: --user 0

steps:
- uses: actions/checkout@v4
- name: init submodule
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" && git submodule update --init --recursive
- name: install pip packages
run: pip install git+https://github.com/xrobot-org/LibXR_CppCodeGenerator.git@dev xrobot
- name: config libxr
run: xr_cubemx_cfg -d ./ --xrobot --commit "$(git rev-parse HEAD:Middlewares/Third_Party/LibXR)"
- name: config xrobot module
run: xrobot_src_man create-sources && xrobot_init_mod --config https://raw.githubusercontent.com/QDU-Robomaster/dev-c-robots/refs/heads/main/test.yaml --dir ./Modules
- name: xrobot generate code
run: xrobot_setup
- name: config cmake
run: export GCC_TOOLCHAIN_ROOT=/opt/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/bin && export CLANG_GCC_CMSIS_COMPILER=/opt/st-arm-clang && cmake . -DCMAKE_TOOLCHAIN_FILE:STRING=cmake/starm-clang.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Bbuild -G Ninja
- name: build
run: cmake --build build
name: build

on:
push:
branches: [main, master, dev]
tags: ['v*']
pull_request:
branches: [main, master, dev]
workflow_dispatch:

jobs:
build:
# The release job of the shared workflow attaches firmware to releases, which needs write access.
permissions:
contents: write
uses: xrobot-org/XRobot/.github/workflows/bsp-stm32-ci.yml@dev
with:
project: CtrBoard-H7_ALL
build-type: Debug
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
CMakeFiles/**
.history/**
User/xrobot_main.hpp
.config.yaml
CMakeCache.txt
build.ninja
cmake_install.cmake
compile_commands.json
.cache/**
build/**
Modules/**
Modules/*/
DevMC02.jdebug.user
.config.json

# Generated by xrobot setup / xrobot gen
User/xrobot_main.hpp
Modules/CMakeLists.txt
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "Middlewares/Third_Party/LibXR"]
path = Middlewares/Third_Party/LibXR
url = https://gitee.com/jiu-xiao/libxr
url = https://github.com/xrobot-org/libxr.git
96 changes: 48 additions & 48 deletions .mxproject

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"recommendations": [
"ms-vscode.cmake-tools", // (dependencies to ms-vscode.cpptools-extension-pack)
"ms-vscode.cpptools-extension-pack", // Provides CMake and C++ file coloring, completion & support
"dan-c-underwood.arm", // Provides syntax highlighting for the Arm Assembly language
"zixuanwang.linkerscript", // Provides syntax highlighting for linker scripts
"ms-vscode.hexeditor", // Provides hex editor fo viewing & anipulating files in their raw hexadecimal representation
"trond-snekvik.gnu-mapfiles", // Provides syntax highlighting and symbol listing for GNU linker .map files
"jeff-hykin.better-cpp-syntax", // Provides syntax highlighting for C++
"marus25.cortex-debug", // Provides debug support on Arm Cortex-M
"mcu-debug.memory-view", // Dependencies to "marus25.cortex-debug"
"mcu-debug.peripheral-viewer", // Dependencies to "marus25.cortex-debug"
"mcu-debug.rtos-views",
"stmicroelectronics.stm32-vscode-extension",
"stmicroelectronics.stm32cube-ide-clangd" // Dependencies to "marus25.cortex-debug"
],
}
{
"recommendations": [
"ms-vscode.cmake-tools", // (dependencies to ms-vscode.cpptools-extension-pack)
"ms-vscode.cpptools-extension-pack", // Provides CMake and C++ file coloring, completion & support
"dan-c-underwood.arm", // Provides syntax highlighting for the Arm Assembly language
"zixuanwang.linkerscript", // Provides syntax highlighting for linker scripts
"ms-vscode.hexeditor", // Provides hex editor fo viewing & anipulating files in their raw hexadecimal representation
"trond-snekvik.gnu-mapfiles", // Provides syntax highlighting and symbol listing for GNU linker .map files
"jeff-hykin.better-cpp-syntax", // Provides syntax highlighting for C++
"marus25.cortex-debug", // Provides debug support on Arm Cortex-M
"mcu-debug.memory-view", // Dependencies to "marus25.cortex-debug"
"mcu-debug.peripheral-viewer", // Dependencies to "marus25.cortex-debug"
"mcu-debug.rtos-views",
"stmicroelectronics.stm32-vscode-extension",
"stmicroelectronics.stm32cube-ide-clangd" // Dependencies to "marus25.cortex-debug"
],
}
Loading
Loading