study 中...
不錯的文章
https://www.engineersgarage.com/stm32/stm32-pwm-generation-using-timers/
study 中...
不錯的文章
STM32—cubeMX+HAL庫的SPI介面使用timer1 polling:
HAL_TIM_Base_Start(&htim1);timer1 isr:
HAL_TIM_Base_Start_IT(&htim1); => enable 方式不同
Getting Started with STM32 - Timers and Timer Interrupts
https://www.digikey.com/en/maker/projects/getting-started-with-stm32-timers-and-timer-interrupts/d08e6493cefa486fb1e79c43c0b08cc6
試著了解一下 I2C DMA.......
最後才知要呼叫
HAL_StatusTypeDef HAL_I2C_Mem_Read_DMA ( I2C_HandleTypeDef * hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t * pData, uint16_t Size ) 在實作中,有發現如果是HAL_BUSY 好像I2C就當掉了,無法復原: STM32: Busy flag is set after I2C initialization https://electronics.stackexchange.com/questions/272427/stm32-busy-flag-is-set-after-i2c-initialization |
一開始 clock sources要選對,之前選 Bypass 好像有問題
在MX_I2C1_Init(0 --> HAL_I2C_Init(&hi2c1) 內會有問題