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
  • 1201 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
  • 1179 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
  • 1008 Views
  • 3 replies
  • 1 kudos