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
Title edited to correct version number.I have not programmed in the IDE for a while. But when I created a project, and edited the .ioc file, and told it to save and create the main.c file it did, and opened the main.c file. I am able to create a project, and it lets me go to the MX editor (I am in 1.9.0). I enable a couple of UARTS, Then I save. And it asks if I want to generate code, I say yes. And there is no code at all. There are only two files in the EPS_PDU_STM32L433RCT3 project directory the EPS_PDU_STM32L433RCT3.ioc.projectNone of the subdirectories were created, the main.c was not created. This used to work. I must have fat fingered something to screw it up. But I do not know what I did. I did see a warning on the project name in the Project ExplorerDescription Resource Path Location TypeProject 'EPS_PDU_STM32L433RCT3' has no explicit encoding set EPS_PDU_STM32L433RCT3 /EPS_PDU_STM32L433RCT3 No explicit project encodingI do not know what tha
Hello, ST CommunityI’m currently working with the NUCLEO-WB55RG board to enable BLE communication.Initially, BLE advertising worked perfectly when the board was powered via USB (connected to a PC or 5V Adaptor). However, now BLE advertising do not start, when I power it via USB - 5V adapter. The 5V adapter is not the issue — it’s a stable power source rated at 5V / 3A.I powered using CN15(ST-Link 5V-usb) in both cases before and now. System setupBoard: NUCLEO-WB55RGExpansion board: X-NUCLEO-NFC08A1Initialization sequence in main.c:int main(void) { HAL_Init(); MX_APPE_Config(); SystemClock_Config(); PeriphCommonClock_Config(); MX_IPCC_Init(); MX_GPIO_Init(); MX_RTC_Init(); MX_X_CUBE_NFC6_Init(); MX_RF_Init(); MX_APPE_Init(); // BLE initialization NFC08A1_LED_Init(); rfalInitialize(); }When I toggle an LED for debugging, the program appears to stop or hang inside MX_APPE_Init() when i connect to adaptor for power. What I’ve already checkedLinker script verified — .MB_
This post provides a workaround for a specific issue in STM32CubeIDE v2.0.0. The issue will be resolved in the next version. If STM32CubeIDE v2.0.0 is installed from scratch and if the imported project in STM32CubeIDE v2.0.0 is a project generated with STM32CubeMX v6.16, it is not possible to install the OpenSTLinux plugin. Consequently, it is not possible to import OSTL projects such as Linux, Optee, TF-A, or U-Boot. In order to work around this, the following steps are recommended: Install STM32CubeIDE 1.19.0 Install OpenSTLinux plugin v6.1.0 in STM32CubeIDE 1.19.0 Import the projects concerned (Linux, Optee, TF-A, U-Boot) Help > Check for updates > select STM32CubeIDE 2.0.0 > Next > Finish Then restart the STM32CubeIDE.
Split from: Power Supply for STM32F030 Cortex TSSOP20 VDDA and VDD pin; specifically this post.@TDK wrote:that satisfies the condition. But only the "VDDA >= VDD" condition - it doesn't satisfy the "VDDA must be first" condition. As noted, I suspect that the 2nd condition is incorrectly stated; I guess it should say, "VDD must not come after VDDA" or similar ? @TDK wrote:That is the most common configuration.Indeed it is!@fredy - you could check out some ST board schematics to verify ...
This is to report an erroneous speed - with a divided by two speed - for the Motor Control Workbench and its associated Motor Pilot version 6.4.1.The speed information throughout the Motor Control Workbench generates twice the mechanical speed with F.O.C algorithm and STEVAL-SPIN3202 control board.The measured tachometer shaft speed which leads to confirmed motor speed and associated computations are the following:Motor Speed (RPM) = 2 x BEMF(Freq)(Hz) x 60 seconds / Poles pairsNote: 2 factor meaning: Each magnet passes over the coil used to sense the Back-EMF twice during each rotation, once over each end.BEMF(Freq) is matching HALL(Freq) in our application.These checks were carried out with two motors:1,400 RPM with a 10:1 gear ratio delivering 140 RPM at the shaft and 155 RPM with no gear In both cases, we have correct mechanical speed for half the speed entered within Motor Control Workbench and Motor Pilot. Motor Pilot reports half the speed of the actu
I am trying to use SWD for printing using ITM_Sendchar, Printf not calling _write, I tried to put breakpoint and see, But it is not hitting breakpoint
Good morning.Could anyone tell me about this error and how to resolve it.C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3 .rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: Oscillo_STM32G431CBU.elf section `.bss' will not fit in region `RAM'C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3 .rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: region `RAM' overflowed by 54928 bytesI'm using IDE 1.19 to compile the code for a G431CBUGratefulValter Matos
Hey guys. I recently got a nucleo wba55cg board into my hands and tried to finish the ble app youtube tutorial, but it didnt work. A led was supposed to be blinking to indicate that the device advertices for a bl connection, but that didn't happen. I also couldn't find the board on the available bl devices. What i did step by step1) Downloaded cubeIDE 1.19 (mx 1.15) and wba_fw1.8 since 1.8 requires MX version 1.162) Downlaoded the ble p2p server example from here 3) Chose to open a Cube MX/IDE .ioc file 4) Changed device and advertising name to WPAN_MOOC5) Built the project6) Flashed the project to my deviceAgain, no result whatso ever. I tried to open a serial terminal and reset the nucleo board, to check the logger. It seems that everything initializes fine, but no actual output about the process. Any advice would be welcomed.
* board - STM32N6570-DK* using STM Cube 1.19.0* Example - USBPD_SNK Goal - to enable Display port Problem - is i'm getting stuck with the current example. It gets stuck at SVDM_deiscovery_identity part. Which in that packet i should be able to start to tell the host that i have display port capability, but i what is currently set it that the message is unsupported. How would i go about enabling this. Thoughts - In usbpd_vdm_user.c it seems like it has all the stuff that i need to start sending back these kind of messages but they don't seem to be called anywhere. There's a function called* USBPD_VDM_DiscoverSVIDs()But it doesn't seem to be called. Capture from a STM32 PD G0 - with STM32CubeMonitor app
Is it possible to add MotionFx to an STM32WB09TEF7TR MCU?According to the table on page 6 of this document:https://www.st.com/resource/en/brochure/sensor_libraries_software_pack_for_stm32cube.pdfMotionFx is available on Cortex M0+However when trying to add this in CubeMx I get the warning "This component cannot be used as it has device or context compatibility issues.
Hi,We are evaluating the LSM6DSR's noise floor for a specific use case. Based from the datasheet the noise is 60ug/sqrt(hz). So calculating the RMS noise at 208Hz should result to 0.00062 m/s^2 right? However, we are getting measured RMS values around 0.002 to 0.004 m/s^2. Here are some configurations setFS: +-2GODR: 208HzData acquired using FIFO reading every 500 samplesNo onboard filtering enabled. I have attached a sample dataset for your analysis as well.
Hi everyone, I’ve been stuck on a CAN communication issue between two boards: STM32F429 Discovery (Classic CAN) STM32H743XIH6 (FDCAN) I’m trying to establish CAN communication between them. Currently, the F4 board can transmit and receive data correctly. The H7 board, however, can transmit but is unable to receive any messages. I’m wondering if the issue is due to the H7 using FDCAN (Selected Classic CAN on H7 Board .ioc file) while the F429 uses Classic CAN. If this difference causes compatibility problems, please let me know. Otherwise, if you know what might cause the H7 to fail in receiving classic CAN frames, I would really appreciate your help. Thanks in advance! would be great
Hello.I try to get the nema-gfx working on a STM32H7S78-DK.But there's a bug in the NEMA library, or a bug in the ST toolchain. When I try to call the library function nema_cl_create() in my function nema_gfx_init(), according to the STM32H7RS GPU2D document (page 6), stm32h7rs-system-gpu2d.pdf the stack is overwritten with values, so the return address on stack (0x7002AEFB) is no longer available (0x00000000) and the cpu goes in hard fault. I suspect it's a bug in the NEMA library. The correct version for the H7 series was used. The error occurs with both versions: libnemagfx-float-abi-hard.a and libnemagfx.a. I looked inside the function in the disassembler, and at the end of the function, registers r0-r3 are written to the stack, but much too far! (See images) Stack bevore calling nema_cl_create. Return-adress: ok Stack after calling nema_cl_create. Return-adress: 0x00000000 Dissass. inside der nema_cl_create: overwriting behind actual stack en
Hi. This is a Linux problem, because with the same parameters it works on Windows. I tested with v2.21.0.I am trying to use the UART connection mode with these parameters:RTS: HighDTR: Negative pulseI can see, with a voltmeter, that the RTS/DTR signals (MCU side) change states.This is what the log shows:17:32:36:714 : RTS High 17:32:36:714 : DTR Negative pulse with delay 200 17:32:36:935 : Serial Port ttyUSB0 is successfully opened. 17:32:36:935 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1,0, flow-control = off 17:32:36:935 : No Init bits value is : 0 17:32:36:935 : Sending init command: 17:32:36:936 : #byte 0x7F sent successfully to target 17:32:38:937 : Wait ends after 1 loop, dataready = 0, delay = 2001 17:32:38:937 : Timeout error occured while waiting for acknowledgement. 17:32:38:937 : No response from target received 17:32:38:937 : Retrying UART init connection... 17:32:38:937 : #byte 0x7F sent successfully to target 17:32:39:037 : Wait en
Hi,I have purchased NUCLEO-F411RE controller EVK and X-NUCLEO-IHM08M1 expansion board to write motor control application and check the motor parameters on Motor Control Work bench tool.While checking for sample application or extension packages for the expansion board and controller, I don't find SPN8 package on X-CUBE extension list. And don't find sample application to add and compile on STM32IDE for NUCLEO-F411RE + X-NUCLEO-IHM08M1. Please suggest me sample application for the NUCLEO-F411RE + X-NUCLEO-IHM08M1 and how to add it into STMCUBEIDE, Compile and Run.Regards,Omkar
Hello,I'm trying to detect a USB stick insertion event to write a text file in the stick. I'm working on a NUCLEO-H563ZI with a jumper connected to JP2 USB USER line and a USB TYPE-C TYPE-A connector attacched in CN13. I started the code from an ST Example but without the USB-PD because I need only two lines (USB_FS_P and USB_FS_N).I saw others example with USB_OTG but my .ioc doesn't have this option. The problem is that I can't catch the USB stick insertion event. I put a breakpoint on "_ux_host_class_storage_activate" and on the "ux_host_event_callback" functions but I never reach these points.Where the event is cathced in the ST functions? What I'm missing / I'm doing wrong?I have attached the project. Thanks for the support
I would like to automate code generation of my .ioc file using CubeMX from command line or PowerShell.AI says its possible with the -q (quiet mode) option but it does not seem to work.
Hi everyone,I’m using the STM32F407VET6 VBAT pin to power the RTC, and I plan to use a CR2032 coin cell directly.I noticed that many schematics add a diode between the CR2032 and the VBAT pin to prevent reverse charging, but after checking the datasheet I’m still not fully sure whether this is actually required.I’d like to ask two questions:When the main supply is present, can the F407’s VBAT pin back-charge the coin cell? Is a diode necessary?Does ST provide an official reference design for powering VBAT with a CR2032? If so, where can I find it?Thanks for your help!
I have multiply\accumulate operations that I want to streamline by using the FMAC. For my application I will be loading the X1 buffer by DMA from peripherals and I don’t want to use circular mode. Documentation mentions ‘vector mode’ which matches what I need, but I don’t see documentation anywhere detailing how to make it work this way. Is this really supported?I'm researching how to improvise by tweaking the R\W pointers, but I'm not sure it is allowed either:Is there a way to keep the pointers from advancing after setting FIR and START bits?Can I reset the read pointer to the base address before executing the start commands?
Hello All,I am trying to get back into Microcontroller programming by attempting to use the STM32F407 Discovery Kit. But my first difficulties are to get the STM32CubeIDE installed and configured properly and to work. I have downloaded and installed the Windows version of the STM32CubeIDE 2.0.0; and I am running Windows 11; but when creating my first project and selecting the STM32F407 Disc1, the STM32CubeIDE is not displaying the configurable Pinout of the STM32F407 that I am expecting to see as shown in the most Tutorial videos I have seen so far. Please, help on how I can configure the STM32CubeIDE correctly in order to program the STM32F407 Discovery Board I am trying to work with.Kindest regardsStarting_Point
In a recent design I needed an additional pin and I configured the PA13 / SWDIO pin as a GPIO input.All going fine, code works, but then this happened: After I program the chip in automatic mode and set the option byte rdp to 0xBB I can't connect again with the programmer. Programmer sais: No STM32 Target found...I tried different modes and reset modes, no luck.The readout protection alone is not the issue, I have been able to connect and reset this on other designs after it was set. The difference here is that the processor is using the SWDIO as an input when running. I thought this would not affect it as it should be available to the programmer directly after reset. The code without the readout protection set does not prevent me from connecting either. This must be the combination of both somehow.Any smart ideas how to circumvent this and connect the programmer again?Regards, PeterP.S. I know you like to look at the schematic for a custom board, so I will attach a snippet of the rele
I’m using the X-NUCLEO-IHM16M1 BLDC driver board, which is based on the STSPIN830, together with a NUCLEO-F446RE. In the STSPIN830 datasheet, ST clearly mentions that the device supports both 3-PWM and 6-PWM input modes.But in practice, on this expansion board:Only INU / INV / INW are connected to the MCUENU/ENV/ENW are present but “NP” (Not Populated) unless manually solderedNone of the INxH / INxL pins (the 6-input mode pins) are routed to the Nucleo connectorsTIM1 complementary outputs (CH1N/CH2N/CH3N) have nowhere to goMotor Control Workbench only allows 3-PWM mode for this boardThe user manual (UM2415) seems to confirm that the 6-input mode requires hardware changes: removing R12, replacing R11, and populating the NP resistors that route INxH/INxL to the MCU. Out of the box, the board is locked to 3-PWM “direct driving” mode.My question:Has anyone actually gotten TRUE 6-PWM complementary drive (TIM1 CHx + CHxN with dead-time) working on the X-NUCLEO-IHM16M1?Not "6 logic inpu
I updated The FUS of my STM32WB55 Nucleo Board to FUS v2.2.0.0 and the BLE Stack to v1.24.0.3After this change Flash erase operations fail at the call of `SHCI_C2_FLASH_EraseActivity` with the error code `SHCI_FUS_CMD_NOT_SUPPORTED`Additionally BLE does not advertise anymore.The log from the `Read FUS infos` returns some warnings:notably:10:35:12 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified. 10:35:12 : Warning: Option Byte: nboot0, value: 0x1, was not modified. 10:35:12 : Warning: Option Byte: nboot1, value: 0x1, was not modified. 10:35:12 : Warning: Option Bytes are unchanged, Data won't be downloadedThe entire log:10:35:12 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified. 10:35:12 : Warning: Option Byte: nboot0, value: 0x1, was not modified. 10:35:12 : Warning: Option Byte: nboot1, value: 0x1, was not modified. 10:35:12 : Warning: Option Bytes are unchanged, Data won't be downloaded 10:35:12 : Time elapsed during option Bytes configuration: 00:00:
I am using STM32N657 with USBX (MSC device).The function ux_device_stack_initialize() is returning UX_ERROR, and after debugging inside USBX I found that the failure occurs when USBX tries to allocate endpoint transfer buffers. The failing code inside USBX is: #if UX_DEVICE_ENDPOINT_BUFFER_OWNER == 0 /* Obtain some memory. */ endpoints_pool -> ux_slave_endpoint_transfer_request.ux_slave_transfer_request_data_pointer = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_CACHE_SAFE_MEMORY, UX_SLAVE_REQUEST_DATA_MAX_LENGTH); /* Ensure we could allocate memory. */ if (endpoints_pool -> ux_slave_endpoint_transfer_request.ux_slave_transfer_request_data_pointer == UX_NULL) { status = UX_MEMORY_INSUFFICIENT; //0x12 break; } #endif So the device stack initialize fails because of UX_MEMORY_INSUFFICIENT. My current USBX memory setup: #define UX_APP_MEM_POOL_SIZE (128 * 1024) // 128 KB total pool#define USBX_DEVICE_MEMORY_STACK_SIZE (5 * 1024) // only 5 KB given to USBX I allocate memory f
The below device tree is for RTL8211F-CG, but i needed help with configuring DT for DP83867IRRGZT, which DT binding should i refer, and if possibly have a DT configured for DP83867IRRGZT, do share it. Hoping for a quick reply,Thanks in advance.&eth1 { status = "disabled"; pinctrl-0 = <&eth1_rgmii_pins_a &eth1_mdio_pins_a>; pinctrl-1 = <&eth1_rgmii_sleep_pins_a &eth1_mdio_sleep_pins_a>; pinctrl-names = "default", "sleep"; phy-mode = "rgmii-id"; max-speed = <1000>; phy-handle = <&phy1_eth1>; st,eth-clk-sel; snps,ext-systime; mdio1 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy1_eth1: ethernet-phy@4 { compatible = "ethernet-phy-id001c.c916"; reset-gpios = <&gpioj 9 GPIO_ACTIVE_LOW>; reset-assert-us = <10000>; reset-deassert-us = <80000>; realtek,eee-disable; reg = <4>; }; }; };FYI, im working on a custom b
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.