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
QuestionI implemented a custom bootloader with USB DFU. It worked without issues on my Windows 10 computer. After switching to a Windows 11 machine, however, my DFU device is no longer recognized.What I’ve triedConnected the device again on Windows 10. It appears in Device Manager, plays the connection/disconnection sound, and read/write operations work with STM32CubeProgrammer. This confirms that neither the bootloader nor the USB cable is the root cause.Installed STM32CubeProgrammer on Windows 11, but it reports “No DFU detected.”On Windows 11, there is absolutely no activity related to the DFU device in Device Manager. Other DFU devices, such as the STLink, are listed and working correctly.RequestWhat steps can I take to get my DFU bootloader detected on Windows 11?
Nucleo Board STM32F401RE , STM32CubeIDE 1.19 16x2 LCD confirmed to be working using Arduino UnoHi, I am just starting with STM32 and trying to figure out my way around it after using Arduino Uno for a long time for simple projects with sensors. I installed IDE , created a new project, selected my board from the first menu and so far everything is OK. I generated code without changing anything related to clock or the pin out. The problem is that even though I have not added any code to the project, the IDE opens a different c file every time I upload code, sometimes with a HAL in the name other times it opens this file startup_stm32f401xe.s and highlights this line ldr sp, =_estack /* set stack pointer */I went back and enabled the builtin green LED and added 2 lines in the while to toggle it every 500ms, then uploaded the code but weirdly even after the upload is finished sometimes the LED would start toggling on and off but on the next upload it wouldn`t. the exact
stm32-hotspot BOOTLOADER_USB_MSC_STM32G0 can be used as a good starting point for a USB MSC bootloader. The provided examples work, but if the application size increases, the bootloader will be erased, finally causing a hard fault.It took a me while to find the reason: After loading the application the bootloader erases the unused flash memory. Due to an error in line 145 of main.c the wrong number of flash pages to erase is calculated:flashErase.NbPages = flashErase.Page - 24flashErase.Page is the first page to erase. For small application sizes the number of pages to be deleted will be small enough to not exceed the bank size and everything seems to be fine. But if the application size exceeds about 104K, the number of pages to be erased will get large enough to wrap around and also erase the boot loader. To calculate the correct number of unused pages, flashErase.Page should have been subtracted from the total number of pages.I didn't test what happens if the app
My freshly arrived and assembled STEVAL-ROBKIT works well in Autonomous and Follow-Me mode but not in Drive. Nor does the "lock" toggle seem to do anything. Lock does not stop Follow-Me if activated. Any ideas?John FergusonSt Petersburg, FL
../Middlewares/ST/touchgfx/framework/include/mvp/MVPApplication.hpp:22:10: fatal error: new: No such file or directory how to solved this? cubeide 2.0.0 GNU Tools for STM32 (14.3 rel1)
Hello ST team,I am currently trying to deploy an rPPG (remote photoplethysmography) model to the STM32N6 using the ST Edge AI Developer Cloud.My model’s input tensor has the following 6-dimensional shape:(B, 8, 3, 36, 36, 3)B = batch size8 = temporal frames3 = feature channels36x36 = spatial resolution3 = RGB channelsI uploaded a fully quantized ONNX model (int8_qdq.onnx) through the web UI and ran Analyze using a custom profile.However, the analysis fails with the following error: ST Edge AI Core v2.2.0-20266 2adc00962 WARNING: Unsupported keys in the current profile n6-allmems-O3 are ignored: memory_desc > memory_desc is not a valid key anymore, use machine_desc instead INTERNAL ERROR: Unexpected combination of configuration and input shape To help reproduce the issue, I have attach
In the linker script provided by STM for STM32G474RETx, the memory section is:MEMORY { CCMSRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 32K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K } But in the reference manual RM0440 section 2.4 page 88 it states that:Category 3 devices feature up to 128 Kbytes SRAM:• 80 Kbytes SRAM1 (mapped at address 0x2000 0000)• 16 Kbytes SRAM2 (mapped at address 0x2001 4000)• 32 Kbytes CCM SRAM (mapped at address 0x1000 0000 and end of SRAM2)I'm confused as to why the RAM is declared as 128K when that's the combined total of SRAM1 + SRAM2 + CCMSRAM, and there's also CCNSRAM declared separately. Is it so that RAM covers all SRAM but you can also place specific things in the CCMSRAM section?
Hello, I've to receive three continuous signals from the channels like x,y and z through ADC's. For receiving those three channels i used 3 separate ADC's like ADC1,2 and 3 for X,Y and Z respectively. The X data is coming at the rate of 8.2ms But the Y and Z data's are coming at the rate of 16.02micro seconds. By using three different adc's for receiving these values and how can i store it in a DMA Buffer. By the way i tried so many methods like TRGO Timer interrupt for every 3.2micro seconds to trigger the ADC to sample and store the data. First i tried by taking only one adc and connected the Y signal, even though so many samples were missing in between. Assume like i've to receive 0-4096 kind of data's. But i'm receiving like 512,514,517,912,978,946,1233,1242,1256... This is the format i'm reading the data from my DMA buffer from live expressions option.In ADC Configurations, I've tried with enabling the Continuous mode by setting it as enabled and disable. The data is not coming in
I am using STM32H750B-DK (DK32H750BSAT1). Following st tutorial in:https://www.youtube.com/watch?v=dx7xHRH9YXg The project built and ran successfuly on the board. Unfortunately upon implemeentig the updateDate on a textArea the update stopped completely for both time (was originaly uopdating before adding the text widget) and date. I have then deleted the textArea widget and commented out the relevant lines in the script, the update returned normally. I suspect the typogrphies is the root cause of the problem (I need advise on that. MyGFX is 4.26.0 , I couldn't get my way around Texts smoothly).
We have TOF data collected every half hour, but we are surprised by the results, as the TOF data is not consistent each time.
We are developing sensing device with using VL53L0X, we will use optical lens on top of VL53L0X for special sensing purpose then in order to optimize lens design with effecive sensing, we would like to know dimension of both sensor and emitting chip sizing and distance from Chip to upper casing,
Hello Folks,I am facing an issue while controlling a BLDC motor using the STEVAL-ESC002V1 board. ST provides a reference firmware for this board which includes the 6Step Library for motor control. The firmware exposes functions such as:MC_StartMotor()MC_StopMotor()MC_Set_Speed()According to the documentation, these APIs should allow setting and controlling the motor speed.I had paste the code which is written by me in main while loop. (For Reference)ISSUE:1. when the val(ADC value) goes above the 300, still the MC_StartMotor(), is not getting enable. Motor didn't run.2. If I make changes into my code, delete by everything in the while loop and just try to run the motor at 10000rpm, by function MC_StartMotor() and MC_Set_Speed(10000).As result of it as motor make a sound and vibration, not working smoothly.hey it would be helpful to me, if someone help me to resolve this issue./* Includes ------------------------------------------------------------------*/ #include "main_32F0.h" #includ
Hello,WORKING ON : STM32H753I am looking to implement a jump from one application to another on an STM32H7 (Cortex-M7), so that the new application starts as if the microcontroller had just been reset: MSP initialized, VTOR set, caches (and MPU maybe?) correctly managed, peripherals reset, SysTick and IRQs disabled.Knowing that my APP1 is a custom bootloader at address 0x08000000 and my APP2 is my main application with lots of peripherals, timers, DMA, etc. at address 0x08020000.I tried many sequences to make a jump without crashing.My jump from APP2 (app) to APP1 (bootloader) seems to work without bugs: //disable interrupts __disable_irq(); //disable Systick SysTick->CTRL = 0; SysTick->LOAD = 0; SysTick->VAL = 0; //deinit HAL_RCC_DeInit(); HAL_DeInit(); // __enable_irq(); // vide cache SCB_DisableICache(); SCB_DisableDCache(); __DSB(); __ISB(); // je définis ma table des vecteurs au début de mon IAP donc à IAP_ADRESS (0x08000000), ave
Edited by a ST moderator. In next time please use English language. 在STM32CUBEIDE中配置STM32F103C4完以后直接编译出现《没有 “huart2() at 0x20000108” 对应的源文件》不知道该如何把huart导入到编译器的路径下 Translation: After configuring the STM32F103C4 in STM32CUBEIDE, I encountered the error "No source file corresponding to 'huart2() at 0x20000108'" during compilation. I don't know how to import the huart2() file into the compiler's path.
I created default project with FreeRTOS in STM32CubeMx for the board Nucleo-H563ZI. Nothing more added.Hard Fault is invoked at vRestoreContexOfFirstTask.I was looking for the solution in Copilot and Perplexity but without success. Only I can say it's probably no problem with stack overflow.Jan
Hi there,I have a DIY board similar to EVSPIN32G4. Below is the three-shunt sensing circuit(In internal OpAmps, differential, external gain mode)Because the STSPING4 doesn't support internal OpAmps, differential, external gain mode, I just use the below config to generate the project(seems differential or single-end does not influence the code, yes?), see the project in the attachment: And because the EVSPIN32G4 project's encoder and hall sensor use the same GPIO, I only enable the encoder in the MCSDK project.After generating the code, I added the hall signal pin in STM32CubeMx and then compiled the MDK project successfully.I added some code trying to find out why the motor isn't working:uint8_t MC_GetHallValM1(void) { uint8_t M_Hall_val; M_Hall_val = (M_Hall_val & 0xFE) | HAL_GPIO_ReadPin(M_HALL_U_GPIO_Port, M_HALL_U_Pin); M_Hall_val = (M_Hall_val & 0xFD) | (HAL_GPIO_ReadPin(M_HALL_V_GPIO_Port, M_HALL_V_Pin) << 1); M_Hall_val = (M_Hall_val & 0xFB
My nucleo f303re board was connected via USB but I was using a resistor around 2.2kohms to 5V. This was fine though and it functioned as normal but when I disconnected the pins on the MCU to move it, reconnecting it back resulted in nothing. While troubleshooting, I realised that if I connected the USB cables to the MCU's usb pins, device manager was showing an unknown usb device even without any resistors in place. This did not happen before while it was working and I realised this was due to PA12, DP, which was the pin pulled high, is now constantly at 2V when the MCU powered on. Now I am not sure if this is normal but I am quite confident in saying that this is not normal and is the reason this is not working anymore. If it's helpful, I know PA12 is at 2v because I measured this with a multimeter. I suspect that whatever I had done cause damage to PA12 and the usb board is fried. Is this theory wrong or is there no hope for this board. Perhaps there is a way to use other pins f
Hello there I am struggling with receiving interrupts on my microcontroller project. I am currently developing a CAN bus logging device; the following code therefore sets up the CAN peripheral in silent mode. I test my device in a CAN network with two other devices that are constantly communicating with each other. I have verified that the CAN messages appear at the CAN Rx pin of my MCU using an oscilloscope.However, my CAN Rx interrupts won't fire. I tried some fixes from other posts, but unfortunately, neither of them worked for me. My setup is as follows:>> MCU: STM32L432KCU>> CAN receiver ISO1044BD>> Vdd = 1.8 V (the MCU and the CAN transceiver are both running on this level).>> IDE = CubeIDEHave any of you ever had to tackle this problem?## Here is the can.c file that was automatically generated by the CubeIDE, in which you can see the CAN initialisation. /* USER CODE BEGIN Header */ /** ************************************************
Hello Yes here we go again… I’m again busy with the implementation of PTP slave inside STM32H7, based on this GitHub: https://github.com/hasseb/stm32h7_ptpd I tried to port this to my own project based on STM32H7, I changed what was mentioned in the readme. And look inside the helper files to modify the necessary HAL stuff. After all this, everything is compiling, but it doesn't work… My setup: PTP master is Magwell Pro Convert AES67 and act as master, this master is sending all the necessary packets on the ethernet. Checked with Wireshark. When I run the PTPD in slave mode I get this output: (V) handle: something (d 1162345242.829138544) handle: ptpd_net_recv_event returned 0 (d 1162345242.834921492) handle: ptpd_net_recv_general returned 44 (d 1162345242.840950789) handle: unpacked message type 8 (d 1162345242.846096992) handle_followup: received in state PTP_UNCALIBRATED (d 1162345242.853011945) ptpd_servo_update_offset (V) ptpd_servo_update_offset: ingress_timestamp 875418629 secon
I am flashing a code to write into the last sector of the flash memory of STM32F401 Nucleo Board, for the first time the code was successfully dumped into the flash but while dumping it the second time this error pops up, whenever i mass erase the whole flash it again works properly but the second it doesn't. I even tried using different sectors but the issue was still there.What might be a possible solution of this error.I am attaching the snapshot of the error and the code snippet as well.uint32_t Flash_Write_Data (uint32_t StartSectorAddress, uint32_t *Data, uint16_t numberofwords) { static FLASH_EraseInitTypeDef EraseInitStruct; uint32_t SECTORError; int sofar=0; /* Unlock the Flash to enable the flash control register access *************/ HAL_FLASH_Unlock(); /* Erase the user Flash area */ /* Get the number of sector to erase from 1st sector */ uint32_t StartSector = GetSector(StartSectorAddress); uint32_t EndSectorAddress = StartSectorAddress + numberofwords*4; uint32_t
Title edited to clarify "donut board"I would like to connect the LM324(below) to the STM32F103C8T6 on a donut board, purpose to read four IR receivers. VR with highlight T shape is preset 103. IR1, IR2, IR3, IR4, 5V and ground will connect to a 6 pin header, connect to another donut board which contains only 4 groups of IR transmitters and receivers.My task is without jumper wires connect them together but I can’t connect it due to the preset 103 make the circuit too messy. Can anyone help me please.:folded_hands:
Hello,I updated to Mac15 (MacOS Sonoma Public Beta), which was probably a mistake. Now I get an error from STMCubeIDE when I try to run indicating "ST-Link Server is required to launch the debug session" and to Please download it on www.st.com. I figured something changed in the OS that no longer makes the ST-Link Server run any more.However when I try to download it, I get essentially a broken link, or at least it simply wont download. Even worse, the web page with Safari seems entirely broken and I cant even get a download to start after accepting the license, but with FireFox I get further, I get but still wont download and the link seems broke.I can still flash using the STM32CubeProgrammer fortunately (using 2.13.1).Can anyone tell me how to download this ST-Link Server? Or if there is an issue with the last MacOS and this and there is no fix?
I have designed a board with STM32H750B-DK With exact same pin configuration with QSPI amd SDRAM connected exactly to the reference board.QSPI is running properly by viewing using STM CUBE Programmer (External loader selected)But when I am using touchg GFX sample code it gives Hardfault error I believe that SDRAM is failing. (I have removed the touch screen routine to check the flow of code)
Hello, I have a project using the spirit MP3 Decoder. I am in the process of moving this project over to a FreeRTOS based project using the STM32F411. FreeRTOS only supports hardware floating point for this chip and the spirit MP3 decoder is provided as a library only supporting software floating point. What is required for me to get a new build of the Spirit MP3 deocder re-compiled supporting hardware floating point?Can ST provide this re-compiled library?ThanksStuart
HiWhen I migrated by project to ST Cube IDE v2 this morning, my CM4 project would not link. I had to right-click the project and "convert to C++" (even though I had been using C++ for months with previous versions).Using a Nucleo STM32H755 as a target (dual core), my project is configured as follows:CM4 is using C++, and using Free RTOSCM7 is using C, and only using the HAL Steps TakenUpgrade the IDE from v1.19 to 2.0Install latest Cube MXOpen my workspace, and chose to "migrate" when promptedDouble click the .ioc file, fix an issue (related to CAN which I am not using) and re-generate the codeReturn to the IDE, and try to clean and build the CM4 project. I get linker errors. ResolutionRight-click the CM4 project and select "Convert to C++". (In v.19 the only available option was "Convert to C")Clean and build. Maybe this is a bug in the project migration process? Could it be specific to dual-core, where only the CM was configured for C++? CheersNick Outram&nb
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.