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,I am developing a USB PD sink application on custom board with STM32G0B1VETI am using periphery UCPD2. I followed AN5418 to set up eveyrthing in CubeMX and add the specified pieces of code.Hovewer, ithe USBPD stack doesn't seem to send or recieve anything on the CC1 or CC2 lines. I have confirmed with oscilloscope, data is flowing to the MCU CC2 pin, but nothing seem to happen inside the USB stack.This is as far as it gets:With a sniffer device, I can see the power supply sending source capabilities, but these packets are nowhere to be seen when logging the application.This leads me to believe, the USB PD stack isn't getting the data.Any ideas where to look for the problem? I have followed the instrucions and I can't see how this could be a electricall issue. Firmware package is STM32Cube FW_G0 V1.6.1Thank you for any help
Starting from this video (https://www.youtube.com/watch?v=CGUC1wqSLCE) I'm trying to write my bootloader for DFU from an USB stick. The code works but I would like to tweak it such that:if at boot an USB stick is detected, than start the update, otherwise jump to application (done and it works)at the end of the update, jump to the application (this does not work)I got it work the second point by adding a delay to let me remove the USB stick. But if the USB stick is still plugged in, then the "jump to application part does not work.I suspect that this is related some kind of USB peripheral initialization.Here is the zip of the project.
Hi everybody,Is there a commonly used or already-built system for platform/chip abstraction between multiple STM32 parts? I have encountered various PAL's over time, some better than others, but I was curious if there is one common one that people use when doing their own designs, and not already using a PAL baked into some vendor's SDK?I am about to set out work on a new module in a hardware system that has two possible paths in front of it, one blank-page and one backwards compatible.Roughly speaking, I might be extending a module already designed with an STM32F2 or the module might throw off it's legacy needs and then we could build it with an STM32U5. Or there's even a third avenue wherein we'd update the legacy section of the system and target STM32U5 hardware.I can generate the template code for the F2 and U5, and then include both in a larger project.Conceptually, I can see how e.g. CAN functions would just need to be routed to each library's CAN implementations, and it's probab
Hi all!I'm trying to send a page to the browser using a microcontroller. I use instructions and code from YouTube. I generate fsdata.c. I connect LAN8720 with a cable directly to the computer. As a result, the ping passes, but the site is not displayed at the same address (http://192.168.77.6).Why might the page not be displayed?
Hi, I need to enable 3A supply on MKBOXPRO - referring to the attached schematic section; if I install 5.1K (1%?) pulldown resistors to GND, that are already provisioned for on R42,and R43, would that be all that I need to accomplish this?Another related but separate question: if I were to use this same design, in attached png (again, in 5V-only,3A/ 15W sink configuration) without MCU/ No UCPD, that should workwell standalone, right?Please advise. Thanks for your timely attention and help.Best,Ash
I just need to draw some lines and add letters to the MB1166 board's LCD.The closest application that I've found is targeted for Eclipse, and it's going to be very involved to get it working.I'm trying to get CubeIDE's TouchGFX application running, but's way too big and complex for what I need.Help locating a simple CubeIDE LCD driver/application for the H747i-DISCO boards would be greatly appreciated.
When I hold BOOT0 while hitting Reset the Device boots up and configures the USB as VID/PID 0x0000/0x0002 but the STM32CubeProgrammer expects 0x0483/0xdf11.As far as I know the bootloader is in ROM (e.g. cannot be overwritten/damaged) so how can it be that the device shows up with "wrong" USB IDs ?
Hello, I am working on a project where I get sensor values from ADC and then send those values via MQTT. I am using FreeRTOS. For the ADC configuration: DMA activated Scan mode ENABLEDContinous mode ENABLEDDMA continuous requests ENABLEDFor the MQTT configuration, I used a GitHub project (ETH interrupt is enabled). For each sample, I want to store the new data coming from NBR_OF_CHANNELS channels in the tmp[NBR_OF_CHANNELS][NBR_OF_SAMPLES] buffer. I am using a semaphore in each task (ADC_StoreData and MQTTClientPubTask). The adcValues is filled in each sample (meaning it is working fine) but the tmp buffer is only filled with the first value of the adcValues (first value of the first channel in the the first sample). I tried to add work with DMA interruption and using the CompleteConversionCallBack() after the end of each sequence, but I got a problem with the ETH interrupt. The task is easy:- Collect data from 4 channels -
Dear forum,I have been working with the STM32WL55, using STM32Cube FW_WL V1.1.0.During the development phase I have tried to stress test the device with sending acknowledged LoRa messages one after the other. In order to ensure that I am not going to overload the M0+ with requests through the MBUMUX system, I am using a semaphore that is locked before sending and unlocked after the callback is called reporting that the message was sent or failed (all this is done in my application on the M4 side). I have not made any changes on the CM0+ code that is provided in the end node dual core sample. On the M4 application I am using FreeRTOS.During my tests I noticed that at some point the M0+ was getting stuck somewhere and the .onRxData of the LmHandlerCallbacks was not invoked, after sending an arbitrary of messages (run the test a couple of times and the device would get stuck on different counter values.After debugging the whole application I saw that the device was getting stuck at this p
Hi, I just created a new profile and logged in to download STM32cubeMX and STM32cubeIDE. But no matter where I click on the download links, there is no response on the website. I have tied this in both Vivaldi and Edge browsers on Win11. I'm in the process of evaluating STM32 through the STM32F030 Discovery kit. The way this is progressing it looks like I'm better off sticking with the ATMEGA32 :) Are there issues on the ST servers today, or is this because my profile was recently created?Here are some of the pages where I experience dead download links:STM32CubeMX: Graphical tool - STMicroelectronics - STMicroelectronicsSTM32CubeIDE: Multi-OS development tool - STMicroelectronics - STMicroelectronics Best,Børge
Hello everyone,I’m interested in electric motor drives and power electronics. I’m trying to create a C program for STM32F407 Discovery board that executes Hall sensored 6 step commutation with complementary PWM.The program must apply a PWM signal to the high side mosfet, complement of this pwm signal to same leg low side mosfet with significant dead time and GPIO-ON State to corresponding low side mosfet according to Hall sensor state. You can see what I’m trying to do in the figure below.I set the GPIO pins to alternate function to generate PWM and did necessary configuration to generate complement of this PWM signal. But I’m confused. For instance at sector 1, I generated both PWM signals and control the PWM3L via GPIOx->ODR register. But at sector 4 I need to apply PWM signal for the same pin(PWM3L). Do I need to configure the pin as output or alternate function? How can I configure this? Do I need to use event or interrupt. Can anyone help me please? Thanks in advance.
Hi,I am trying to perform OTA on STM32F413ZT6 using Seirra Wi-Fi module. The Sierra and MCU communicate over UART. Here the binary is downloaded by the WI-Fi from a server, further, it will send the binary to the MCU. The STM is responsible for writing it to the application partition using a custom bootloader and booting up the newly written binary.From the above-mentioned process, I am able to perform all the initial steps of downloading the file, transferring it over UART and writing it to flash. But when it comes to booting the new application, it's not working for me. I have also configured the vector table and application address correctly for the application.
Hello,I am facing a problem that I am unable to solve.My environment: 2 PCs with Cube v1.13.1 installed and working but one is not connected to internet (have to). I am working with the SMT32H750B-DK eval board and the STM32 MCU package for H7 Series v1.11.0. I am only programming on the offline PC.My work: I am working on configuring Ethernet protocol on this board to allow me to transfer data using LwIP stack according to this tuto https://community.st.com/t5/stm32-mcus/how-to-create-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308After configuring the pins, clock and LwIP stack, Cube tries to generate the related code and asks me to provide it the H7 Series v1.11.1 package. I dl and install it on the online PC and paste it in the Repository folder of the other PC.On the offline PC, the build set this error: fatal error: "stm32h7xx_hal_eth.h" no such file or directoryAnyway, the compiler does not recognize the new dependency added previously. Do someone has an idea how to
Hi I have ported mcuboot to stm32 without os, following the https://interrupt.memfault.com/blog/mcuboot-overview. But I'm having problems and some things are not clear to me, hope someone can help me.By following the guide I implemented everything, added the internal flash read/write erase functionality. Configured the Application size and start addressesUsed the command to create boot.bin and upload it to 0x8000000: arm-none-eabi-objcopy build/stm32g4.elf stm32g4-app-no-header.bin -O binary && python mcuboot/scripts/imgtool.py sign --header-size 0x200 --align 4 --slot-size 0xa000 --version 1.0.0 --key mcuboot/root-rsa-2048.pem --pad-header stm32g4-app-no-header.bin boot.bin Used the command to create app1.bin and upload it to 0x800a000:arm-none-eabi-objcopy build/stm32g4.elf stm32g4-app-no-header.bin -O binary && python mcuboot/scripts/imgtool.py sign --header-size 0x200 --align 4 --slot-size 0xa000 --version 3.0.0 --key mcuboot/root-rsa-2048.pem --pad-h
Dear All,I am using the STM32WL55 MCU running the LoRa stack in the dual core setup.I am using STM32Cube FW_WL V1.1.0 to build my solution and upgrading to another version of the SDK is not a simple option.The project is meant for the Australian region.The issue we are encountering at the moment is that the device, when it sends data in a certain range of bands it is mostly successful and when it sends outside of that list of bands it is about 50% successfulThe configuration on The Things Industries that we are using is this:Another point that might be interesting is that the device is sending a large amount of messages, so it could be that it is reaching a dutycycle restriction of some sort on the "good" channels and starts using the bad ones.So my questions are:Could there be some issue with the TTI configuration?Could there be some configuration on the LoRa stack side that we can do to restrict the device in only using certain channels?Thanks a lot in advance
Hello, I have the following device under test (DUT), based on the CDC Standalone example in STM32Cube_FW_F4_V1.27.0. STM32F469I MCUUSB3300 ULPI PHYHCLK and SYSCLK set to 180MHzTXFIFO size is set to 2048 bytes, RXFIFO size is set to 1024 bytesThe DUT is configured as USB Peripheral deviceThe DUT is configured as USB CDC with ACM subclass (virtual comport using 11520 baud rate, 8 bit data, no stop bit)USB Host is a Windows PC -- running an executable that reads the data from COM port, verifies data fidelity, and calculates throughputUtilizing Wireshark on the Windows PC to examine USB data sent/received across the endpoints)Three endpoints are configured :Endpoint 0(control transfer type)Endpoint 1 ( bulk transfer type with max packet size = 512 bytes for both IN and OUT)Endpoint 2 (interrupt transfer type with max packet size = 8 bytes for OUT) .The DUT is coded to write a known data pattern to the bulk transfer type endpoint when a connected event is indicated. This data is w
Hello. I try to develop a FW which should include USBPD SOURCE and USB HID device. My current dev kit -is SRC1M1 + MB1360-G0B1RE. The USB PD functionality was added in accordance with Stm32 wiki link for PD Source device - it is tested and OK. After that USB HID device was added with Cube configuration: enable USB_DRD_FS as a device_fs; check Interrupts enabling; enable USB support into USBPD middleware; configure USB_DEVICE middleware; After that project was compiled and flashed. A Type-C cable is connected to the laptop with Windows 10 and HID device was not detected. Next try was to connect MB1360-G0B1RE to MB1303B (only USB2.0 data lines, 3.3V and GND), because P-NUCLEO-USB002 kit has never had this issue with USB and Cube code . This setup is working for USB2.0 - HID device is detected over Type-C. I checked a schematics for both boards(MB1303B and SRC1M1) - it looks like that USB2.0 lines are independent from any other lin
Hello Forum,I recently downloaded the latest version of STM32CubeIDE v1.13.0. Upon installation, almost all the items are displayed in English language except few items in Menu bar.My system locale is set to English - US. Still, I see some of the menu in foreign language as shown below.Could you please help me on how to make this appear in English?
STM32F103c8t6 Controller is Freezing after Few hours of Working i m using NVIC_SystemReset(); Fuction so that it start the Code from Start and Initilze all the Parameter it is not the Better approach beacuse i also use Flash Memory for Storing data in to it. i dont want to use this NVIC_SystemReset(); fuction beacuse after reset my Memory will bhe Flash and i dont want to flash Memory i Flash it when code on certain position or logic how to solve this Problem.
Hello,I am working with Nucleo-H743ZI2. Using ST Programmer I did full chip erase with Read protection option bytes as CC. Now am getting an error message cannot find STM32 target. I guess I have to reflash my basic firmware packages from ST but I am not aware how to do it since am using ST nucleo board newly. Any suggestions would be appreciated thanks in advance.
I'm using the STM32 IDE, create a new project, and the project wizard pops up. When I choose the eval board, i get an empty project that has many HAL initialization calls in the main. Unfortunately some of the HAL calls (eMMC init, USB init) hang, and the end of the main function is not reached. This is problem number 1. Then when i try to setup printf myself, or load the printf example, i can't get any output via the virtual serial port from ST-LINK USB port. I have *no* problems with the STM32F769I-DISCO! So my environment is setup ok in general.
For the whole STM32 family there is a longstanding issue of providing a proper delay after enabling the peripheral clocks. As reported and explained in this topic, since the the release of STM32 in 2007, ST has still failed to provide both - a correct documentation and code. To ensure a proper peripheral clock bus synchronization, the following has to be done:Enable the peripheral clock in RCC register.Read back any RCC register to ensure that the previous RCC write is complete.Wait for 2 peripheral (bus) clock cycles.Here I am presenting a helper functions, which solve this issue and provide other useful functionality: #define DIVU_ROUND(n, d) ( ((n) + (d) / 2) / (d) ) /*============================================================================*/ uint32_t DRV_RCC_BusPrescGet(const void *hPeriph) { // Always read an RCC register to ensure that previous RCC accesses are complete uint32_t rCFGR = RCC->CFGR; if ((uintptr_t)hPeriph >= AHB1PERIPH_BASE) { return 1; } u
Hello,I need to transfer more data, than I could afford to store in memory with an SPI Master. So I thought to use the circular DMA to update the data using HAL_SPI_TxHalfCpltCallback and HAL_SPI_TxCpltCallback.But how can I stop the SPI transmission at the right time? I see no possibility to for example stop after the next complete buffer transfer. When I issue HAL_DMA_Abort and HAL_SPI_Abort in HAL_SPI_TxCpltCallback, the transmission will of course still go on for a couple of bytes.I am using a STM32H743 with CubeMX Firmware Package 1.5.0Does anyone here have an idea how to do this?
Hi All,I made a piece of hardware, where I use STM32G0B1CET6N as a supervisor for another CPU (Qualcomm CPU+LTE) and to manage USB ports/ battery charger.All went well until I started to add to my code USBPD and USB CDC (virtual COM port).I was looking for an off-the shelf example, which could be integrated with what I wrote till now. I use PC with WIN10 Pro 10.0.19045 Build 19045.All of the code was built with STM32CubeIDE, GNU 11.3rel1, _Min_Heap_Size = 0x2000;, _Min_Stack_Size = 0x4000;, FLASH_LATENCY_2.Tried to do the following:1. Took STM32CUBEMX V6.9.1 and generated 2 separate projects, which contain the ONLY components:1.a. USB_DRD_FS+USB_DEVICE Middleware (Configured as CDC) and UCPD1 (Configured as DRP+USBPD Middleware (Full Stack).Initially STM32CUBEMX provided warning before generating the code because some platform settings (bcd detection related, whatever I tried there, i've got warning, so switched off BCD)Ran the generated code, got a Hard Fault
Hello everyone, I'm currently working with the STM32CubeIDE and I'm encountering an error after the new Update 1.13.1. After using the printf function the following function in the newlib_lock_glue.c throws me into the Error_Handler in the main.c, after checking the lock for a NULL value. __retarget_lock_acquire_recursive(_LOCK_T lock) { STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(lock); //This line results in the Error_Handler stm32_lock_acquire(STM32_LOCK_PARAMETER(lock)); } This behaviour just started after the version upgrade from 1.12.1 to 1.13.1 of the IDE.I tried to change the MCU Toolchain settings to the older GNU Tools version (10.3.-2021.10)now printf works just fine, but if I use the new GNU Tools version (11.3.rel1), which is the new default setting of the IDE im encountering said Error.How can this be avoided in the new version of the GNU Tools?Maybe someone can help me with this issue.Please inform me if you need further information.Thanks in adv
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.