Developer support experience survey - We value your feedback
Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.
Most recent activity
Dear all,May I know where I can download the STM32L476 Discovery source code please?Thanks.
..
Hello everyoneI am struggling with my custom board to be used as HOST or DEVICE.In my board I have both connectors USB HOST A, and miniUSB Device connector in parallel.When using an application as USB HOST for an USB Keyboard, everything is working fine.When I am reprogram the application to be used as USB DEVICE CDC ACM Virtual Com Port it does not show in Linux, and there are a lot of error trying to connect and at least it fails loading USB Device. The device is HOST ONLY or DEVICE ONLY depends on which application I set. There is NO USD_ID pin connected as it works only for OTG/Dual Role stuff.The hardware REMAINS the same. There are 2 22R Ohm resistor as impedence matching for lenght, and the lenght for each DATA LINE (D+ and D-) is less than 5 cm from the MCU.The MCU is running with an external crystal/oscillator 8MHZ 49-HC style oscillator.What can be checked to ensure the correct behaviour of the USB bus?Regards,Gianluca
HiIn the STM32H7 dual-core safety manual (UM2840) Section 4.2.1 Power supply, ST states that it is recommended to use a separate power supply for IWDG. In the reference manual (RM0399) in figure 576 it is displayed that IWDG is supplied from Vdd domain. Does this mean that Vdd domain and Core domain shall have different power supplies? If not, which rails are meant?Thanks
Is it possible to use endpoints after 6 in STM32F4 OTG_HS?Endpoint 6 and later of OTG_HS_DAINTMSK register cannot be unmasked. Other OTG_HS registers have only up to 5, so I would like to know if only 0 to 5 can be used.Thank you.
On an device running USBX/AzureRTOS, when I plug/unplug it from the computer - it doesn't always come back up device->ux_slave_device_state stays at UX_DEVICE_ATTACHED, and windows gives a Device Descriptor read failed (and a USB device not recognised)The code stays clocked and doesn't use STOP/STANDBY modes, and stays on the same clocks as when it is running.Is there a need to prioritise the ux_slave_hid_thread/hid_uxbx_app_thread/main_usbx_thread above others?
Hello everyone! I'm very new to USB C PD so bear with me.I'm currently designing a very simple temperature controller board that uses a USB C PD power supply. I am using a STM32G071C8U3 as the host MCU. I have connected the CC1 (PA8) and CC2 (PB15) lines to the equivalent on the USB C port and am regulating the voltage from VBUS to 3.3V for the MCU. I've been assuming that plugging in will first deliver some voltage over VBUS in the USB PD range (3V-21V or something like that) and then the micro can negotiate the desired voltage/current, but when I plug in the USB C PD I get 0V on VBUS. What could I be missing?When I plug in a non PD capable supply, everything seems to work find and I get 5V on VBUS and the MCU turns on correctly. But plugging in the USB C PD gets nothing. I've confirmed this USB C PD works by hooking it up to the STM32 GO.Thanks for your time!
I am writing code for the NUCLEO-F767ZI board in C++.Initially, I have three classes and their objects are defined as global variables in `usermain.cpp` in ${Project}\User\Src\:SystemClass systemObj(1); PwmClass servoObj(&htim3); TLinkClass tlinkObj(&huart3);SystemClass has the pointers of the PwmClass and TLinkClass objects as its members.// systemlib.hpp class SystemClass { public: uint8_t ID; PwmClass* pPwm; TLinkClass* pTLink; ... SystemClass(uint8_t ID); }; // baselib.cpp SystemClass::SystemClass(uint8_t id) { ID = id; }The code works nicely as intended. Now, I want SystemClass to contain the PwmClass and TLinkClass objects as its member for simplicity. So the latter two objects are initialized by SystemClass.// systemlib.hpp class SystemClass { public: uint8_t ID; PwmClass Pwm[SYS_PWM_NUM_TIMER]; TLinkClass TLink; SystemClass(uint8_t ID); }; // usermain.cpp SystemClass systemObj(1);It's a very simple change, but the code started to th
Has anyone developed the USB3320 driver to be able to write and read the USB3320 ULPI registers from an STM32 microcontroller?
Hi I am a new bee here, I wanted to create a bootloader to flash two applications, so i need the flash partitions which I didn't got in the datasheet properly.and also I wanted to implement OTA so is this STM32F446RTC6 is capable of all this????
Hello,I am trying the USB Communication stm32f303 with android phone usins CDC USB TERMINAL app . I am able transmit all the string. But while reception I am receiving only the first character.
Dear allAfter having enabled ETH + LwIP stack we are experiencing that something in the init phase are keeping blocked all.After a while we see that the root causes is inside HAL_ETH_ReadPHYRegister.Specifically we are referring at this part of code:Is there any way to make this in a better way?Davide
This project was set up by someone else. It uses the ST port of LWIP and FreeRTOS.I have spent hours googling on this. As usual one digs up a vast number of forum and usenet posts, mostly with no clear conclusions. Some people are trying to optimise two session performance. I realise there is no optimal config, but there can be really bad ones and I want to make sure I don't have one of those.What I am after is the case of optimising a single connection. Multiple sessions should still work but perhaps slowly; that's fine. The constraints are- minimising memory usage (currently the whole ETH end is using up about 30k; 20k would be a lot better).- the ETH RX is polled from an RTOS task, at say 100Hz, not interrupt-driven (done for simplicity, and protection from an accidental or deliberate DOS situation), so maybe we need more RX buffers than usual, although 1 MTU at 100Hz is pretty respectable for this product.LWIP seems to use memory from two pools, defined in lwipo
USB_ResetPort function is called in USBH_Process in HOST_IDLE state after USBH_Delay(200U); this results in 300 ms delay usb application.Is there any way to reduce this time in stm32 USB applications.This function is after a USB connection. Is there any way to remove this delays in USB_ResetPort funciton.HAL_StatusTypeDef USB_ResetPort(USB_OTG_GlobalTypeDef *USBx) { uint32_t USBx_BASE = (uint32_t)USBx; __IO uint32_t hprt0 = 0U; hprt0 = USBx_HPRT0; hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | USB_OTG_HPRT_PENCHNG | USB_OTG_HPRT_POCCHNG); USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0); HAL_Delay(100U); /* See Note #1 */ USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0); HAL_Delay(10U); return HAL_OK; } #[STM32 MCUs] #USB
Hi, I'm trying to run a USB host mass storage on an STM32F750. After building the project in STM32Cube V 1.11.0 I have in "usb_host.c" after the line" Appli_state = APPLICATION_READY;" the code "res = f_mount(&USBHFatFS, USBHPath, 1);" written, but "res" was always "FR_DISK_ERR". I had tested this way in Nucleo-H723 and seen that it worked. I decided to test with another Stm32Cube version. I had the same problem with version 1.9 but with version 1.8 it works without problems.Is this a HAL_Library issue and is there a way to solve it?I defined my project in version 1.11.0 and prefer to continue developing it with this version.
Hi all,I am developing an application using bare TCP and UDP connections.Since the new HAL implementation now uses custom PBuf allocation for Rx memories, I thought about killing the PBUF_POOL since it does not seem to be used anymore now.I started by testing my application with statistics enabled and indeed, the usage count of memp_stats_PBUF_POOL stayed at zero all the time.Setting PBUF_POOL_SIZE to 0 reduced my RAM usage as expected and the application is still running normally.Am I missing anything here? Are you guys aware of some pitfall I did not see or do you think I am safe so far?
The exact issue I am experiencing with the STM32L4 series (both L476 and L412), is described here: https://stackoverflow.com/a/71297149/10909834The solution I came to independently is to reinitialize the uart. I used HAL_UART_DeInit() followed by HAL_UART_Init() calls, the poster of the SO answer called the MX_USARTx_UART_Init() function again.I would like to know what happens during the procedure that recovers the uart. What is the minimum I need to do to recover?I did implement the error callbacks, and called HAL_UART_Abort_IT() in it, with a HAL_UARTEx_ReceiveToIdle() call in the HAL_UART_AbortCplt() callback. The uart handle got stuck in DMA error state though, so I added a check for that in the main loop and just reinitialized the whole thing when I got in that state.Do anybody understand what's going on and what is the correct procedure to elegantly recover the DMA and/or UART?
I created a project to create, write, read and close a file in a USB stick, using a STM32F413 MCU. I used STM32CubeMX to generate the code. The relevant part of the code is this: uint8_t text[]={"Hello world\r\n"},rbuff[50],test=0; switch(Appli_state) { case APPLICATION_READY: test+=f_mount(&USBDISKFatFs, (TCHAR const*)USBHPath, 1); test+=f_open(&MyFile, "FILE.txt", FA_CREATE_ALWAYS | FA_WRITE | FA_READ); test+=f_write(&MyFile, text, sizeof(text), (void *)&bytesw); f_lseek(&MyFile, 0); test+=f_read(&MyFile, rbuff, sizeof(text), (void *)&bytesr); test+=f_close(&MyFile);
Hi In my hardware BOOT0 pin high after 12ms(Due to some hardware dependency) of power up, In this scenario MCU isn't going to bootloader mode, So I want to know For How much time mcu remain in bootloader mode at power up.
Hi, the LAN8720A has not the Tx_clk and Rx_Clk signals. Does the STM32F765 supports this configuration supposed I use the LAN8720A in slave mode routing to it the 25MHZ clock generated from the MCU from a ClockOut pin?Thank you.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.