STM32 MCUs products

Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STm32CubeMX bug: CAN2 wrong configuration

Posted on June 26, 2014 at 16:31 Hi, I tried to configure my STm32F207 using the ''Cube'' to use the CAN2 and I found a bug. This is the initialization code generated by the ''Cube'': void HAL_CAN_MspInit(CAN_HandleTypeDef* ...

USB gadget

 I have successfully configured USB On-The-Go (OTG) on an STM32 microcontroller to support both Abstract Control Model (ACM) and Human Interface Device (HID) protocols. I utilized the script as a reference, and the setup is...

Barak1 by Associate
  • 1 replies
  • 0 kudos

Resolved! Measuring elapsed time in nanoseconds

I need to measure the time it takes for a component to reach a certain voltage, read out with the ADC. So far I have been measuring in microseconds but it turned out that that is not precise enough.I found the following code to measure time on Stacko...

Qwyntex by Associate III
  • 13 replies
  • 2 kudos

Needed help in ADC callback using Interrupts.

__IO volatile uint8_t ADC_ConversionFlg=0;void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc){/* Prevent unused argument(s) compilation warning *//*ADC_ConversionFlg |= 0x01;CTP=HAL_ADC_GetValue(&hadc1);} MX_ADC1_Init(); HAL_ADC_Start_IT(&hadc1); ...

Tushar_4 by Associate II
  • 3 replies
  • 1 kudos

Resolved! HAL_UART_Transmit USART_CR1_RE error

Hello everyone,I'm configuring a STM32L0 core board to connect to a module using AT commandAll the commands work fine but when I get to a given command (AT+MSG="123456"\r\n), they work only the first time and the second time it only sends ATfor examp...

husq by Associate
  • 1 replies
  • 1 kudos

Resolved! HAL_StatusTypeDef function

Hi, i come across a H7 code that use HAL_StatusTypeDef , could anyone kindly advise what does the HAL_StatusTypeDef do, whats HAL_OK means? what does ret != HAL_OK mean? and what does return HAL_OK means?HAL_StatusTypeDef spi_write(reg, *pData){  HAL...

Resolved! NMI Fault While Debugging (STM32G474 nucleo board)

Hello,I keep getting an NMI fault when I attempt to read a variable with gdb (either with a mouseover on a variable in STM32CubeIDE or the print [var] command in gdb). I'm not seeing anything useful when I view the microprocessor registers after the ...