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
I have the SPC5Studio software installed. Installed everything I could find in the Help-> Install New Software. Found two help files in openocd-> docs section in the SPCStudio folder on the C drive. Only one applied, so as far as I know these are the latest drivers. UDE STK 5.2 and UDE STK 221 are both sitting on the desktop and do not do anything.Nothing I have tried has worked, any insight would be deeply appreciated.ThanksMike
Hi everyone,I’m new to STM32 and working on a custom board using the STSPIN32G4 to drive a 3-phase BLDC motor (max 1000 W). The board will be powered by a 7-cell Li-ion pack (max 29.4 V, up to 30 A). I would appreciate a general schematic review.Could you please check the following points:Debug interface – Is the STDC14 wiring correct? I want to use the STLINK-V3SET Debugger!Power routing – Are VDD_3V3, VDDA, VREF+, REGIN, and VCC connected properly and decoupled with the correct capacitors?Decoupling – Can any of the VDDA / VREF+ / VDD capacitors be safely reduced?TVS diode on VM – For the 29.4 V input, should I use a unidirectional or bidirectional TVS diode at the VM input? I’ve seen both approaches online but not sure which approach is best practice. RFM69 supply – Is it safe to power the RFM69 from VDD_3V (internal LDO), given ~140 mA peak and ~10–30 mA continuous (≈1% duty cycle), noting the STSPIN32G4 LDO is limited to 150 mA?SPI pin conflict – All SPI1, 2, 3 pins
Hi. I'm trying to read data from w25q64. When i erase and write the chip and then read it, i receive true data.But when i only read data, my chip is blank and i receive 0xFF.Is my chip still blank or i wrote the chip correctly?Why don't i receive true data when i only read it?
In stm32l4_hal_flash.h: #if defined (STM32L4P5xx) || defined (STM32L4Q5xx) || defined (STM32L4R5xx) || defined (STM32L4R7xx) || defined (STM32L4R9xx) || defined (STM32L4S5xx) || defined (STM32L4S7xx) || defined (STM32L4S9xx) #define IS_OB_USER_TYPE(TYPE) (((TYPE) <= (uint32_t)0xFFFFU) && ((TYPE) != 0U)) #elif defined(STM32L471xx) || defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L485xx) || defined(STM32L486xx) || defined(STM32L496xx) || defined(STM32L4A6xx) #define IS_OB_USER_TYPE(TYPE) (((TYPE) <= (uint32_t)0x1FFFU) && ((TYPE) != 0U)) #else #define IS_OB_USER_TYPE(TYPE) (((TYPE) <= (uint32_t)0x7E7FU) && ((TYPE) != 0U) && (((TYPE)&0x0180U) == 0U)) #endif The problem is that the L496/4A6 both have nSWBOOT0 and nBOOT0 option bits: #if defined (STM32L412xx) || defined (STM32L422xx) || defined (STM32L431xx) || defined (STM32L432xx) || defined (STM32L433xx) || \ defined (STM32L442xx) || defined (STM32L443xx) || defined (STM32L451xx
Hi, I'm using a Nucleo-F446RE Board and I'm trying to set up a basic DAC with DMA configuration without HAL-libaries.The configuration without DMA works just fine, I can measure correct voltages with my oscilloscope on PA4 as intended. My following DMA configuration sets the PA4 always on 0V, nothing happens.I checked the debugger and all registers are being properly set, DMA and DAC both have their clock and values.It just doesn't copy the values into DAC->DHR12R1. I also checked the Flags in DMA_LISR, but no error there.I'm probably missing somehow on how to start the whole process, so my last iteration of code tried to mess with software triggers. I also tried all combinations of PSIZE and MSIZE, as well as uint8_t and uint32_t arrays instead of uint16_t. I feel like I followed the stream configuration procedure from the reference manual, but I probably missed some small, gritty detail.Anybody got code for a similar MCU or sees the problem in my configuration? #inc
Hello , I want to run a BLDC motor (with hall sensors ), first I thought that STEVAL-PTOOL2V1 a plug & play control board .. I'm not a programing expert but I have a some basic knowledge .. how canI run the motor on this board ..kindly can some expliane it step by step?..Motor parameters : isNominal voltage 24 VNo load speed 9960 rpmNo load current 164 mANominal torque (max. continuous torque) 55.5 mNmNominal current (max. continuous current) 2.48 ATerminal resistance 0.727 ΩTerminal inductance 0.475 mHTorque constant 22.8 mNm/ASpeed constant 418 rpm/VThanks in advance
Hi everyone, dear.I have already managed to generate the necessary strings that represent the html pages, but I need to generate more complex pages. In the example that comes with CubeMX, it simulates a file system. How can I convert a small file structure to these headers?Thanks
2.0 of STMCubeIDE loads but is missing the New Project 'wizard' of 1.15:2.0 only allows a blank project to be created, but missing the graphic of the uP.1.15 allows wizard to run but then fails at the last step with error message something to do with embedded software, no matter what I try it always does the same. Is anyone having any sucess of getting this STMCubeIDE to actually run as its supposed to on a Mac?
Hi ST, i have one question for you. Could you please make "examples" more messy? Is it even possible? Lets see, i believe you can do it even worse. To be honest, i have never saw this nonsense and mess in my life. And i have also worked as ABAP developper. Have you ever heard about rule, that strongly recommends NOT to use "goto"? No? I thought so.Have you ever heard about spaghetti code? Because you created one really huge. That example about UsbX for Stm32u5 is awfull. Who did it? Intern? Student? What is wrong with you? Even renesas is now better than you.
Hi. I'm trying to read data from W25Q64 flash memory.These are my connections:And these are my SPI and RCC and GPIO settings:And these are my functions and main code:Using W25Q_ReadID function, i could read device ID.But i can't read data stored on device using W25Q_Read.these are my result that i think they're wrong:what's wrong with my code or configurations?
Hi everyone,This is a follow-up to my previous question about LED behavior on the STM32H755ZI-Q when using OpenAMP communication between CM4 and CM7.https://community.st.com/t5/stm32-mcus-boards-and-hardware/nucleo-h755-led3-not-turning-on-pb14-in-ipc-example/td-p/829379 While debugging why LED3 on PB14 was not turning on (assigned to CM7), I found a very unusual issue in the CM7 startup code generated by STM32CubeMX.CubeMX generates the following D2 domain clock readiness loop:timeout = 0xFFFF; while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) == RESET) && (timeout-- > 0));If I rewrite the loop explicitly:while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) == RESET)) { timeout--; if (timeout < 0) { Error_Handler(); } }then PB14 suddenly starts working normally.But here is the strange part:If I add any variable initialization before the loop, for example:timeout = 0xFFFF; while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) == RESET)) { timeout--; if (timeout < 0) { Error_Handl
Hi all,I've been in the process of switching from the GNU toolchain (which is working alright) to the ST-provided clang but I am having difficulties with the mentioned extension.The following has two links to two different branches of the same repository. First one uses GNU toolchain, and the other uses starm-clang:https://github.com/anttikes/usb-fm-radio/tree/mainhttps://github.com/anttikes/usb-fm-radio/tree/swap-to-clangdThe project can be built in both branches, and works correctly with the first but the latter one has a rather interesting problem with clangd. After configuring and building if you open e.g. "Core/Src/i2s.c" you can see an error message at the very beginning:"Unsupported option '-mcpu=' for target 'x86_64-pc-windows-msvc'".It seems as-if the cross-compilation settings for the clangd program are not set at all. For some reason it belives we are building for the host architecture.There is also a second problem with clangd, but it is related to the STM32CubeF0 repositor
Hi there,I am trying to add the STM32WL3xx chips to embassy-rs and for that I need to be able to generate the peripheral data. They use the SVD files for that information.I was able to find the SVD files for the STM32WL30, WL31 and WL33, but the ones I found seem to be lacking almost all `enumeratedValue` that are present in the other SVD files I could find of other chips. Instead it seems to be described in the description fields but that it way harder to parse.Are there SVD's available anywhere with the data in a way that is it more parse-able?Kind regards
I am facing an issue with my Nucleo-F446RE board. It was working normally before, but now when I connect it via USB, the ST-Link LED lights up red, and I cannot upload code, nor does STM32CubeIDE recognize it. I tried updating the ST-Link firmware using the ST-LinkUpgrade tool (STSW-LINK007), but the program displays an error message: "No ST-Link device detected. Please connect it and then retry," even though the computer recognizes the ST-Link in Device Manager as "STMicroelectronics STLink Virtual COM Port (COM6)."I have verified that the CN2 jumper settings are enabled (ON).I cannot install the drivers or update the firmware because neither ST-LinkUpgrade nor STM32CubeProgrammer recognizes the board.I kindly request your help to identify the reason why ST-Link is not being detected and how to resolve this issue.Thank you in advance for your assistance.
Hello ST experts,I have a weird experience with UART communication between two STM32G4 microcontrollers. MCU1 sends 10 bytes to MCU2 via UART. Both UARTS are configured with 9600 Baud rate with DMA in circular mode. The Problem arises when the MCU1 is turned on, it sends 11 bytes which the first byte is 0x00 in case I need only 10 bytes to be received. Can you help me in this issue?Best,Davood.
Hello,In the AEK-POW-BMSCHAIN example code, I see high-level APIs like: AEK_POW_BMS63EN_GetModule() AEK_POW_BMS63EN_init()But in my AutoDevKit installation, only low-level chain APIs (AEK_POW_BMS63CHAIN_*) are available.Could you clarify:Are the high-level AEK_POW_BMS63EN APIs included in the public AutoDevKit package?If not, are they only available via partner/NDA packages?Should regular users implement high-level functionality using only the low-level APIs?Thanks!
I’ve been trying to run an SPI loopback test, but my code gets stuck in the transmit function. The data never actually transmits, so the function waits indefinitely. When I checked the SPI clock pin with a logic analyzer, it remains low. I also verified the peripheral clock in the SFRs, and it shows that the SPI clock is enabled.For the hardware setup, I connected MOSI to MISO with a jumper wire.I’ve attached images and included the full code—please take a look and help me figure out what’s causing the issue. One more note: I’ve used the same configuration in previous projects and it worked fine, but now it suddenly doesn’t.If the information I’ve provided isn’t clear or sufficient, I apologize—please let me know, and I can share more details./* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @at
Hello,While testing FOC operation using Hall sensors in MCSDK, I encountered an issue that I’d like to discuss.When attempting low-speed BLDC control (around 100-200 RPM) with FOC, the electrical angle updates discontinuously at 60-degree intervals, as shown in the graph below. If I first apply a high-speed/high-torque command so that HALL can interpolate the electrical angle and then switch to low-speed control, the problem is resolved. However, this approach becomes challenging when the motor is under heavy load.Is there any method or idea to make the motor run smoothly at low speed directly from a standstill without going through this intermediate process?Additionally, it seems that in 6-step control, users can only specify a speed reference. Is there any way to set a current (torque) reference without modifying the core MCSDK code? If this feature is not currently supported, I’m curious whether there are plans to enable 6-step control via current reference in the future(in case som
As the subject says. searches over many hours have resulted in several different ways to do this, none of which work.The CLOSEST ive gotten to a reaction out of a textbox outsode of some event is to break the rules, and *** with the autogenerated code. All that resulted in was getting the box to change to "??" which as crazy as it sounds, progress, because I have yet to figure out what methods to call to do this seemingly simple thing.From the documentation: touchgfx::Unicode::strncpy(textArea1Buffer, "string", TEXTAREA1_SIZE); textArea1.resizeToCurrentText(); // optional, will resize the box to fit the text if it is too small textArea1.invalidate(); This does absolutely nothing. Again, from the documentation: // With int/double/UnicodeChar* touchgfx::Unicode::snprintf(textArea1Buffer,TEXTAREA1_SIZE,"My numbers %i %i", my_var_1, my_var_2 ); // With float touchgfx::Unicode::snprintfFloat(textArea1Buffer,TEXTAREA1_SIZE,"My float %f", my_var_float ); textArea1.in
Hello, Microsoft has updated their Visual Studio Marketplace Terms of Use to bar vscode forks from using extensions from their marketplace. I'm currently using the Cursor IDE, which has recently switched over to open-vsx.org for their extension marketplace and thus, I no longer have access to STM32 for Visual Studio Code extensions.Are there any plans to cross-publish the official STM32 for Visual Studio Code extension over to open-vsx.org?
Hi, everyoneI recently encountered a strange phenomenon. I opened three DMA channels on the STM32G474RBT6.The first one is Channel 1 of DMA1 (circular mode), which is used for automatically collecting the data converted by ADC.The second one is channel 8 of DMA2 (normal mode), which is used to transfer the calculated data to the timer for updating the PWM.The third one is Channel 1 of DMA2, which (normal mode) is used to send serial port data of variable length. The first two did not enable the interrupt service function.But if the DMA in the third case does not enable the interrupt, the serial port sending process will be stuck (the HAL library shows that the DMA2channel1 is in the “BUSY" state). If the interrupt is enabled, this situation will not occur.However, the interrupt service of the first two I didn't enable DMA can still run normally. The data of the ADC can be automatically transmitted, and the timer can also send out the correct PWM signal. The priority of DMA has already
In my embedded software project, I need to write a bootloader. I wrote an application code for the bootloader and testing, and everything is fine so far, but the delay function in the application code is not working. I think the reason for this is the Vector Table. I wrote the vector table to the RAM address, but it didn't work at all. It jumps to the application code, turns on the LED, but does not toggle. I would really appreciate your help. (STM32f030c8t6 board)#define APP_START_ADDRESS 0x08006000 // User application start address #define APP_START_ADDR 0x08006000 #define SRAM_BASE_u 0x20000000 #define VECT_TABLE_SIZE 0xC0 // 48 vectors * 4 bytes void JumpToApplication(void) { // 1. Dsiable all interrupts __disable_irq(); // 2. Deinit HAL and RCC (optional if bootloader did init) HAL_DeInit(); HAL_RCC_DeInit(); // 3. Copy vector table memcpy((void*)SRAM_BASE_u, (void*)APP_START_ADDR, VECT_TABLE_SIZE); // 4. Remap SRAM to 0x00000000 SYSCFG->CFGR1 &= ~SYSCFG_CFGR1_
I have tried to import example project, in that after selecting example and board then it tried to unzip the required F4 packages(stm32cube_fw_f4*) but 1280 is unzipped successfully but 1283 cant unzip this error remains what to do to solve this?
Hi everyone,I'm new to STM32 solutions. My goal is to use the RTC Wake-Up Timer (WUT) to wake the MCU from Standby mode. I'm starting with a simple test:Cold Boot - Program the WUT to wake the MCU in 5 seconds and enter Standby.Warm Boot - Blink an LED, increment a counter (in BKPSRAM), and go back to sleep for 5 more seconds.The Problem: The MCU enters Standby, but it never wakes up.I am calculating the WUT for ck_spre (256 Hz) as follows: wakeup_counter = 5 (seconds) * 256 (Hz) = 1280.HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); MX_RTC_Init(); if (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) { // LSE FAILED! while (1) { //(error) HAL_GPIO_WritePin (LED_RED_GPIO_Port, LED_RED_Pin, GPIO_PIN_SET); HAL_Delay (100); HAL_GPIO_WritePin (LED_RED_GPIO_Port, LED_RED_Pin, GPIO_PIN_RESET); HAL_Delay (100); } } uint32_t time_wkp_seg = 5; uint32_t wakeup_counter = time_wkp_seg * 256; if (__HAL_PWR_GET_FLAG(PWR_FLAG_SBF) != RESET) { // 1. Woke up from Standby // 2.
I would like to add a custom resolution hdmi display (1024x600) to my STM32MP257F-DK board is it possible as the dmesg output is as follows [ 930.525408] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:32:HDMI-A-1] [ 930.590130] stm32-display 48010000.display-controller: [drm:update_display_info.part.0] [CONNECTOR:32:HDMI-A-1] ELD monitor [ 930.590170] stm32-display 48010000.display-controller: [drm:update_display_info.part.0] [CONNECTOR:32:HDMI-A-1] ELD size 20, SAD count 0 [ 930.590208] stm32-display 48010000.display-controller: [drm:update_display_info.part.0] [CONNECTOR:32:HDMI-A-1] ELD monitor [ 930.590223] stm32-display 48010000.display-controller: [drm:update_display_info.part.0] [CONNECTOR:32:HDMI-A-1] ELD size 20, SAD count 0 [ 930.591397] [drm:drm_mode_debug_printmodeline] Modeline "1024x600": 60 49000 1024 1072 1168 1312 600 603 613 624 0x48 0xa [ 930.591421] [drm:drm_mode_prune_invalid] Not using 1024x600 mode: CLOCK_RANGE [ 930.591433] [drm:drm_mo
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.