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
I am using STM32Cube Version: 1.15.0 Build: 20695_20240315_1429 (UTC) and on an STM32F767ZGTx with FW_F7 V1.17.1I have a running and tested application for which I am now including FW Update from SDCard.I got two examples on which to base the new code:The example project for IAP_Main (in STM32769I_EVAL)en.x-cube-iap-sdThe IAP occupies sectors 0 & 1 from 0x0800 0000 - 0x0800 FFFFLinker: /* Entry Point */ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */ _Min_Heap_Size = 0x200; /* required amount of heap */ _Min_Stack_Size = 0x400; /* required amount of stack */ /* Memories definition */ MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 512K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 64K } The application is from 0x0801 0000 to 0x080F FFFFLinker: /* Entry Point */ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ _estack = ORIGIN(RAM) + LENGTH(RAM
Hello,I am trying to continuously read a voltage from a single channel by using the onboard ADC of the STM32L562ZET6 on a custom PCB. All the relevant analog voltages of the ADC have expected values, i.e. VREF+ = 3V, AVDD = 3V VREF- = 0V, AVSS = 0V. Also, the applied voltage signal (DC signal between 500mV and 2.5V is measured through the signal path on the PCB and does arrive at the respective Pin on the actual uC. So the Hardware is likely to work as expected.)The following code uses HAL-functions to read from the channel and pass it through the DMA Handler. (I have tried many other ways, by using single conversion and polling, by using the interrupt and the callback functions...)Still, the only output I get on the terminal is the value 0. The exact identical code runs on the STM32L433RC Nucleo board without any issues, outputting the correct voltage that I apply to the channel! I guess there must be some fundamental mistake with my code, but I fail to see i
I am experimenting with an STM32 running Azure RTOS connected to Azure Cloud to perform Over The Air (OTA) updates of the firmware via an IoT SIM connection.However when the cellular signal strength is poor the connection often fails or times-out during updates.When that happens the update restarts from the beginning and often hits the same problem again and again.1/ Is there a way to (easily) chunk up the download so on error the download restarts from the last good packet received rather than starting over from the beginning? 2/ Alternatively is chunking more easily achieved with other tools such as say FreeRTOS, AWS cloud services etc?
Hi, I'm working with STM32CubeMX and on MBEDSSL defined MBEDTLS_SSL_OUT_CONTENT_LEN at 2048.When I generate the code I get (/CM7/MBEDTLS/App/mbedtls_config.h):#define MBEDTLS_SSL_OUT_CONTENT_LEN 16384 Is there a problem?Am I making a mistake?My environment: Linux, STM32CubeMX 6.10.0, FirmwarePackage STM32Cube FW_H7 V1.11.1In the IOC file I see:MBEDTLS.MBEDTLS_SSL_IN_CONTENT_LEN=2048MBEDTLS.MBEDTLS_SSL_IN_CONTENT_LEN_ENABLE=0MBEDTLS.MBEDTLS_SSL_MAX_CONTENT_LEN=2048MBEDTLS.MBEDTLS_SSL_MAX_CONTENT_LEN_ENABLE=1MBEDTLS.MBEDTLS_SSL_OUT_CONTENT_LEN=2048MBEDTLS.MBEDTLS_SSL_OUT_CONTENT_LEN_ENABLE=1Thank you
Hi people,I'm using a STM32H7 with a NetXduo web server example. I implementend a http get endpoint to get some data and a http put endpoint to reset the mcu. Sometimes, after the reset, the network stops to work. The http get, put and even the ping doesn't respond. The others threads continue to working fine It appears that this problem is more frequent when I send a get or a put immediately after a reset, but it can be only my impression. How can I debug this problem? I'm a novice on Azure RTOS.
I'm student working on my end-of-studies project so I have to communicate with the cluster (display of cars) so when I read the documentation I find that I have to communicate CAN with them sending frame with my stm32 board but also I need to send some frame with the UDS protocole so I do some search in the relation between the stm32 and UDS protocole but I didn't find anything so someone can help me
Hello STM community,I'm encountering a rather peculiar issue in my project. I'm attempting to send and receive data from a Simulink model using the Simulink Desktop Real-Time packet input-output blocks. I'm employing UDP communication with the W5500 Ethernet module. While the data transmission and reception function flawlessly, I'm encountering a problem: if I stop the Simulink module and then restart it, it fails to receive or send any data until I restart the STM32.Any insights or suggestions on resolving this issue would be greatly appreciated. Thank you in advance
NUCLEO-C031C6 board.My printf over the UART works fine - would anyone be able to explain the 'bold' comment below.How does such a simple bit of code overload the whole printf function.What is 'small printf' ?Regards, John. #if defined(__GNUC__)/* With GCC, small printf (option LD Linker->Libraries->Small printfset to 'Yes') calls __io_putchar() */#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)#endif..PUTCHAR_PROTOTYPE{/* Place your implementation of fputc here *//* e.g. write a character to the USART2 and Loop until the end of transmission */HAL_UART_Transmit(&huart2, (uint8_t *)&ch, 1, 0xFFFF); return ch;}
Hello!What im trying to acomplish, is to trigger a task with external interrupt.I am trying to "unblock" the ButtonInput thread with a thread flag, to print "button pressed",however when I press the button, the interrupt is called ... (i get "OK" output in conosle), but the printf statement in ButtonInput thread is then not executed.Instead the debuger kindof stalls (affter flag release) and when I pause it, the debug trace lands on configASSERT funtion call, where a comment tells me i need to set the exti priority to configMAX_SYSCALL_INTERRUPT_PRIORITY, so that isr doesnt interfear with the freertos kernel.I did that and the tracer still lands on cofnigASSERT function call.Any advice, or suggestions of better ways of getting this to work would be much appreciated :)My implementation bellow ...-------------------------------------------------------this is my thread definition:osThreadId_t buttonInputHandle;const osThreadAttr_t buttonInput_attributes = { .name = "buttonInput",&nb
[This is a follow-up to https://community.st.com/t5/stm32-mcus-embedded-software/setting-up-clocks-on-stm32u5-nucleo-board-in-startup-assembler/m-p/665708#M47209]As discussed in the issue referenced above, we do quite a lot of work in C constructors (as part of a test system) and as a result __libc_init takes a loooong time to execute on an STM32U5 unless we can chivvy the chip into life early.As a fix for this I put in a bl to my SystemClock_Config in my startup .s file before __libc_init is called. However, I found that the call to HAL_PWREx_ControlVoltageScaling() in my SystemClock_Config() function times out unless HAL_Init() is called first.So I add a bl to HAL_Init before the bl to SystemClock_Config, that's fine, but HAL_Init() enables SysTick and, unfortunately, the FreeRTOS port code for CM33, as provided by https://github.com/STMicroelectronics/x-cube-freertos, occu
We have code which performs quite a lot of operations in C constructors. This means that, with the standard STM32U5 startup code, execution of __libc_init_array takes around 10 seconds, which is undesirable, hence we would like to set up all of the system clocks, so that the chip is running at full speed, before we get there.We have tried calling SystemCoreClockUpdate from the startup code before __libc_init_array (see code below) however that makes no difference. What might we do to bring the core up to full speed before libc is initialised?Reset_Handler: ldr sp, =_estack /* set stack pointer *//* Call the clock system initialization function.*/ bl SystemInit/* Copy the data segment initializers from flash to SRAM */ movs r1, #0 b LoopCopyDataInitCopyDataInit: ldr r3, =_sidata ldr r3, [r3, r1] str r3, [r0, r1] adds r1, r1, #4LoopCopyDataInit: ldr r0, =_sdata ldr r3, =_edata adds r2, r0, r1 cmp r2, r3 bcc
Device and Software Configuration Details:MCU Full Part Number: STM32L010RBDevelopment Environment:Utilizing Visual Studio with the STM32 VS Code Extension.Configured the development setup using STM32CubeCLT, which includes STM32CubeMX, toolchain, debugger, and flashing tools.Employed STM32CubeMX to set up the Nucleo-L010RB board for FreeRTOS under CMSIS_V2 specification. Notable adjustments include:Changed the clock source to TIM22 to align with best practices in RTOS environments, avoiding the use of sys_clk.Generated the base code with default configurations. Challenges Encountered:We are experiencing challenges with the OS clock/timers — specifically, calls to osDelay() result in the application hanging. Similar issues are observed when attempting to create and use timers. Inquiry:Could there be additional configurations required for the system clock or OS clock source to ensure proper functionality within a FreeRTOS context? Any guidance or suggestions in this regard wou
I am using H563ZI to develop a motor control project. I have several motors in my project. Motor control commands will be sent to the board with ethernet cable(I have finished this part). Once the board get the command, it should then make the motor with given index run for given period of time, and then stop the motor. I created a function that toggles the GPIO pins and calls HAL_Delay to control the period. After the delay, the function then toggle the GPIO pins back. The problem is that when one motor is in the HAL_Delay, the whole process is blocked. Is there any way that I can turn on several motors and stop them after their given period individually? For example, if [200, 300] is given, motor0 and motor1 should be turned on at (at least nearly) the same time. Motor0 should be turned off after 200ms, and motor1 should be turned off after 300ms.I guess one idea is to use ThreadX, which I also used for the Ethernet part (https://github.com/STMicroelectronics/STM32CubeH5/tree/main/Pr
Hello everyone,I am working on a project where I want to use a pre-trained tflite model to recognize sounds. Before i use a microphone I want to test if it works with the used trainingdata. I am using a nucleo-stm32u575zi-q. I found the sensing1 examples from stm, but I im not able find out how I use the functions to put a .wav file into mcff's. I would appriciate it if someone could help!Kind regardsLeon
Hi, I have a B-L475E-IOT01A2 board and I would like to implement an USB HID application on it. I use the example project found in the Github repository [1]. The application compiles and the USB device is detected on my computer as an input device. The problem is that upon a USB disconnect, the PC seems to jump to 0x0. When plugging the USB cable in again, the application runs again, but it seems I cannot run any code (in, e.g., the main while loop) after a USB disconnect interrupt while the cable is disconnected.I see this problem both with STM32CubeIDE with ST-Link as well as with SEGGER j-link and Ozone.In Ozone, I can set a breakpoint in the PCD Interrupt Handler for disconnect events (using USB_OTG_GINTSTS_OTGINT), which will trip upon disconnect. If I step through, I can finish HAL_PCD_IRQHandler to get back to OTG_FS_IRQHandler. As far as I can see, the PC clears to 0x0 after the POP {R7, PC} instruction which returns from the exception handler "OTG_FS_IRQHandler".It can also be
I am doing a USB HID project and have followed a lot of the setting up of this YouTube video. I have set it up to send a string when I press a button. Using Device Monitoring Studio, I can see that when the device is plugged in, it reads the descriptor, checks the PID and VID and responds to the button press and receives the string.If I leave it for roughly 5 seconds (DMS measured 5.0087 & 5.0013 seconds) then it goes into a suspended state. Once this has happened, any button presses are ignored, and I am unable to get the USB to respond to anything, unless I unplug it and plug it in again. If I do this, it works fine until it is left for another 5 seconds. I have even removed the code inside the HAL_PCD_SuspendCallback in usbd_conf.c to try and stop it getting suspended but it still goes unresponsive. I'm at a bit of a loss as to what to do now!
Hi,MCU : STM32L010R8TX.I have configured 2 UART peripheral in STM32. LPUART1 for GNSS and UART2 for LTE Module Communication. Both are working on Interrupt Mode for receiving data.Uart 2 communication is request and response based. When the LTE Module sends request STM32 will response to the system.LPUart1 is initiated and enabled Interrupt. Currently the gnss module data is not processing. if uart rx callback is called ( HAL_UART_RxCpltCallback) it will check the uart Handler and abort Uart using HAL_UART_AbortReceive(&hlpuart1); and reinitiate aborted uart.in HAL_UART_ErrorCallback also i am aborting and reinitiating Uart by clearing ErrorCode. But in application am copying and processing only UART2 Received Buffer Data but not doing any process witih GNSS Uart (LPUART1) received data.Does this cause a reboot of Mcu?
Hello there,I am working on a project using the STM32 series microcontroller and the Keil MDK development environment. I'm relatively new to both the STM32 platform and Keil MDK, and I am facing some challenges in getting started.Specifically; I am looking for guidance on the following;I need help with setting up my development environment for STM32 with Keil MDK. Are there any specific configurations or settings I should be aware of?I am looking for some basic example projects or tutorials that can help me understand the fundamentals of programming STM32 microcontrollers using Keil MDK.I would appreciate any resources or tips on programming STM32 peripherals, such as GPIOs, UART, and SPI, using Keil MDK.Also, I have gone through this; https://community.st.com/t5/stm32cubeide-mcus/import-from-keil-mdk-into-stmcubeide/power/200298/page/2 which definitely helped me out a lot.What are some effective debugging techniques and practices for STM32 development in Keil MDK? Are
I've developed a custom board featuring an STM32H723GTX MCU, which is interfaced with a DP83848 PHY via an MII connection. Additionally, I'm working with a Nucleo-F767ZI board. When configuring LWIP in the "Platform Settings", I encounter two PHY driver options: LAN8742 and DP83848. However, upon switching to the custom board equipped with the STM32H7 series MCU, the DP83848 option is no longer available. I'm seeking assistance to address this issue, especially considering the recent update to CubeIDE (version 1.15). Any guidance on how to integrate the DP83848 PHY driver with the STM32H7 series in this context would be greatly appreciated.
Hi, I tried to run the FWupgrade_Standalone example on the STM32h743I EVAL Rev B board, but it didn't work.There are currently three issues 1.HS, FS in the build settings are not working correctly.If I don't connect a USB stick to the OTG HS without covering HS and FS, the red LED blinks. According to the readme, it seems to be USB Disconnect. When I built the example with FS, I removed the jumper on JP2 as instructed in the readme. 2.The example says that the download command is executed if the tamper switch is pressed for less than 3 seconds, but my board goes into download mode by itself without pressing the tamper switch. 3.After checking with the debugger, my board keeps returning URB_State_IDLE on line 192 of the usbh_msc_bot.c file(line 13 of the following code), switch (MSC_Handle->hbot.state) { case BOT_SEND_CBW: MSC_Handle->hbot.cbw.field.LUN = lun; MSC_Handle->hbot.state = BOT_SEND_CBW_WAIT; (void)USBH_BulkSendData(phost, MSC_Handle-&
I'm trying to interface M95M04-DR with XMC4700. When I read RDSR, I receive all 0s.When I write to an address, again I get all 0s on that address. I'm attaching SPI configuration and code snippet please look help me to solve this issue.I've connected hold and write protect as high with digital output.Vcc is 5V. uint8_t data_rec[8] = {1, 1, 1, 1, 1, 1, 1, 1}; uint8_t mem_addr[3] = {0x01, 0x00, 0x00}; uint8_t data_tr = 0x05; DIGITAL_IO_SetOutputHigh(&DIGITAL_IO_0); //CS DIGITAL_IO_SetOutputHigh(&DIGITAL_IO_1); //Hold DIGITAL_IO_SetOutputHigh(&DIGITAL_IO_2); //Write protect //write enable DIGITAL_IO_SetOutputLow(&DIGITAL_IO_0); SPI_MASTER_Transmit(&SPI_MASTER_0, (uint8_t *)&write_en, 1); while(SPI_MASTER_0.runtime->tx_busy); DIGITAL_IO_SetOutputHigh(&DIGITAL_IO_0); //some delay //write data to address DIGITAL_IO_SetOutputLow(&DIGITAL_IO_0); SPI_MASTER_Transmit(&SPI_MASTER_0, (uint8_t *)&
Stm32CubeIDE 1.14.0, STM32CubeMX 6.10.0, STM32CubeFW_U5 V1.4.0, X-CUBE-FREERTOS.1.1.0 This started with the Stm32CubeIDE 1.14.0 release and worked fine in 1.13.x. It happens for new projects and migrated projects. I'm using it with an STM32U5. Go into the Task and Queues tab in FreeRTOS and add a Queue. Change the Item Size to uint32_t. This needs to be different. Click OK. The item size is uint16_t (the default). Edit it and it's uint16_t. You can't change it in the UI. I need to manually create a Queue to be able to set the item size.
Is anyone familiar with CAN Communications? Hundreds of devices can communicate in the car, but I have seven or eight motherboards here, and there are always some boards that can't send data, why is this? Is there a big guy who understands?
Dear Experts,I am using a USB3300 chip as an external HS 480Mbit/s USB PHY with STM32F446 MCU. Using CubeMX to generate code and add USB CDC Middleware. As I connect the USB Cable from the PC to the USB3300 chip no COM port is detected. Didn't find any official document related ULPI Interface. I need your help to resolve this issue./* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2024 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes
Kindly provide me the latest Firmware version for the above-mentioned Product along with the necessary instruction to upload it using STM32 ST Link Utility.We are currently getting old firmware issues screenshot attachedPlease assist us regarding this at high priority.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.