CubeMX: SPI4 + SDMMC1/FatFs + I2S6, audio BSP et debug VS Code (Linux)

Regeneration CubeMX (Appli) preparant le driver ST67W611M1 et la carte SD :
- SPI4 (PE12/13/14, CS PF8) + DMA GPDMA1 canaux 4/5, SPI_RDY (PD12/EXTI12),
  CHIP_EN (PD13) et BOOT (PD15) pour la X-NUCLEO-67W61M1 sur l'Arduino
- SDMMC1 + FatFs (appels d'init non generes dans main, IRQ SDMMC1 prio 14),
  PM14 en open-drain ; I2S6_CK sur PA5 pour liberer PC12 (SDMMC1_CK)
- HAL UART retire ; USE_BSP_COM_FEATURE=0
- Audio preserve : ADF 4/16/24, prio IRQ 2, DMA canal 0 en priorite haute,
  GPDMA1_Channel2_IRQHandler deplace dans audio_irq.c (hors fichiers generes),
  BSP_MX_I2S6_Init (renommage dans le BSP pour eviter le conflit avec CubeMX)
- Middlewares/ST/ST67W6X_Network_Driver, FatFs et sources HAL SPI/SD ajoutes
  (driver ST67 pas encore integre au build)

Build et debug sous Linux :
- gcc/toolchain-env.sh, gdbserver.sh, arm-gdb.sh : outils de STM32CubeIDE par
  glob ; flash.sh les retrouve ; ruby_compat.rb pour Ruby >= 3.2 (TouchGFX)
- makefile_appli : sources SD/SPI/FatFs/audio_irq ; chmod +x des .out TouchGFX
- Objets de build (*.o, *.d, *.su) retires de l'index (deja dans .gitignore)
- AGENTS.md : toolchain Linux, configs VS Code (cppdbg et ST stlinkgdbtarget),
  pieges de l'extension ST (.settings/ide.store.json, preRunCommands reset)

Verifie sur carte : audio OK, debug Appli/Boot OK.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
thomasandClaude Sonnet 5.5 committed 2026-10-23 22:49:06 +02:00
1 parent b119a6abd7
commit 66bb319423
1092 files changed
+172728 -133236

No files matched your search

+12 -2
View File
@@ -23,7 +23,7 @@
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.1066832335" name="Floating-point unit" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.value.fpv5-d16" valueType="enumerated"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.1006920537" name="Floating-point ABI" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.value.hard" valueType="enumerated"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.922995967" name="Board" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="genericBoard" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.1672375240" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.6 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32H7S7L8HxH || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../../../Boot/Core/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy | ../../../Middlewares/ST/STM32_ExtMem_Manager | ../../../Middlewares/ST/STM32_ExtMem_Manager/boot | ../../../Middlewares/ST/STM32_ExtMem_Manager/sal | ../../../Middlewares/ST/STM32_ExtMem_Manager/nor_sfdp | ../../../Middlewares/ST/STM32_ExtMem_Manager/psram | ../../../Middlewares/ST/STM32_ExtMem_Manager/sdcard | ../../../Middlewares/ST/STM32_ExtMem_Manager/user | ../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include | ../../../Drivers/CMSIS/Include || ../../../Boot/Core/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy | ../../../Middlewares/ST/STM32_ExtMem_Manager | ../../../Middlewares/ST/STM32_ExtMem_Manager/boot | ../../../Middlewares/ST/STM32_ExtMem_Manager/sal | ../../../Middlewares/ST/STM32_ExtMem_Manager/nor_sfdp | ../../../Middlewares/ST/STM32_ExtMem_Manager/psram | ../../../Middlewares/ST/STM32_ExtMem_Manager/sdcard | ../../../Middlewares/ST/STM32_ExtMem_Manager/user | ../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include | ../../../Drivers/CMSIS/Include || || USE_HAL_DRIVER | STM32H7S7xx || || || || || ${workspace_loc:/${ProjName}/STM32H7S7L8HXH_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || || || || ::" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.1672375240" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.6 || Debug || true || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32H7S7L8HxH || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../../../Boot/Core/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy | ../../../Middlewares/ST/STM32_ExtMem_Manager | ../../../Middlewares/ST/STM32_ExtMem_Manager/boot | ../../../Middlewares/ST/STM32_ExtMem_Manager/sal | ../../../Middlewares/ST/STM32_ExtMem_Manager/nor_sfdp | ../../../Middlewares/ST/STM32_ExtMem_Manager/psram | ../../../Middlewares/ST/STM32_ExtMem_Manager/sdcard | ../../../Middlewares/ST/STM32_ExtMem_Manager/user | ../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include | ../../../Drivers/CMSIS/Include || ../../../Boot/Core/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy | ../../../Middlewares/ST/STM32_ExtMem_Manager | ../../../Middlewares/ST/STM32_ExtMem_Manager/boot | ../../../Middlewares/ST/STM32_ExtMem_Manager/sal | ../../../Middlewares/ST/STM32_ExtMem_Manager/nor_sfdp | ../../../Middlewares/ST/STM32_ExtMem_Manager/psram | ../../../Middlewares/ST/STM32_ExtMem_Manager/sdcard | ../../../Middlewares/ST/STM32_ExtMem_Manager/user | ../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include | ../../../Drivers/CMSIS/Include | ../../../Boot/FATFS/Target | ../../../Boot/FATFS/App | ../../../Middlewares/Third_Party/FatFs/source | ../../../Middlewares/Third_Party/FatFs/source/drivers/sd | ../../../Middlewares/Third_Party/FatFs/source/drivers/template || || USE_HAL_DRIVER | STM32H7S7xx || || || || || ${workspace_loc:/${ProjName}/STM32H7S7L8HXH_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || || || || ::" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.debug.option.cpuclock.662685908" name="Cpu clock frequence" superClass="com.st.stm32cube.ide.mcu.debug.option.cpuclock" useByScannerDiscovery="false" value="-0" valueType="string"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.1963301451" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/STM32H7S78-DK_Boot}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1644084849" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
@@ -45,6 +45,11 @@
<listOptionValue builtIn="false" value="../../../Middlewares/ST/STM32_ExtMem_Manager/user"/>
<listOptionValue builtIn="false" value="../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include"/>
<listOptionValue builtIn="false" value="../../../Drivers/CMSIS/Include"/>
<listOptionValue builtIn="false" value="../../../Boot/FATFS/Target"/>
<listOptionValue builtIn="false" value="../../../Boot/FATFS/App"/>
<listOptionValue builtIn="false" value="../../../Middlewares/Third_Party/FatFs/source"/>
<listOptionValue builtIn="false" value="../../../Middlewares/Third_Party/FatFs/source/drivers/sd"/>
<listOptionValue builtIn="false" value="../../../Middlewares/Third_Party/FatFs/source/drivers/template"/>
</option>
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input.1292361778" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input"/>
</tool>
@@ -140,7 +145,7 @@
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.1655982322" name="Floating-point unit" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.fpu.value.fpv5-d16" valueType="enumerated"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.1797665307" name="Floating-point ABI" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.value.hard" valueType="enumerated"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.2071731243" name="Board" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="genericBoard" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.1202772212" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.6 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32H7S7L8HxH || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../../../Boot/Core/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy | ../../../Middlewares/ST/STM32_ExtMem_Manager | ../../../Middlewares/ST/STM32_ExtMem_Manager/boot | ../../../Middlewares/ST/STM32_ExtMem_Manager/sal | ../../../Middlewares/ST/STM32_ExtMem_Manager/nor_sfdp | ../../../Middlewares/ST/STM32_ExtMem_Manager/psram | ../../../Middlewares/ST/STM32_ExtMem_Manager/sdcard | ../../../Middlewares/ST/STM32_ExtMem_Manager/user | ../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include | ../../../Drivers/CMSIS/Include || ../../../Boot/Core/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy | ../../../Middlewares/ST/STM32_ExtMem_Manager | ../../../Middlewares/ST/STM32_ExtMem_Manager/boot | ../../../Middlewares/ST/STM32_ExtMem_Manager/sal | ../../../Middlewares/ST/STM32_ExtMem_Manager/nor_sfdp | ../../../Middlewares/ST/STM32_ExtMem_Manager/psram | ../../../Middlewares/ST/STM32_ExtMem_Manager/sdcard | ../../../Middlewares/ST/STM32_ExtMem_Manager/user | ../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include | ../../../Drivers/CMSIS/Include || || USE_HAL_DRIVER | STM32H7S7xx || || || || || ${workspace_loc:/${ProjName}/STM32H7S7L8HXH_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || || || || ::" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.1202772212" name="Defaults" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.6 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32H7S7L8HxH || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../../../Boot/Core/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy | ../../../Middlewares/ST/STM32_ExtMem_Manager | ../../../Middlewares/ST/STM32_ExtMem_Manager/boot | ../../../Middlewares/ST/STM32_ExtMem_Manager/sal | ../../../Middlewares/ST/STM32_ExtMem_Manager/nor_sfdp | ../../../Middlewares/ST/STM32_ExtMem_Manager/psram | ../../../Middlewares/ST/STM32_ExtMem_Manager/sdcard | ../../../Middlewares/ST/STM32_ExtMem_Manager/user | ../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include | ../../../Drivers/CMSIS/Include || ../../../Boot/Core/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc | ../../../Drivers/STM32H7RSxx_HAL_Driver/Inc/Legacy | ../../../Middlewares/ST/STM32_ExtMem_Manager | ../../../Middlewares/ST/STM32_ExtMem_Manager/boot | ../../../Middlewares/ST/STM32_ExtMem_Manager/sal | ../../../Middlewares/ST/STM32_ExtMem_Manager/nor_sfdp | ../../../Middlewares/ST/STM32_ExtMem_Manager/psram | ../../../Middlewares/ST/STM32_ExtMem_Manager/sdcard | ../../../Middlewares/ST/STM32_ExtMem_Manager/user | ../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include | ../../../Drivers/CMSIS/Include | ../../../Boot/FATFS/Target | ../../../Boot/FATFS/App | ../../../Middlewares/Third_Party/FatFs/source | ../../../Middlewares/Third_Party/FatFs/source/drivers/sd | ../../../Middlewares/Third_Party/FatFs/source/drivers/template || || USE_HAL_DRIVER | STM32H7S7xx || || || || || ${workspace_loc:/${ProjName}/STM32H7S7L8HXH_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || || || || ::" valueType="string"/>
<option id="com.st.stm32cube.ide.mcu.debug.option.cpuclock.833750276" name="Cpu clock frequence" superClass="com.st.stm32cube.ide.mcu.debug.option.cpuclock" useByScannerDiscovery="false" value="-0" valueType="string"/>
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.2066663623" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
<builder buildPath="${workspace_loc:/STM32H7S78-DK_Boot}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.863146482" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
@@ -159,6 +164,11 @@
<listOptionValue builtIn="false" value="../../../Middlewares/ST/STM32_ExtMem_Manager/user"/>
<listOptionValue builtIn="false" value="../../../Drivers/CMSIS/Device/ST/STM32H7RSxx/Include"/>
<listOptionValue builtIn="false" value="../../../Drivers/CMSIS/Include"/>
<listOptionValue builtIn="false" value="../../../Boot/FATFS/Target"/>
<listOptionValue builtIn="false" value="../../../Boot/FATFS/App"/>
<listOptionValue builtIn="false" value="../../../Middlewares/Third_Party/FatFs/source"/>
<listOptionValue builtIn="false" value="../../../Middlewares/Third_Party/FatFs/source/drivers/sd"/>
<listOptionValue builtIn="false" value="../../../Middlewares/Third_Party/FatFs/source/drivers/template"/>
</option>
<inputType id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input.260521004" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.input"/>
</tool>