STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! STM32F446VET USB FS Peripheral isn't working

Hi all,​I've met a weird issue, when using STM32F446VET chip to connect PC by USB, and PC alerts 'USB can't be recognized'.​I've go throught some related topics on the forum, but unfortunately all didn't help. For example,1) disable VBUS sensing2) in...

Azhan.1 by Associate II
  • 1041 Views
  • 4 replies
  • 1 kudos

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
  • 1200 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
  • 1170 Views
  • 8 replies
  • 0 kudos