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:
1 parent
b119a6abd7
commit
66bb319423
1092 files changed
+172728
-133236
No files matched your search
@@ -22,7 +22,7 @@
|
||||
If the returned value is different from BSP_ERROR_NONE or the function is stuck then the communication with
|
||||
the codec has failed (try to un-plug the power or reset device in this case).
|
||||
|
||||
User can update the I2S or the clock configurations by overriding the weak MX functions MX_I2S6_Init()
|
||||
User can update the I2S or the clock configurations by overriding the weak MX functions BSP_MX_I2S6_Init()
|
||||
and MX_I2S6_ClockConfig().
|
||||
User can override the default MSP configuration and register his own MSP callbacks (defined at application level)
|
||||
by calling BSP_AUDIO_OUT_RegisterMspCallbacks() function.
|
||||
@@ -76,7 +76,7 @@
|
||||
If the returned value is different from BSP_ERROR_NONE or the function is stuck then the communication with
|
||||
the codec has failed (try to un-plug the power or reset device in this case).
|
||||
|
||||
User can update the MDF/I2S or the clock configurations by overriding the weak MX functions MX_I2S6_Init(),
|
||||
User can update the MDF/I2S or the clock configurations by overriding the weak MX functions BSP_MX_I2S6_Init(),
|
||||
MX_I2S6_ClockConfig(), MX_ADF1_Init() and MX_ADF1_ClockConfig()
|
||||
User can override the default MSP configuration and register his own MSP callbacks (defined at application level)
|
||||
by calling BSP_AUDIO_IN_RegisterMspCallbacks() function.
|
||||
@@ -407,7 +407,7 @@ int32_t BSP_AUDIO_OUT_Init(uint32_t Instance, BSP_AUDIO_Init_t *AudioInit)
|
||||
I2S_DATAFORMAT_24B;
|
||||
|
||||
/* I2S peripheral initialization */
|
||||
if (MX_I2S6_Init(&haudio_out_i2s, &mxI2sInit) != HAL_OK)
|
||||
if (BSP_MX_I2S6_Init(&haudio_out_i2s, &mxI2sInit) != HAL_OK)
|
||||
{
|
||||
status = BSP_ERROR_PERIPH_FAILURE;
|
||||
}
|
||||
@@ -1336,7 +1336,7 @@ __weak HAL_StatusTypeDef MX_I2S6_ClockConfig(I2S_HandleTypeDef *hi2s, uint32_t S
|
||||
* @param MXInit I2S configuration structure.
|
||||
* @retval HAL status.
|
||||
*/
|
||||
__weak HAL_StatusTypeDef MX_I2S6_Init(I2S_HandleTypeDef *hi2s, MX_I2S_Config_t *MXInit)
|
||||
__weak HAL_StatusTypeDef BSP_MX_I2S6_Init(I2S_HandleTypeDef *hi2s, MX_I2S_Config_t *MXInit)
|
||||
{
|
||||
HAL_StatusTypeDef status = HAL_OK;
|
||||
|
||||
@@ -1458,7 +1458,7 @@ int32_t BSP_AUDIO_IN_Init(uint32_t Instance, BSP_AUDIO_Init_t *AudioInit)
|
||||
mxI2sInit.DataFormat = I2S_DATAFORMAT_16B;
|
||||
|
||||
/* I2S peripheral initialization */
|
||||
if (MX_I2S6_Init(&haudio_in_i2s, &mxI2sInit) != HAL_OK)
|
||||
if (BSP_MX_I2S6_Init(&haudio_in_i2s, &mxI2sInit) != HAL_OK)
|
||||
{
|
||||
status = BSP_ERROR_PERIPH_FAILURE;
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ void BSP_AUDIO_OUT_Error_CallBack(uint32_t Instance);
|
||||
void BSP_AUDIO_OUT_IRQHandler(uint32_t Instance, uint32_t Device);
|
||||
|
||||
HAL_StatusTypeDef MX_I2S6_ClockConfig(I2S_HandleTypeDef *hi2s, uint32_t SampleRate);
|
||||
HAL_StatusTypeDef MX_I2S6_Init(I2S_HandleTypeDef *hi2s, MX_I2S_Config_t *MXInit);
|
||||
HAL_StatusTypeDef BSP_MX_I2S6_Init(I2S_HandleTypeDef *hi2s, MX_I2S_Config_t *MXInit);
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user