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
Hi, I don't know where to post this message. There's an error in the RM0090 Rev21 reference manual, page 121: "bit 15 of the PWR_CR register" should be "bit 14 of the PWR_CR register". And most importantly, the debugger doesn't have bit 14 (VOS) of the PWR_CR register. I'm using an STM32F407ZET. I downloaded the archive https://www.st.com/resource/en/svd/stm32f4-svd.zip, and this bit is indeed missing from the STM32F407.svd file! Please email whoever needs this information, and have them fix it.
For the STM32MP135 series, specifically the STPMIC1A I'm using, can VDD_CORE and VDD_CPU share the same power rail (buck1)?
Hello,I am converting from Arduino to STM 32 Cube IDE. Here I have a Problem with include paths:What I want:- Develop Libraries in a special folder- Add the libraries as a LINK to the Cube IDE- use #include command to include the library into the project What I have done:- I made a new Project "Blinky" in the cube IDE - done- I selected a nucleo board in the cube IDE - done- I programmed a hello world blinky using HAL without libraries - done.So the environment and the board is running.- right clicking on the project I created a new source folder "MyLibs"By drag and drop I copied my library called "After" folder into the new MyLibs folder. Answered the message by "copy link only" into the new folder "MyLibs"The copied folder "After" contains an other folder "src" where the source files are located. Here a picture of the project: Now I go to properties and set the include path to the directory /MyLibs/After/src/: The second line indicates that I have included the di
Hi,Having successfully installed SW4STM32 I recently tried to build the example project detailed on the RIP Tutorial web page entitled "First time setup with blink LED example using SW4STM32 and HAL library". This "threw up" four errors. The first was classed as a fatal error whilst the other three errors involved "make" which I believe are due to the first error.Within the IDE, on the "Problems" tab, the first error is listed as follows.Description: fatal error: usbh_conf.h: No such file or directoryResource: usbh_conf.hPath: /STM32F4_Discovery_Blinky/Middlewares/ST/STM32_USB_Host_Library/Core/Inc line 28 C/C++ ProblemWithin the ".../Inc/" directory is a further subdirectory called "usbh_core.h" within which is the "offending" (non-existent?!) usbh_conf.h This header file is clearly listed on both the Project Explorer and Outline tabs within the IDE. Opening this file shows the following. (How could this be done if the file did not exist ?!) /** **********************************
I have five projects on the go, which compile and debug well on STM32CubeIDE 1.X.X (at least for 1.12.0+), but with warnings. I am now trying to shift to more recent versions of CubeIDE (2.X.X), but they behave as if ">Properties>C/C++Build>Settings>Tool Settings>MCU>MPU GCC Compiler>Warnings>Treat warnings as errors (-Werror)" is enabled, even when it is not.I believe that my settings in the more recent CubeIDE are identical to the older one, and I have tested this on two different computers with similar results. The error which is currently causing the compilation to halt is " ...error: implicit declaration of function 'xxxxx' [Wimplicit-function-declaration]", but if I resolve it, another item which should be a (legitimate) 'warning' will appear as an 'error'. I am using "ISO C11 (-std=c11)", and have the same issue if I attempt to use GNU11.Unfortunately, I cannot resolve all the warnings without creating other problems, so this issue is preventing me f
The integrated ST-Link debugger/programmer on STMicroelectronics NUCLEO boards is widely appreciated for its ability to output messages to a serial port, enabling easy debugging and communication with host PCs. However, setting up the board to not only send but also receive commands from PC-based applications such as Tera Term requires additional programming effort. This guide will walk you through the steps to implement bidirectional serial communications, allowing your NUCLEO board to interact dynamically with your computer.
Hi, im doing a line follower and using the mcu stm32 f411, its a small development board arduino nano style, and i conected it to the motor driver tb6612fng, and it seems to have backfeed motor suply voltage on the logic pins and it burned my mcu.My question is how to prevent this?
Hi all,I recently designed and built a custom PCB for data acquisition and transmission through bluetooth using an STM32U575 as the main MCU and a BlueNRG-M2SA module for bluetooth data transmission configured as a Network Coprocessor. They are connected via SPI following the pinout on the BlueNRG-M2 datasheet and also looking at the X-NUCLEO-BNRG2A1 schematics. The BlueNRG-M2SA is connected to an external connector via SWD for flashing using an STLink-V3Minie. Resistor R13 is not usually soldered and is just used to enable the bootloader during image flashing. Schematic for the BlueNRG-M2 on the custom PCB provided below:The problem is that I have not been able to achieve communication between the STM32U575 and the BlueNRG-2 module as whenever the main MCU waits for the IRQ signal from the BlueNRG-M2, it doesn't receive any and therefore returns BLE_STATUS_TIMEOUT and gets stuck after aci_hal_set_tx_power_level() during Device_init(). I have tried uploading different DTM ima
Hello, I have designed a custom PCB for sensor acquisition and I am using an STM32U575 as main processor and then a BlueNRG-M2SA module configured as a coprocessor with the DTM_SPI.hex image. They are both connected through SPI but I can't seem to get past the verify_packet() function. I attach a zip file with my STM32 project in which I am using the X-CUBE-BLE2 middleware with the beacon application and HCI_TL set to Basic and HCI_TL_INTERFACE to UserBoard.My SPI is configured with polarity set to low, 1 edge clock phase and with a frequency of 1MBit/s.The problem I am having is that it seems like the packets I am receiving through SPI don't make sense completely and they seems to be a bit off. I have measured the SPI signals and the received header is {0xFF,0x09,0x01,0x06,0x00}. The measured signal is shown below together with the clock and the rising edges marked The data received after the header is {0x04, 0xFE, 0x06, 0x02, 0x00, 0x02}. The following image shows the
Hello, I hope to reach the appropriate contact regarding Country of Origin (CoO) information at ST.We have identified a conflict between the CoO listed on the website and other documents (such as PCN and the attached FMD chemical document). These documents indicate that the CoO for part STM32H523RCT7 is China, while the website lists the CoO as France.Could you please clarify this discrepancy and specify what the France CoO refers to? Based on our documents, the CoO China corresponds to the country of assembly.Your clarification on this matter would be greatly appreciated. Website CoO FRANCE : https://www.st.com/en/microcontrollers-microprocessors/stm32h523rc.html#sample-buy
hello team, I am facing a debug connection issue with STM32H723VGTx using STM32CubeIDE and ST-LINK.Issue details:MCU: STM32H723VGTxDebug tool: ST-LINK (OpenOCD via STM32CubeIDE)Interface: SWDReset mode: Software resetSWD frequency: 50 kHzObserved behavior:ST-LINK connects successfully.Cortex-M7 core is detected correctly.GDB server starts, but the debug session fails during memory access.Error message: Error: Failed to read memory at 0x5c001000 Error: auto_probe failed Error: Connect failedAdditional observations:Target voltage reported by ST-LINK is ~2.8 V.I already tried:Lowering SWD frequencyUsing software resetAdding monitor gdb_memory_map disable in debug startup commandsHalting on resetIssue still persists.Request:Could you please confirm:Whether this memory address (0x5C001000) access failure is related to power / AXI-D2 domain / debug configuration on STM32H723.If there are any recommended debug settings or patches for STM32H7 devices under these conditions.Whether mi
Hello Community,I tried with different boards (073, 093, 533, 401) to work with the SPI1 or SPI2.I used the examples, but there is no clock on an SPIx clock pin.e.g. HAL_SPI_Transmit(&hspi1, SpiData, 2, 100); Has anybody a working STM32Cube porject to load in the STM32CubeIdefor an SPI only master (no slave no DMA) in the send modus via MOSI pin.Thank youMichael
Hello everyone!I am currently working on a speaker project that gets audio data from a microsd card over spi and sends it over i2s with DMA.I noticed that the main issue is the latency from the sd card so i got the adivce to use a triple pointer ring buffer.I searched for implementations on triple buffering with i2s but couldn't find a single one.I tried implementing it but it didn't work.(i added the code file to the post)Does anybody have good resources to learn this?
A new STM32 sub-family (as part of the 'H5 family) came out. They have everything but the kitchen sink. As far as I can tell, 'H5E4 and 'H5E5 differ only in that the higher one has USB-HS with PHY (the 'H5Fx are crypto-enabled variants, as usually) What's new is also the PLAY peripheral, which is a small programmable logic element, fully documented and configurable through registers. It's based around 16 simple logic elements (4-input LUT and an optional register), complete with an extensive input multiplexer matrix+filter, interconnected to a variety of peripherals (timers, DMA, ADC...) and also GPIO. I wonder, if there's a Disco around... JW
After encountering an issue with a Hyperbus flash chip we moved our flash to what we thought would be a simpler OctoSpi Nor Flash. I am working with an STM32H7S7 chip with a NOR Flash S28HS512T. I cannot get the chip to communicate in the desired mode. Here are my steps so far:Configuration code from CubeMX:/* XSPI1 parameter configuration*/ hxspi1.Instance = XSPI1; hxspi1.Init.FifoThresholdByte = 4; hxspi1.Init.MemoryMode = HAL_XSPI_SINGLE_MEM; hxspi1.Init.MemoryType = HAL_XSPI_MEMTYPE_MICRON; hxspi1.Init.MemorySize = HAL_XSPI_SIZE_512MB; hxspi1.Init.ChipSelectHighTimeCycle = 3; hxspi1.Init.FreeRunningClock = HAL_XSPI_FREERUNCLK_DISABLE; hxspi1.Init.ClockMode = HAL_XSPI_CLOCK_MODE_0; hxspi1.Init.WrapSize = HAL_XSPI_WRAP_NOT_SUPPORTED; hxspi1.Init.ClockPrescaler = 3; hxspi1.Init.SampleShifting = HAL_XSPI_SAMPLE_SHIFT_NONE; hxspi1.Init.DelayHoldQuarterCycle = HAL_XSPI_DHQC_ENABLE; hxspi1.Init.ChipSelectBoundary = HAL_XSPI_BONDARYOF_NONE; hxspi1.Init.MaxTran = 0; hxspi1.In
Hello,I want to use the TW9992 NTSC/PAL Video Decoder for STM32N6 to transfer an NTSC camera (720x480 resolution) to the MCU via MIPI-CSI and display it on the screen. I have attached the code below.static void MX_DCMIPP_Init(void) { /* USER CODE BEGIN DCMIPP_Init 0 */ /* USER CODE END DCMIPP_Init 0 */ DCMIPP_CSI_PIPE_ConfTypeDef pCSI_PipeConfig = {0}; DCMIPP_CSI_ConfTypeDef pCSI_Config = {0}; DCMIPP_PipeConfTypeDef pPipeConfig = {0}; /* USER CODE BEGIN DCMIPP_Init 1 */ /* USER CODE END DCMIPP_Init 1 */ hdcmipp.Instance = DCMIPP; if (HAL_DCMIPP_Init(&hdcmipp) != HAL_OK) { Error_Handler(); } /** Pipe 0 Config */ pCSI_PipeConfig.DataTypeMode = DCMIPP_DTMODE_DTIDA; pCSI_PipeConfig.DataTypeIDA = DCMIPP_DT_RGB565; pCSI_PipeConfig.DataTypeIDB = DCMIPP_DT_RGB565; if (HAL_DCMIPP_CSI_PIPE_SetConfig(&hdcmipp, DCMIPP_PIPE0, &pCSI_PipeConfig) != HAL_OK) { Error_Handler(); } pCSI_Config.PHYBitrate = DCMIPP_CSI_PHY_BT_1600; pCSI_Config.DataLaneMapping =
I'm trying to download Cube MX, Cube Programmer, and Cube IDE. I registered and activated the license, but it won't download. I've tried using different browsers (Chrome, Firefox, Edge) without extensions. I accept the License Agreement, but nothing happens. I tried it as a guest user, too, but it won't download. I really need the programs, what should I do?
I am currently working on the LoRaWAN_END_NODE example project for a stm32WL . And I want to receive external data via uart and use the LoRaWan process continually, however I am getting problems. The UART is giving invalid data after the sequencer is being initialized.Edit: I have tried the suggestions below, I have put the gps into a task for the sequencer to run. I have also disabled low power mode. I still get invalid data from the UART that I don't receive when the sequencer is not on.Is this a clock issue? Any ideas?
Hi,I created a blank project for STM32U5G9J-DK2 and in process of programming the board, GfxDesigner generates 400MB file intflash.elf. With GfxDesigner 4.24.1 it is 4MB.Why 4.26.1 generates intflash.elf so large ? A bug ?Thanks
***Update***This issue is solved and was due to improper wifi firmware upgrade. Topic can be closed. Hi STM Team, I have been having issues for the last week with connecting to the STWIN.box via wifi from both iphones and android phones for DATALOG2 v3.2.0. (And to some extent v3.1.0). The configuration of the wifi network does not work correctly when I attempt to send it from the app. The only way I could get it to work, is when I used the Python SDK with firmware version 3.1.0. I was able then to connect with FileZilla and view/download files.Please advise what the possible workarounds are with this issue as I need to use this sensor by connecting to it via wifi and downloading the data files via FTP server.The following is an AI-generated overview of the issue in more detail: Device: STEVAL-STWINBX1 (STM32U585AI) Firmware tested: FP-SNS-DATALOG2 v3.1.0 and v3.2.0 WiFi module: EMW3080 (firmware successfully upgraded per README instructions) App tested: ST B
I have a simple question. Is it possible to use TouchGFX+ThreadX with enabled Ethernet and NETXDuo SNTP client at a same time in STM32N6570-DK board? In other words: take the TouchGFX ClockExample then in CUBEMX enable the Ethernet port with NETXDuo-SNTP server. Will it cause pin conflict? I mean the Ethernet uses the same pins as LTDC. I enabled the Ethernet in ClockExample project and I got blank screen and the app was frozen. After removing Ethernet from the project, the analog and digital clocks appeared again on the display. Thanks, Louis
Good day,I am writing firmware for a custom board using the STM32G0B1KET6 and am experiencing issues related to writing a serial number to the internal flash.As far as I can tell, this MCU has 512 KB of flash split into 2 banks of 128 pages (each page is 2 KB). I am attempting to write to the last page of the first bank (Page 127 @ 0x803F800).I have modified the linker file to reduce the flash area used by my application code like so:MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 144K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 64K }Here is my flash writing function. uint8_t Flash_Write(uint32_t startAddress, uint64_t data) { __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR); __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_BSY1); __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_BSY2); __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGSERR); __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGAERR); __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_CFGBSY); if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_CFGBSY) == 1) { return 0; } HAL_StatusTypeDef status;
Hi All,I am beginner to drones. We assembled one drone using STEVAL FCU. 002. board , recommended set. of motors and. propellers along with battery. We Chose different. frame. than. one recommended . It is smaller in size. While flying , vertical take. off. could. not be achieved.Can someone guide please ?Motor connections , Clock wise. , anti clock wise in reference. to alignment. of. the boards are checked. already.It is ST board. so. come equipped with all driver , frimware etc.Thanks in advance.Early and accurate response is. appreciated.Regards,
Hi,We are looking for recommendations on a suitable topology and charge controller for charging a LiFePO₄ battery with the following requirements:Input voltage: 9–36 VDCOutput voltage: 10–36 VDCOutput current: up to 80 AWe understand that a single IC may not support this current level, so we are considering a parallel architecture using multiple controllers. Kindly suggest an appropriate approach and suitable IC options.Thanks,BK
hello ST Community,where can I set it to avoid generating the file "startup_stm32l5...zetxq.s" during compilation and debugging in the stm32CubeIDE environment and also how to avoid that the space bar "|" when editing the line of code of 'main.c' is automatically moved to the last line of code of 'main.c' during compilation and debugging. Where should I set it to avoid all this?Thanks so much for your support
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.