STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

File stm32xxxx_hal_conf.h non-homogeneity

in stm32xxxx_hal_conf.h files there is the declaration of assert_failed()F4: void assert_failed(uint8_t* file, uint32_t line);H7:void assert_failed(uint8_t* file, uint32_t line);L4: void assert_failed(char* file, uint32_t line);Its not the same prot...

UDP packages make my MCU reset

Hello,I wrote this code to send each 100us a 16bytes to PC. (STM32f10x)int32_t socket; uint8_t *sendbuf;     void Time3(void){ TIM_TimeBaseInitTypeDef TimeStruct; NVIC_InitTypeDef nvicStructure; NVIC_PriorityGroupConfig(NVIC_PriorityGroup_3); nvic...

0693W000000W3S7QAK.png
parisa by Senior
  • 441 Views
  • 6 replies
  • 0 kudos

Hello, I have implemented the code for the USB VCP, but when debugging the code the "pdev->pClassData" is always null (0). Where is this class initialized? code line : USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef *)pdev->pClassData;

Cube MX 5.6.1 generated code:void MX_USB_DEVICE_Init(void){ /* USER CODE BEGIN USB_DEVICE_Init_PreTreatment */   /* USER CODE END USB_DEVICE_Init_PreTreatment */   /* Init Device Library, add supported class and start the library. */ if (USBD_Init(&h...

RPers by Associate II
  • 410 Views
  • 8 replies
  • 0 kudos

Resolved! Custom Bootloader Testing & Debug

I am trying to write a custom bootloader. I have compiled both bootloader and application binaries and concatenated them in the makefile. When I flash the device with the binary (via ST-Link) my application is not booting up.1) I suspect the issue is...

AAgar.2 by Associate III
  • 332 Views
  • 3 replies
  • 1 kudos

STM32F0 bxCan Interrupts (new documentation?)

Hi,I'm going around Can communication using interrupt and HAL drivers. I have successfully configured CAN of my STM32F0 device using CubeMX. I can handle Transmit and Reception. Now I'd rather to have reception handled by interrupts, but it seems to...

DKarc by Associate II
  • 165 Views
  • 0 replies
  • 0 kudos