Developer support experience survey - We value your feedback
Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.
Most recent activity
Hi, I am planning to use STM32H5 series uController in one of our test card application, as part of it i am exploring different software offerings avaialble for that series.In doc, Embedded software solutions ST, 3rd parties and Open source (stm32-stm8_software_development_tools.pdf) page no8, has list of software solutions and list of MCU families where support is available.There is no H5 listed here.How i know Standard Peripheral libray, HAL, LL support for STM32H5 family?
ISSUE: STM32F7 Custom Bootloader - Main Application Not Running After JumpDetails:Bootloader Memory Definition: RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K QUADSPI (r) : ORIGIN = 0x90000000, LENGTH = 16M Application Memory Definition: RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K FLASH (rx) : ORIGIN = 0x8020000, LENGTH = 896K QUADSPI (r) : ORIGIN = 0x90000000, LENGTH = 16M Validation Points:Bootloader erase & write operations are working correctly.Custom bootloader successfully writes the application code to both internal and external segments.A test application that prints text ("I am application") works properly after jumping from the bootloader. Debug points : 1 > memory utilization by main application RAM : ORIGIN = 0x20000000, utilization = 320 K FLASH : ORIGIN = 0x8020000, utilization = 896 K QUADSPI : ORIGIN = 0x90000000, utilization = 5.18 M 2 > Jump steps after writing application (by custom bootlo
Hello.I have a custom board with STM32F750 MCU which has 64KB Internal Flash. Since the MCU's internal Flash is very limited i added external flash to board. I developed 2 different projects for Internal and External Flash. Internal Project starts with Internal Flash address. It omly includes Memory mapped init and jump codes to external Flash. External Flash Project starts with External Flash address(0x90000000). Application code stores in here.I need r/w internal or external flash's one page or sector as a eeprom. As i know, i can't write data to external memory because it is memory mapped. Can the application code(which stored at Ext Flash), write and read internal flash?
Hi,I am using STM32H743 nucleo board. I am looking to configure the USB interface as Audio Class 2.0 device. Is there any middleware available to achieve this?Does STM has any plan to support Audio Class 2.0 middleware? Current middleware only supports Audio Class 1.0.Thanks,Joyab
Hello,I am using freertos configured by STM32CubeMx.The IWDG is activated and configured by STM32CubeMx too.I met an issue in my code but this is not the purpose of this post.Due to this issue the STM32L431 stays blocked indefinitly despite the IWDG is activated!How can this be possible?I never met such a case when using other OS.Can freertos block IWDG?Best regardsMich.
Hi. Im using HRTIM and HAL in my project.To stop Master timer with subsequent interrupt call I use HAL_HRTIM_WaveformCounterStop_IT (it is defined in stm32_hal_legacy.h) and it calls HAL_HRTIM_WaveformCountStop_IT from stm32g4xx_hal_hrtim.c.Pic.1 shows how long it takes to process this function call, and it is enormous 27.94us.Yes, I know HAL is kinda slow and for maximum efficiency one should use direct registers call.I suggest the culprit is delay inserted in this function (variable called "delai"). HAL_StatusTypeDef HAL_HRTIM_WaveformCountStop_IT(HRTIM_HandleTypeDef *hhrtim, uint32_t Timers) { /* ++ WA */ __IO uint32_t delai = (uint32_t)(0x17FU); /* -- WA */ uint8_t timer_idx; /* Check the parameters */ assert_param(IS_HRTIM_TIMERID(Timers)); /* Process Locked */ __HAL_LOCK(hhrtim); hhrtim->State = HAL_HRTIM_STATE_BUSY; /* Disable HRTIM interrupts (if required) */ __HAL_HRTIM_DISABLE_IT(hhrtim, hhrtim->Init.HRTIMInterruptRequests); /* Disable
Hello, I am working on Ethernet with the STM32H753 board. After configuring the necessary Ethernet settings, I can ping the assigned IP address of the board. However, after a few minutes, I can no longer ping it. What could be the reason for this issue? I am using STM32CubeIDE version 1.17.0 and library version 1.12.0. Thank you for your help!
Hello, I can't get a USB connection with my stm32 cards, I tried several cards: Bluepill, Blackpill,STM32F429ZI-DISCO, NUCLEO-F767ZI. I still have the same problem "USN NOT RECOGNIZED",do I need to install a driver ?how can I solve the problem ?Best regards.Sébastien.
Hi ST Community,I’m working on a project where I need to implement an MQTT client on an STM32 microcontroller. Here’s my current setup:I have an MQTT broker running on my PC using Mosquitto.I’ve written a simple C program for publishing messages, and it works fine on my PC (with Paho library, i use visual studio).Now, I want to port this functionality to an STM32 board, but I’m not sure how to proceed.I’ve found some example codes online for MQTT on STM32 (https://github.com/stm32duino/STM32Examples/blob/main/examples/Communication/MQTT/PubSubClient/mqtt_STM32Ethernet/mqtt_STM32Ethernet.ino) , but I’m struggling with the initial configuration of the STM32 (I’m new to STM32 and haven’t worked with it before). Specifically:How do I configure the STM32 (using STM32CubeMX) to support Ethernet and MQTT?Are there any specific libraries or middleware (like LwIP) that I need to set up?How do I integrate the MQTT client code with the STM32 HAL (Hardware Abstraction Layer)?Could someone guide me
I'm using an STM32G071G8U6TR and a CP2102N-Axx-xQFN28 to communicate over USB. I am managing to get messages onto the STM32 but it seems that the first few characters of the message are coming through jumbled, #include "main.h" #include "UART_Polling.h" #include "stdbool.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN PTD */ /* USER CODE END PTD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ UART_HandleTypeDef huart2; /* USER CODE BEGIN PV */ /* USER CODE END PV */ /* P
I have an application with STM32F4 OTG configured as USB Host, MSC, using ST's USB Host middleware and FatFS. How should it respond to rising and falling edges on the OverCurrent signal, such as pictured below (from the STM32F429I-DISC1 schematic)? CubeMX config:
Hello,I'm using AzRTOS with FileX. Currently, I can detect when the SD card is plugged in, then I initialize the hardware, and call fx_media_open(). The filesystem works as expected.I can also unmount the media with fx_media_close(), and the user can pull out the card. That works.The problem is when the user pulls the SDcard when the media is open. I detect the card removal and try to call fx_media_close(), but that just hangs the system when calling fx_media_close(). Is there a special procedure needed to recover when the media is removed?thanksMatthew
Hello,I'm using AzRTOS with threadX and FileX. I have a thread with msg_queue that monitors the SD_Detect pin. The code works properly, I detect the card insertion/removal process. The problem is I need to re-initialize the SDMCC hardware so it can read the parameters off the SD card before I can mount the media. I tried calling MX_SDMMC1_SD_Init() which is defined in the main.c file, but the compiler says MX_SDMMC1_SD_Init is an undefined reference. app_filex.c has an include "main.h" at the beginning.in "main.h" I defined the routine:/* USER CODE BEGIN EFP */ void GetDateTime(void); static void MX_SDMMC1_SD_Init(void); /* USER CODE END EFP */in app_filex.c: /* check if we received the correct event message */ syslog(SYSLOG_NOTIF, "SD Card received queued event"); if (r_msg == CARD_STATUS_CHANGED) { r_msg = 0; /* reset the status */ /* for debouncing purpose we wait a bit till it settles down */ tx_thread_sleep(TX_
Hi, We are developing PD multiport design with TCPM/TCPC architecture, but we've come across a post of CPM stack should be no longer supported for newer products. https://community.st.com/t5/stm32-mcus-embedded-software/usbc-pd-tcpm-on-the-stm32u5/m-p/637207 We understand G series have replaced much of the PD functions. That aside, our question is: is there a reason that ST no longer support TCPM/TCPC style design, whether the trend is moving to obsolete this model?Thank you.
First, let's introduce the usage environment.The Board is STM32H747I-DISCO, the LCD board is MB1166-A09,and the pack is STM32Cube_FW_H7_V1.11.0.Now I'll describe my issue. In the official routine LCD_DSI_CmdMode_SingleBuffer, DSI uses two data lanes to communicate with the display, and the display can be displayed correctly.Now I want to use one data lane to communicate with the display, the LCD do not show anything.I made the following changes to the official routine:OTM8009A is driver IC of LCD(MB1166-A09), and have a pin LANSEL to select one or two data lanes communicate with MCU. However I unable to find the LANSEL pin pad . Does that mean users cannot change two data lanes to one data lane of LCD side?I want to know how to achieve DSI communicate with the LCD (MB1166-A09) with one data lane. Looking forward to your reply!
Hello everyone !I've recently hit a snag in a motor FOC project of mine: the CORDIC unit on a STM32G431xB doesn't give out similar q1.15 results when the input are 32 and 16 bits.In the current setup, both sine an cosine coefficient are pre-stored as q1.15 values in two separate sensor input buffers (from hall resolvers). In order to simulate actual q1.31 value, I simply left-shift the buffered q1.15 values by 16 upon use, and tolerates the LSB loss for the purposes of the tests.Here's an excerpt of the test method :[main loop] float *pResA = resultsA, *pResB = resultsB; // For the purpose of the test, our q1.15 results will be converted to degrees as f32 values. cnt = NB_ANGLE_SAMPLES; CordicUnit::clearError(); while (cnt-- && !CordicUnit::hasError()) { // Input sin/cos coeffs' are stored in q1.15 buffers, addressed through *pSin and *pCos. // Both functions returns q
Hello,I'm trying to implement the lwip + paho mqtt (embedded version) on a nucleo-f207zg board, following this project : https://blog.naver.com/eziya76/221938551688 I have a mosquitto broker and wireshark on a windows computer.Mosquitto started with command :mosquitto -v -c broker.cfgbroker.cfg file content :listener 1883 allow_anonymous trueWindows IP : 192.168.1.105STM32 IP : 192.168.1.200Both IP are static. The ETH link is ok, I can ping the STM32. I'm blocked since a few day on the connection to the MQTT broker.ConnectNetwork() works, but MQTTConnect() don't.The STM32 send the request, mosquitto receive it and CONNACK but the STM32 don't received it and abort the connection.I think I have localized the issue, but I can't resolve it with my limited knowledge in network programming.MqttConnectBroker() => MQTTConnect() => MQTTConnectWithResults() This function make the following call to waitfor() : ret = waitfor(c, CONNACK, &connect_timer); if
Hi all,I tried to install X-Cube-Audio in cubeIDE but it is not in the list of software packages. I tried to use "From local..." and pointed to the zip file but I got an error (picture below). There is an X-Cube-Audio-F7 that is obsolete but nothing indicated that X-Cube-Audio is obsolete. How do I install X-Cube-Audio in cubeIDE? I'm interested in the audio player (mp3 and wav) for STM32F746 Discovery board. Thanks
I'm using a STM32L051C8T6 in a custom board. The software function is to enter stop mode to reduce the current consumption and only wake the MCU up with GPIO EXTI, RTC wakeup timer and UART wake up. The device is entering the low power mode and exiting successfully, but I'm facing issues with my UART after waking up. My UART is configured to use DMA on Rx and Tx, but now I'm only using the DMA on Tx, for testing purpose. My problem is that after waking up via UART, I want to keep the microcontroller awaken attending to configuration commands, until receive a configuration ending command. However, the MCU wakes with the USART config command, but it's unable to trigger the UART RxEventCallback via DMA. I think, maybe the MCU just need an specific configuration after waking up to make the UART Rx callback via DMA work well. See the code below:Part 1 of the code:int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration---------------------
Hello, I downloaded STM32CubeExpansion_Audio_V1.1.1 and I tested the MP3 player project (Audio_MP3_player) with an STM32746G-Discovery.It works very well.But now, I would like to add 2 or 3 additional functions but I have big gaps in development.I would like to add a speed or pitch function (+/- 10%) and a reverse play function.When playing a WAV or MP3 file, the audio file is buffered before being played.I think it's in the fwkmempool.c file or player.c file to add these functions but I can't seem to.If anyone can help me it would be welcome.Thanks for your help.Regards.
Hi everyone!I'm sorry I just started with STM universe...Since twodays I try to start the lwip through freertos on my NUCLEO-H723ZG. For starting I generate the code with the CubeMX and try to call the MX_LWIP_Init() in a startAppTask. But ethernet_input is only called at the start and then never more.I just want to ping my board for the beginning...I certainly misunderstand something, but I don't know what...
Hi All I designed the hardware using the STM32H753VIT6 and the 3-port Ethernet switch KSZ9893RNXI. The STM32 is configured and can communicate with the external world via Ethernet. However, I'm unable to read or write to the switch register using the MDC/MDIO interface with the HAL functions HAL_ETH_ReadPHYRegister and HAL_ETH_WritePHYRegister. Attached the relevant schematic and STM configurations for reference. Thanks and Regards, R.Abdul Rahman
Hello,I am using STM32U575CGU6 MCU and want to use wolfSSL library with minimal flash consumption. My application intends to used DTLS 1.3 and no TLS use case is foreseen. Note: The wolfSSL library version used is 5.7.6. Kindly support me with following issues,1. How can I correctly configure DTLS 1.3. It seems that the DTLS1.3 implementation is not available and the library configured over the tool just supports DTLS 1.2. 2. While using DTLS, I have to also necessarily configure TLS 1.3 and TLS 1.2 to compile the code. This increases the overall code memory. Can this be avoided? Am I missing some configuration step here.3. The video- " https://www.youtube.com/watch?v=pUd2HEfBp3w " explains "How to use wolfSSL software expansion for STM32Cube". However, the downloaded pack does not provide any ,ready to use ,.ioc sample file for wolfSSL tests (for NUCLEO-U575ZI-Q board). Where can I find this?4. The " https://github.com/wolfSSL/wolfssl/blob/master/IDE/STM32Cub
Hello, First of all, NetXDuo is working fine on the NUCLEO-H743ZI board. (PING, UDP, TCP) Environment : STM32CubeIDE v1.17.0 STM32CubeMX v6.13.0 STM32Cube_H7(HAL) v1.12.1 X-CUBE-AZRTOS-H7 v3.3.0 I modified it to fit my custom board. The clock for the PHY chip is different. It use by MCO1(25MHz) from MCU. There is failed the _nx_driver_enable() function in nx_stm32_eth_driver.c file. (PHYLinkState < ETH_PHY_STATUS_LINK_DOWN) But, if the delay is reflected for more than 5 seconds before PHY initialization, normal operation is achieved. (PING, UDP, TCP) The same thing happens if I put a break point at that location in debug mode. There is no PING response. LwIP works fine on that board. Best regards,
Hi Experts, I want to reset the ST32F303E-EVAL to default FW, where could I get the FW to download ?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.