Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
Hello everyone.I'm working on a bare metal project for STM32MP135D using FreeRTOS (V10.6.2) and LwIP (V2.1.0).I write a custom TCP server that work together with a custom UDP client. Both this use raw API. I'm experimenting strange problems:sometime the TCP server not ack the respective client or not provide resoinse to it.I've notice that if putting around tcp_output() and udp_send() a LOCK_TCPIP_CORE/UNLOCK_TCPIP_CORE the problem seems disappear. You think there is a problem on this LwIP implementation or in my lwipopts.h settings?At follow my "lwipopts.h" Thanks in advance for your help #ifndef __LWIPOPTS_H__#define __LWIPOPTS_H__/*** NO_SYS==1: Provides VERY minimal functionality. Otherwise,* use lwIP facilities.*/#define NO_SYS 0/* ---------- Memory options ---------- *//* MEM_ALIGNMENT: should be set to the alignment of the CPU for whichlwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2byte alignment -> def
I am currently evaluating microcontroller options for our project and need your support in identifying a suitable MCU.Our key interface requirements are as follows: 2× MDIO interfaces,3× I2C bus interfaces If you could recommend an MCU that supports these features or share any relevant technical details/datasheets, it would be very helpful.If not, please also suggest alternate part numbers that can meet this requirement.
As mentioned in the title already, the file core_cm4.h is not contained in the recent version of https://github.com/STMicroelectronics/STM32CubeG4 anymore.Selecting the v1.6.1. in that repo the file is contained. Looks like there was an error genererating the new version.
I am experiencing issues powering the STM32H755ZIT6 MCU on our custom board. The schematic has been derived from the NUCLEO-H755ZI-Q development board reference design, and we have verified that there are no apparent design or assembly errors. However, the MCU fails to power up as expected. All VDD pins are connected to an external 3.3 V supply (VDD_MCU). For the power supply configuration, we selected the default internal SMPS-only configuration, identical to the NUCLEO-H755ZI-Q board, as detailed below: VDD_MCU is connected to VDDSD (pin 16).VLXSD is connected through a 2.2 µH inductor to the VDDLDO pins (70, 105, 143) and the VCAP pins (68, 103, 140).In CubeIDE, PWR_DIRECT_SMPS_SUPPLY is selected under RCC > Power Parameters > Supply Source.Power Regulator Voltage Scale 3 is selected under RCC > Power Parameters > Power Regulator Voltage Source. When powered from the external 3.3 V source, both VDD_MCU and VDDSD are at 3.3 V; however, there is no voltage present a
I am a fan of STM32, especially the peripheral sets offered are great. Over the years however, one type of peripheral is missing which would be a great help for many projects, this is a programmable logic cell.Such a cell would contain elements like Flip-Flops, Look Up Tables and such that can be configured for specific functions. For instance using the LUT's, it would be possible to create all kinds of logic operations like AND, OR, XOR gates.Using the Flip-Flops, I would be able for instance to create a clock gate, which I needed in my last project. There I needed an external clock signal to propagate to other peripherals and be able to enable/disable this. In the end I manage to create this function with a timer but this unfortunately generates something like 9 clock cycles of latency limiting the maximum frequency of the external clock signal. A basic Flip-Flop solution would probably introduce a much smaller latency.Competing products offer this kind of functionality more and more
Hi ST Community,I am new to ST and hope to find a fast solution on this way. Background:I am working on a hobby project and want to drive a BLDC Motor. Once I flash the SW on the target, Overcurrent Protection is hit immediately (can see on debugger and Motor Pilot (in MCSDK). Target: Custom Board based on EVSPIN32G4 Schematic (EVSPIN32G4)Chip: STM32G431VBx3. Workflow: 1.) Board Designer done over Motor Control Workbench2.) New Project created and .ioc file generated3.) Generating the Code over MX Cube (without touching any config)4.) Start Motor Pilot or Debugger -> results in overcurrent protection (PWMC_OCP_Handler() is triggered immediately and OverCurrentFlag is set to true.) My Assumption:1. It is not an HW issue because I removed the Motor from the Board so there can no big current flowing.2. I can see in MX Cube that not all of the Pins are configured from MC SDK, is that normal? Do I need to configure the missing pins (only related to motor con
I have unrecoverable errors building on STM32CubeIDE a project generated by STM32CubeMX.The errors arise compiling assembly .s sources for ThreadX.Versions:STM32CubeMX 6.17.0STM32CubeIDE 2.1.0Error (excerpt from build console):arm-none-eabi-gcc -mcpu=cortex-m4 -g3 -DDEBUG -c -I../Core/Inc -I../AZURE_RTOS/App -I../Drivers/STM32L4xx_HAL_Driver/Inc -I../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I../Drivers/CMSIS/Include -I../Middlewares/ST/threadx/common/inc/ -I../Middlewares/ST/threadx/ports/cortex_m4/gnu/inc/ -I../Middlewares/ST/threadx/utility/low_power/ -x assembler-with-cpp -MMD -MP -MF"Middlewares/ST/threadx/ports/cortex_m4/gnu/src/tx_thread_interrupt_disable.d" -MT"Middlewares/ST/threadx/ports/cortex_m4/gnu/src/tx_thread_interrupt_disable.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/ST/threadx/ports/cortex_m4/gnu/src/tx_thread_interrupt_disable.o" "../Middlewares/ST/threadx/ports/cortex_m4/gnu/sr
Hello I found this issue, I drop you my report (with IA helping to write it :) )**Component/Tool:** STM32CubeMX (code generation)**MCU:** STM32C071KBT3 (STM32C0 family)**FW Package:** STM32Cube FW_C0 V1.4.0**Configuration:** USB Device with USBX CDC-ACM class, bare-metal (no RTOS / no ThreadX)**Description:**When generating code for a USB Device project using USBX middleware (CDC-ACM class) in bare-metal mode (without RTOS), STM32CubeMX generates the peripheral initialization calls in `main()` in the wrong order:Generated code (incorrect):MX_USB_PCD_Init(); // Called FIRST MX_USBX_Device_Init(); // Called SECOND**Expected code (correct):**MX_USBX_Device_Init(); MX_USB_PCD_Init(); **Root cause analysis:**`MX_USBX_Device_Init()` calls `ux_system_initialize()` and `ux_device_stack_initialize()` which set up the USBX system memory and device stack. The `MX_USB_PCD_Init()` function's USER CODE section then calls `_ux_dcd_stm32_initialize()` which registers the STM32 DCD driver with the USB
Hello All,I am current testing STM32U375RGT6Q at 80 degrees and I see that there is significant increase in the average current consumption at 80 degrees C. Average Current consumption increases from 290uA to 1mA. Also note that1) Pull up and Pull down are 1Mega2) MCU is in sleep mode for 50 percent of the time.3) Internal oscillator MSI is used at 3MHz4) Flash memory is 1MB5) SMPS mode is used to reduce the current consumption.Is there a way out to reduce the current consumption at high temperature. I know that STM32L4 series are more stable over temperature but they dont suite the current budget of 300uA
Hi,I just noticed that CubeProgrammer v1.21.0 always shows me an update notification, but it is already the latest.Restarting the Cubeprogrammer or the operating system does not make any difference. Environment:- Windows 11- I have installed v1.21.0 alongside v1.20, but that should not make any difference, or would it?
Dear all,we're creating a camera application and have successfully run and modified some of the demos available. ( State at time of writing: 800x600 30 fps full-frame encoding to SDCard).We have full-frame double-buffering code running but this is consuming extensive memory; from the documentation I saw that there is a hardware-linked mode available chaining DCMIPP and VENC cores. From the code, I see there is one implementation in VENC_USB example.The camera and venc middlewares on github miss the slice aka "HW Handshake mode" so I wonder which code-base is recent and will be supported in the future, especially as CubeMX does not (yet) support VENC configuration.We're trying to go beyond a proof of concept, so I'd like to base our project on a maintained code-base but that is hard to spot, could you give some indications?Many thanks,Simon
Hello STM32 friends!I've previously used USB on an STM32G474RET6, and it was initialized with the function:MX_USB_Device_Init()The goal is to use it as a USB serial port to communicate with my device, and that worked.Now I'm using the STM32U5G7VJT6, and this time, the USB is initialized with the function:MX_USB_OTG_HS_PCD_Init()But this function hangs.I've enabled USB interrupts in the STM32CubeMX, but that doesn't help.I haven't been able to isolate the problem yet, but it's probably something very simple.Is this another new USB library?As requested, I attached my IOC file.What could be the problem?Sincerely, Jack
The STM32Cube CMake Support extension treats workspaces as STM32Cube projects when a folder higher up in the directory tree (above the workspace folder) contains the files .settings/bundles.store.json and .settings/bundles-lock.store.json.For example, given a tree like this:/ ├── .settings │ ├── bundles.store.json │ └── bundles-lock.store.json │ └── path └── to └── generic_cmake_project ├── CMakeLists.txt ├── generic_cmake_project.code-workspace └── lib.cIf the user opens the workspace generic_cmake_project.code-workspace, the STM32Cube CMake Support extension automatically creates the file .vscode/settings.json with the following content:{ "cmake.cmakePath": "cube-cmake", "cmake.configureArgs": [ "-DCMAKE_COMMAND=cube-cmake" ] }and modifies the generic_cmake_project.code-workspace file by adding the following settings: "settings": { "stm32cube-ide-clangd.path": "cube" },On the other hand, if the user opens the workspace in "folder mode" (File > Open Folder...), the STM3
I am currently designing an NFC reader PCB based on the ST25R3916B. Could you kindly share the recommended PCB stack-up configuration and the routing guidelines for the NFC antenna? I have also attached images of the PCB layer stack-up that I am currently using. Could you please review them and confirm whether it is appropriate?
Hi,In STM32MP25x Reference manual(RM0457), the HSEM_(S)Cnxxx registers all have the description of global access attribute except HSEM_CnIER, as shown of HSEM_CnICR,22.5.4 HSEM non-secure interrupt clear register (HSEM_CnICR)Address offset: 0x104 + 0x010 * (n - 1), (n = 1 to 3)Reset value: 0x0000 0000Register global access: When CID filtering for processor[n] is enabled inHSEM_CnCIDCFGR, this register can be accessed only by the processor CID. An illegalCID access to this register generates a CID illegal access event. When CID filtering forprocessor[n] is disabled this register can be accessed by any bus master.the HSEM_SCnIER also have the description of global access attribute, and the bits of HSEM_CnIER register also have CID filtering access attribute, and all bits maybe could be used by one CID , So if HSEM_CnIER also have the global access attribute?
Good morning everyone! I have a fast question related with STPMIC1. I want to use it in a design with a STM32MP135 but I don't clearly see how to do it, specially the DDR rail, because I understand that i have to program it. But, in a 20-30 units production, How can I flash it? Is there a special tool to flash it by i2c? Or i should to make other solution in PCB?Thank you so much!PD: I need STPMIC1D (used in DK EVAL Board)
I have a problem with the RTC initialization on the STM32WB05TZF6TR (BGA package). When the board is powered on, the MX_RTC_Init() function calls HAL_RTC_Init(), which returns with HAL_ERROR status.I traced the problem to the stm32wb0x_hal_rtc.c file, inside RTC_EnterInitMode(). It attempts to set the INIT bit, and then waits until the INITF bit changes state to confirm that Initialization Mode has been entered.However, the INITF bit never changes state, so the while loop times out. On my custom board, I have confirmed that this error always occurs when power is applied to the board, but if I manually reset the MCU while power is already applied (by shorting RESET to GND momentarily), then the initialization will complete successfully.To eliminate anything specific to my board, I generated a very simple test project (attached), which uses the default clock configuration with internal oscillators only, for both High Speed and Low Speed clocks. The ONLY configurati
I created a sample project using the STM32N657-DK, but when I try to debug using ST-LINK, each project does not work and results in a HardFault or similar error.I also tried loading them simultaneously from the debug configuration, but it was not successful.How can I properly debug both AppliSecure and AppliNonSecure? Also, is this the correct way to create a sample using the TrustZone feature of the STM32N6570-DK?I would appreciate your guidance.I am using STM32CubeIDE version 1.19.0.For the sample project I created, I made "FSBL", "AppliNonSecure", and "AppliSecure".
We need the secure boot and secure firmware update solution for both the execution models to meet the EU-CRA standard:• Execute in place support (XiP support) - direct execute from external QSPI flash• BootROM support - copy from QSPI flash to SDRAM, and execute from SDRAM https://www.st.com/resource/en/application_note/an5188-external-memory-code-execution-on-stm32f7x0-value-line-stm32h750-value-line-stm32h7b0-value-line-and-stm32h730-value-line-mcus-stmicroelectronics.pdf
Following the tutorial here, at step 8, I get to the part where you load firmware onto the dev kit, but I always get an error "No ST-Link detected". As far as I am aware, programming should be done over the USB cable, or UART, not ST-Link?The board is running Linux OK, UART terminal is working, so is IP over USB cable. The run configuration I have is show below. What am I doing wrong?I checked with STM32CubeProgrammer and there are no programming interfaces available over USB or UART, and no ST-Link..
Since there is no caregory to post for the MCU Finder tool I'm posting here. On Windows, the stand-alone app, as well as the Android app, do not show any content when filtering by the H5 range in the series field. Could this please be fixed? It's been like this for multiple months now. Thanks.
Hello ST Support,I reproduced an ETH TX DMA issue on STM32N6570-DK where the DMA never consumes the TX descriptor.Environment- Board: STM32N6570-DK- Security: TrustZone enabled, Secure-only platform configuration- PHY: ID1=0x001C, ID2=0xC916, link-up confirmed- Interface: RGMII, 1G linkObserved behavior- HAL_ETH_Transmit*() submit succeeds (st=0)- TX descriptor OWN bit remains 1 (never cleared by DMA)- TX complete callback/counter never increments- DMA enters/keeps TBU state- Key symptom: DMACCATXBR remains 0 (buffer base is never loaded)Representative logs- [eth][post-start] dlar=0x3402C1E0 dtpr=0x3402C1E0 rlr=0x00000003 txcr=0x00200001 dmacc=0x00080218 txqomr=0x0007000A- [tx][path] st=0 own=0->1 catxdr=0x3402C1E0->0x3402C1E0 catxbr=0x00000000->0x00000000 csr=0x00000000->0x00000004- [tx][stall] own=1 ... catxdr=0x3402C1E0 catxbr=0x00000000 csr=0x00000004 ... dmad=0x00006400 tps0=0x00006000 axr=0axw=0What we already tried (same result in all cases)1. EDSE on/off (txcr=0x102
Hello — please help with the following questions about parameters:How should I correctly configure the TCXO frequency parameter $PSTMGETPAR,1245 (TCXO Frequency)?How should I correctly configure the CPU clock speed parameter $PSTMGETPAR,1130 (CPU clock speed)?To improve PPS accuracy, is it correct that the CPU clock speed should be set equal to the PPS Clock?What are the maximum supported values for the PPS Clock and for the CPU clock?
Hello, I am beginner with STM32.I have some radiosonde boards with an STM32L051R6T6. I use STM32CUBE IDE V2.0.0When I start a project, select the appropriate MCU, there is no Core directory and no ".IOC" file.So, it is impossible to access to the GPIOs.I've tried some ways to do that and allways unseccessfull. Please, have you an idea ? NoticeI use also an STM32F103C8T6 board. I've create my own GPIO lib, my own I2C lib, and I can compile, flash, debug and run my program. Thank you and sorry for my english Retired
Hello,I'm using the STM32N657 on a new project, and its not clear how users are supposed to setup GPIOs that are used in different domains (FSBL, Application, ExtMemLoader). For example I am using pin PN12 as a LED output and defined it in FSBL. Why doesn't this definition carry over to the other domains, and how can I get CubeMX to carry it over to the other domains? thanksMatthew
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.