nucleo

How to do a adc conversion every 1us with Nucleo-F303K8?

末鹿安然 提交于 2021-01-29 07:49:20
问题 Im using the STM32 Cube IDE. What I tried now is enable MSM in TIM2 and output_compare_no_output on Channel 1 and select "Reset" as the Trigger Event. Then I went to ADC1 and enabled Regular_Conversion_Mode, set Number_Of_Conversions to 1 and the External_Trigger_Conversion_Source to Timer 2 Trigger Out event. After that I set up a DMA in circular mode that pushes half-words to a RAM buffer. For testing I've set the frequency of the timer a lot lower (10Hz) and send some ADC readings from the

How to do a adc conversion every 1us with Nucleo-F303K8?

纵饮孤独 提交于 2021-01-29 07:27:03
问题 Im using the STM32 Cube IDE. What I tried now is enable MSM in TIM2 and output_compare_no_output on Channel 1 and select "Reset" as the Trigger Event. Then I went to ADC1 and enabled Regular_Conversion_Mode, set Number_Of_Conversions to 1 and the External_Trigger_Conversion_Source to Timer 2 Trigger Out event. After that I set up a DMA in circular mode that pushes half-words to a RAM buffer. For testing I've set the frequency of the timer a lot lower (10Hz) and send some ADC readings from the

ERROR_DOWNLOAD_TASK_START_ISSUE on System Workbench STM32 Eclipse

大憨熊 提交于 2020-02-06 08:08:36
问题 Trying to start a new project for STM32F446RE board for blinking LED. There is an error which restricts me from downloading the firmware. I tried downloading the firmware from STM website and pasting in SystemWorkbench Firmware folder in AppData . 回答1: One can download the zip file at http://www.ebuc23.com/s5/ac6/software/firmware/stm32f4_dsp_stdperiph_lib_v180.zip and paste the Zip file and the extracted file in C:\Users\User_Name\AppData\Roaming\Ac6\SW4STM32\firmwares and reopen Eclipse and

ERROR_DOWNLOAD_TASK_START_ISSUE on System Workbench STM32 Eclipse

北慕城南 提交于 2020-02-06 08:06:08
问题 Trying to start a new project for STM32F446RE board for blinking LED. There is an error which restricts me from downloading the firmware. I tried downloading the firmware from STM website and pasting in SystemWorkbench Firmware folder in AppData . 回答1: One can download the zip file at http://www.ebuc23.com/s5/ac6/software/firmware/stm32f4_dsp_stdperiph_lib_v180.zip and paste the Zip file and the extracted file in C:\Users\User_Name\AppData\Roaming\Ac6\SW4STM32\firmwares and reopen Eclipse and

STM32 SysTick counting twice as fast as it should

心不动则不痛 提交于 2020-01-07 04:19:26
问题 I have a STM32L476RC nucleo board that I am using to learn STM32. I am using STM32Cube HAL and AC6 System Workbench to develop on. I am trying to stay away from CubeMX as my goal is more towards learning than just getting something to work. The problem that I am having is when I try to set up the systick timer using the code below, it seems to be counting twice as fast as it should. HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000); However if I just leave it default form the power-up then it is

Nucleo STM32f103RB/F4 Discovery

╄→尐↘猪︶ㄣ 提交于 2019-12-08 13:32:55
问题 Has anybody used Duplex communication via VCP on Nucleo/or discovery single USART with RX TX interrupts. Would appreciate sample code to Echo back(transmit) what is received . 回答1: There are certainly some example among the STM32CubeF4 and STM32CubeF1 package. Also see this example, in which the microcontroller echos back the received bytes to the sender using UART RX interrupt: #include "stm32f4xx.h" UART_HandleTypeDef huart2; /* Single byte to store input */ uint8_t byte; void SystemClock