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
Hello All,I am evaluating the STM32U585 MCU to implement it in OTG role(Host and Device both), but I see there is no middleware/stack available for this microcontroller with FreeRTOS, I could see the USBx middleware which is based on azure RTOS.Could some one please help here to find the example/alternative of USBx?Thanks in advance
Hi,I am trying to load the bootloader (on a STM32L072) when my main program is running but after reading a lot of posts talking about this subject it seems that it is not possible to start up the bootloader from the main program due to the dual bank boot management( category 5 devices), after multiples tries, I can't get rid of the bank1 booting.I can't change my design and boot0 is connected to ground.Does someone have an idea ? Thanks,
Hi,I've CubeIDE project for LAN9303 2 port ethernet driver. Followed the ST LWIP article and got the ping on the switch IC to PC.I have a problem with getting registers of lan9303. I guess the LAN8742 driver is doing minimal settings on the ic but when I want to take the ic system and status registers, returns 0xFFFF. I am using lan8742 read-write functions in its driver. IO.ReadReg(pObj->DevAddr, ***, &regvalue)Is there any specific read function to handle ic smi system registers? I just want to read 13.2.2.4 LED Configuration Register (LED_CFG).Not: I2C is connected but I didn't use it, I guess my current configuration strap doesn't need to use it.Regards,Umit
I am using Nucleo-STM32F767 board. I want to access usb device registers and do register level programming for my project.
..
Hi, i have a simple bootloader and a application on top. Both works fine so far. But after the implemented the bootloader my UART2 is not working anymore. so no output.When i remove the bootloader (change linker file and system... file) UART function is back like nothing happens.I tried to configure the uart channel in the bootloader as well, but that doesnt helpen.any idea?It is a STM32F103C8T6.
The Interrupt vector table for both the Bootloader and the Application Project are shared at 0x800000 register location,but when code pointer jumps to Application project the interrupt vector still remains at 0x800000 and the application project has no access to it. Can you please explain how to move interrupt vector location at the start of Application Project Location.
Using STM32L552 Bootloader to flash new firmware via CAN-FD port only the first 512 bytes are changed starting from address 0x8000000 even though Write Unprotect (0x73) and Readout Unprotect (0x92) has been sent according to AN5405. Erase Memory (0x44) is working by setting all memory to 0xFF. What needs to be done to flash new firmware beyond the first 512 bytes?
Hallo, I'm using the Nucleo board for STM32U5, LL drivers for USART1 and DMA.in my main.c the init function are:static const charlong_string[] = """What's the problem""???????\r\n""";static void MX_USART1_UART_Init(void){ /* USER CODE BEGIN USART1_Init 0 */ /* USER CODE END USART1_Init 0 */ LL_USART_InitTypeDef USART_InitStruct = {0}; LL_GPIO_InitTypeDef GPIO_InitStruct = {0}; LL_DMA_InitTypeDef DMA_InitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; /** Initializes the peripherals clock */ PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART1; PeriphClkInit.Usart1ClockSelection = RCC_USART1CLKSOURCE_PCLK2; if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) { Error_Handler(); } /* Peripheral clock enable */ LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_USART1); LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_GPIOA); /**USART1 GPIO Configuration PA9 -----
"Hello,After several research attempts, I could not find what I was looking for. That’s why I am posting this message today. I need to connect my microcontroller (STM32L4R9AI) to an EG915U modem through USB.The microcontroller uses the latest HOST USB library which is compatible with all USB classes. However, it cannot detect any interface to send AT commands. I can detect the VID (0x2C7C) and PID (0x901) of the module.For your information, I was able to communicate with another eval board with the CDC Class using this library. Have you ever completed this kind of project? Do you have any tips to help me?Thank you."
I am attempting to add a UDP service to my TCP project. However, I do not see a way to select the UDP services in the .ioc configuration.I have successfully implemented UDP in my Nucleo F4 project, but the TCP project is using an Nucleo H723 target/processor. Is UDP support not available for the H723?
Apologies - posted to wrong forum groupHost: amd64, 8GB RAM, 500GB SSD, 440GB available Ubuntu 20.04, all current updatesInstalled the debian amd64 1.11.2 CubeIDE and 6.7.0 MX.Created a simple H750V application using MX. The IDE installed thecurrent HAL H7xx library. Building the bare bones before adding moreapplication code produced the fatal error for the line 36 #includestatement in stm32h7xx_hal.c, plus many syntax error warnings instm32h7xx.c, such as in line 71 __IO uint32_t uwTick;.I did not modify stm32h7xx_hal_conf.h file.In case files were somehow corrupted, replaced the IDE loaded files stm32h7xx_hal.h and stm32h7xx_hal.c with files from a 1.11.0 HAL separately downloaded HAL library. The same errors ocurred.ioc file is attached.Cheers, Hal
Hi, I'm new to building by using CubeIDEActaully, I'm kind of lost for building my project.When applying freeRTOS provided by CUBEIDE, a freertos.c file is generated. I want to use including a C++ header file and C++source code and using a C++ class created in the C++ source code in my freertos.c file. I changed the targeted language to C++ and renaming main.c to main.cpp. Then, if I use #include "myown.h" (based by c++) and extern "C" MX_FREERTOS_Init(); in prototype.And when I bulid, warning appears" ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]at freertos.cpp."osThreadDef(AGLORITHM, Algorithm, osPriorityAboveNormal, 0, 128);warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] osThreadDef(AGLORITHM, Algorithm, osPriorityAboveNormal, 0, 128);../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h:416:4: note: in definition of macro 'osThreadDef' 416 | { #name, (thread), (priority), (instances), (stacksz), NUL
I am designing a PCB for a self-powered industrial device with a USB port, and therefore need to use VBUS sensing. In the generic USB hardware guideline (application note 4879), it is stated that "Pin PA9, a five V-tolerant pin, is natively dedicated to VBUS sensing".What confuses me is that the STM32L433 datasheet doesn't mention this. In fact, nether the datasheet or the manual mentions VBUS at all, and PA9 doesn't seem to have anything to do with the USB port at all.So my question is this: Does anyone here have experience with VBUS sensing on the STM32L433? Does PA9 really work as VBUS sensing on these devices, even though it isn't mentioned in the manual or the datasheet?I had a look at the datasheet for the STM32L475, where the additional function for PA9 is listed as OTG_FS_VBUS. Is PA9 dedicated to VBUS sending only in OTG capable devices?
I have designed an audio device based on a STM32H743 MCU. For synchronization purposes I need to be able to count incoming USB frames.To achieve this, I use TIM5 in slave mode, with ITR8 as its trigger. The results are puzzling. I am getting either 1000 SOFs per second (as expected) - or 2000.The behavior is specific to a particular MCU. I have 12 boards, all running the same code. Five count SOFs correctly and seven at twice the expected rate. Reflashing a MCU, even after a full chip erase, makes no difference. The markings on all the processors are identical.What might be going on? Any ideas?
I am struggling to find working examples to work with FreeRTOS in an interrupt mode.I use the function HAL_I2C_Slave_Transmit_IT() This enables the interrupt as well as setting up the data.It works to a point, then the remote Master send a Nak and 8 bytes which then fires the Error interrupt.However the Write address and the Subaddress is sent there is an issue. The top trace in the waveform below indicated where the interrupt fires. What is most notable that the second firing is a result of a RXNE bit being set. As this bit is never cleared by a read from the data register in the HAL library the interrupt fires again about 200 times until a read address is received.I feel that is an issue with the stm32f4xx_hal_i2c.c library?There doesn't seem to be a wealth of slave I2C examples for the STM32F4 series. I think I know what I am doing wrong, but either way this behaviour is not ideal. The byte should at least be read and an error indicated in some way.
I am trying to send some communication from an Nucleo-F412ZG board over USB. I am currently using CDC_Transmit_FS function but this seems to only send char values and I would like to be able to send an uint8_t variable and have it come out as a meaningful set of characters, is there a way to do this with the CDC_Transmit_FS function or do I need to use something else?
Greetings !I am trying to incorporate TLS functionality on STM32H743 . I have tried implementing sample TLS Server Application on STM32H and I could able to send and receive data using simple TLS client which is developed using Python.Now I am trying with TLS Webserver , here I am trying to display simple webpage .But here I am failing to establish the connection.Requesting you kindly help me out to achieve this .Thanks in Advance
Hi community, I am trying to use a Nucleo-L053R8 board to send data over USB without much success. The purpose of my project is simply to test the USB communication by sending string over USB Port as a first step before sending the sensor data. When I call the function CDC_Transmit_FS, hcdc is always in a busy state. After some debug, I found out that (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData in usbd_cdc_if.c is always NULL, as if it has never been initialized. I am using STM32CubeIDE version: 1.11.2 on a WIndows 11 Laptop. Has anyone experienced this kind of issues with this configuration ? Any help would be appreciated .
Hi all,Hardware - STM32L4R9 Disco with STEVAL-MK172V1 eCompassI'm stuck trying to resolve some kind of conflict I'm having with Hal_Delay. I've lowered the priority of the timer interrupt so that SysTick is a higher priority. I've tried using both the TIM3_IRQHandler() found in the stm32xxxx_it.c file in core, and writing in HAL_TIM_PeriodElapsedCallback at the bottom of my main. with either of those methods, if there is no code to be handled, the loops and interrupts function so that I get the output loop over UART I'm using as a method of output for now, just without the data I'm ultimately calculating. I've made use of __disable and __enable_irq() in the interrupt handlers in an attempt to prevent conflict, but any time I try to execute any portion of what I'd like to be updating, the controller gets stuck in an infinite loop either as a result of of trying to run HAL_Delay, HAL_TIM_Base_Start_IT or printf (which is set up to print to the UART connection I have set up over the USB c
I made an I2C communication between STM32U585 uC to an I2C EEPROM and it worksI do the following but if I remove the HAL_Delay(10) or minimizes it to less than 10msec things are not working well, the second call I2C_Master_Transmit fails.Is there's a way to call the I2C_ISR register or anything else, in order to check if the writing process was completed before proceeding with the communication?Thanks!
Currently, I am using the STM32L162VE custom board. I want to enter the USB DFU mode but am not able to enter the mode. This chip supports the USB and USART pre-programmed bootloaders. I have referred to the application notes AN2606 and AN3156. I did the below steps with reference to AN2606. For making the BOOT0 pin to 1, have connected the JP1 jumper and Boot1 making as 0 as below.Is there any DFU standalone application for STM32L162VE/ ZE? Do we need to create any project using CUBE MX for a USB device as DFU? Can you please guide me on how to enter the DFU mode and update the firmware?
Hello,I saw a not yet reproducable fault at adresses, which are part of the private/vendor-specific memory regions.The fault happend on a STM32H7B0 runnig freeRTOS, ICache + DCache enabled:Causing instruction address: 0x7.... (external flash)Comming from address: 0xE0059256 (private peripharel bus memory region)Faulty bus access address: 0xE0215C00 (vendor-specific device memory region)The following bits were set:MUNSTKERR - If 1, fault on unstacking on exception return.MLSPERR - 1f 1, fault during floating-point lazy stack preservation.IBUSERR - If 1, fault on instruction fetch.STKERR - If 1, fault on stacking for exception entry.INVSTATE - If 1, execution in invalid state. E.g. Thumb bit not set in EPSR, or invalid IT state in EPSR.Could anybody please tell me, how I can determine, which "peripheral/compontent" is on this memory region 0xE0059256 and 0xE0215C00?I checked the ARM cortex-m7 processor technical reference manual and the STM32H7B0 reference manual. But there arn't much de
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.