fix(stm32h7s78-dk): various issues preventing compilation / boot (#6494)

This commit is contained in:
Raphael Coeffic
2025-08-02 11:28:11 +10:00
committed by GitHub
parent 51f70bc5f7
commit b8af047e72
4 changed files with 10 additions and 4 deletions
@@ -140,7 +140,9 @@ uint32_t SystemCoreClock = HSI_VALUE;
* @retval None
*/
void SystemInit(void)
#define BOOTSTRAP __attribute__((section(".bootstrap")))
BOOTSTRAP void SystemInit(void)
{
/* Configure the Vector Table location -------------------------------------*/
SCB->VTOR = INTVECT_START;
@@ -222,7 +222,7 @@ static void _config_tx_dma_data_width(const stm32_spi_t* spi, uint32_t data_widt
uint32_t dest_width = LL_DMA_DEST_DATAWIDTH_BYTE;
if (data_width == sizeof(uint16_t)) {
src_width = LL_DMA_SRC_DATAWIDTH_HALFWORD;
memory_size = LL_DMA_DEST_DATAWIDTH_HALFWORD;
dest_width = LL_DMA_DEST_DATAWIDTH_HALFWORD;
}
LL_DMA_SetSrcDataWidth(spi->DMA, spi->txDMA_Stream, src_width);
LL_DMA_SetDestDataWidth(spi->DMA, spi->txDMA_Stream, dest_width);