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
Using CubeIDE v1.13.0, installed this week.On STM32F0Discovery (STM32F051): /* USER CODE BEGIN WHILE */ while (1) { HAL_UART_Transmit( &huart1, "Hello, UART1 world!\r\n", 21, 10000 ); HAL_GPIO_TogglePin( LD3_GPIO_Port, LD3_Pin ); HAL_Delay( 500 ); HAL_UART_Transmit( &huart2, "Hello, UART2 world!\r\n", 21, 10000 ); HAL_GPIO_TogglePin( LD4_GPIO_Port, LD4_Pin ); HAL_Delay( 500 ); /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */The first HAL_UART_Transmit is to UART1, configured as full-duplex.This works fine - the full string is transmitted each time:The second HAL_UART_Transmit is to UART2, configured as Single Wire Half Duplex.This does not quite work - only the 1st two characters are ever transmitted:If I single-step the transmit loop in the HAL_UART_Transmit for UART2, it does transmit the entire string.So what's going on here? Is there some gotcha! with Single Wire Half Duplex?(Screenshots are from YAT; same results
Hi, i'm Roberto.In my Project i need to update firmware from USB. I wrote a code that when i send a command (a determinated string) from my PC to my board by USB, the code jump from my application to the bootloader address so i can update my firmware and using the DFU Bootloader.My code works well with the demo board STM32F207-NUCLEO but the same code doesn't work with my custom board (i think that in my custom board, code jump to booloader but then it restart and return in my application code).The marking on the chip of my Nucleo is: STM32F207GT6Uin my board is: STM32F207GT6It could be a chip revision problem? What means the last letter 'U' on Nucleo Chip ? What means: "Software Option" on Ordering information code (see Figure) ? Thank you for your help.Roberto C
I am using stm32f407vgt6 mcu and sending data in canbus but I want to receive ack notification
The STM32H743ZI's USB device virtual COM port (VCOM) with Free RTOS is broken after updating to STM32CubeIDE v1.11.2. The problem is caused by FW_H7 updating from v1.10.0 to v1.11.0.I have a program running on NUCLEO-H743ZI2 board. The USB device (VCOM) with Free RTOS works fine until STM32CubeIDE v1.11.2 update. The FW_H7 update from v1.10.0 to v1.11.0 broke the USB function. I can fix the problem by copying the old Driver\ fold over.I think that the FW_H7_v1.11.0 has a bug in USB HAL library. Now I can only use the v1.10.0 and wait for fixing in the next release. I attached the .ioc file to help debugging.
Hello,why is the MSC Host class not active in the Cube IDE configuration tool for STM32U575 series MCUs?I am developing a product based on STM32U575VGT6 and need the USB Host functionality for firmware updates and file storage to USB flash key. As I can see, the hardware of the selected MCU can ensure such functionality. However, the option during configuration is not selectable. Why is it so, and will it be available one day?Thanks!
We are using the ADC on an STM32G4xx for a safety project. The safety manual requires us to read VSS or VDD for ADC diagnostics. STM32G4 has ADC channel 0 internally connected to VSSA, so we are trying to use HAL_ADC_ConfigChannel() to configure ADC_CHANNEL_0.Unfortunately, HAL_ADC_ConfigChannel() asserts on IS_ADC_CHANNEL(hadc, sConfig->Channel) because IS_ADC_CHANNEL() does not check for ADC_CHANNEL_0. I would assume this is a bug in stm32g4xx_hal_adc_ex.h since all ADC instances in the G4 do support VSS as valid input channel (see reference manual section 21.4.4).Can someone please look at this?Regards, Norbert
Hi,I'm facing an issue in building a SBSFU_Boot example for NUCLEO-WBA52CG.The issue seems to be with the linkage error, for the Third_party files (mcuboot). Please find the error message below: C:/Users/zapk/STM32CubeIDE/workspace_1.13.1/SBSFU_Boot/STM32CubeIDE/Release../postbuild.sh: cd: line 16: can't cd to C:/Users/zapk/STM32CubeIDE/workspace_1.13.1/SBSFU_Boot/STM32CubeIDE/../../Middlewares/Third_Party/mcuboot: No such file or directoryWindows_NTPostbuild with python scriptpython: can't open file 'C:\\Users\\zapk\\STM32CubeIDE\\workspace_1.13.1\\SBSFU_Boot\\STM32CubeIDE\\Release\\scripts\\imgtool\\main.py': [Errno 2] No such file or directorypostbuild.sh failedmake[1]: *** [makefile:95: post-build] Error 1make: *** [makefile:61: all] Error 2"make -j16 all" terminated with exit code 2. Build might be incomplete. 13:56:25 Build Failed. 2 errors, 0 warnings. (took 8s.142ms)
I have NUCLEO-H743ZI, NUCLEO-F746ZG and the STM32F746G-DISCOAfter trying the FreeRTOS-based HTTP server example which uses lwIP,I noticed lwIP 2.0.2 supports MQTT client codes.I have a Mosquitto 1.5.7 MQTT broker which is installed on AWS EC2 cloud instance and I want the STM32F746G to subscribe a topic via Ethernet.Are there any MQTT client examples for STM32F746G/STM32H743 devices?I did find an MQTT + TI's TM4C1294 example, but I want to stick with STM32 chips.Thanks for the help
I'm sending a simple string to with HAL_UART_Transmit() "Hello", and when I look at the Input on my COM-Port there is nothing showing up, just a blank plain text site. Yes I am transmitting at the right baud rate 115200 and I don't have an extra parity bit or anything of that nature. I'm using default settings on everything here. My Board is a NUCLEO-H563ZI with an STM32H563ZIT6. I am using UART 7 to communicate. I will also link my files here. I have basically tried every UARTx and USARTx. When I check the State with HAL_UART_GetState() I get HAL_UART_STATE_READY and as return on the HAL_UART_Transmit() I get HAL_OK.
I use:STM32Cube_FW_F4_V1.27.1and CubeMx 6.9.0I have a problem with the function HAL_RTCEx_GetTimeStamp(&hrtc, &RtcTimeTimeStamp, &RtcDateTimeStamp,RTC_FORMAT_BIN); it always returns the value 0 for the year, the other values are correct.In the function I find:/* Fill the Date structure fields with the read parameters */sTimeStampDate->Year = 0U;sTimeStampDate->Month = (uint8_t)((tmpdate & (RTC_TSDR_MT | RTC_TSDR_MU)) >> RTC_TSDR_MU_Pos);
Hello,I have an application with freertos on stm32f767. There was no problem with tcp/ip running on my application with lwip middleware. But now adding some new code somewhere in other threads that is not relevant to lwip causes some problems in pinging. When I ping my board (after adding new code), the mcu does not respond completely. Some ping response packets receives too late and time-out occurred. This packet loss is occurred randomly and when I comment the added code everything is ok and ping response packet receives completely without any problem.The problem is that there is no relation between the added code and lwip thread. In other words, adding code in some part of code (independent of what code is doing as I tested) makes this problem.I guessed that there is a problem with stack or heap memory overflow but when I increase freertos stack or global stack the problem is not solved.I think this a bug in lwip implementation but I don't know how can I solve?Please help me.Thanks
Hi, if Anyone used STM32CubeProgrammer C++API for firmware upload over USB, please share the API module for referenceAny kind of help would be appreciated Thanks
Hey.I am trying to run ADC DMA sampling on multiple buses/channels, running in parallel to a few FreeRTOS tasks.The following initialization causes unstable behavior and device halt upon boot: HAL_ADC_Start_DMA(&hadc1, (uint32_t*)adc1_buf, 3); HAL_ADC_Start_DMA(&hadc2, (uint32_t*)adc2_buf, 2); HAL_ADC_Start_DMA(&hadc3, (uint32_t*)adc3_buf, 5); HAL_ADC_Start_DMA(&hadc5, (uint32_t*)adc5_buf, 2); Everything works perfectly if I comment out one line (any of them), and unstable/halts if I initialize all 4 streams. Any idea? Thanks.Itamar
Hi ST, the version of FreeRTOS provided for the STM32L4 is 10.3.1 -- which was released in February 2020, which is 3-1/2 years ago:https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Middlewares/Third_Party/FreeRTOS/SourceA few issues with this version:This FreeRTOS version is only verified for compliance to MISRA-C:2004. Later versions of FreeRTOS are verified for compliance with MISRA-C:2012 -- which is a much more stringent standard.This FreeRTOS version has four known vulnerabilities:Three (3) with a CVSS score of 9.8 out of 10.0 ("CRITICAL")One (1) with a CVSS score of 7.8 out of 10 ("HIGH")Any concept of schedule when ST will be verifying compatibility of the STM32L4 line with a more-recent FreeRTOS than 10.3.1 -- preferably FreeRTOS LTS (Long Term Support)>?
Hello!I have been experimenting with the FP-IND-PREDMNT1 function pack on the STEVAL-STWINKT1B. Using the base firmware I am getting an average current draw of around 90mA during operation. For my application i would like to reduce the power consumption to minimum levels. What are some of the ways I can go about modifying the FP-IND-PREDMNT1 function pack to minimize power?First things that come to mind are disabling the onboard LEDs, adjusting the interval of sensor readings, and changing the ADV interval on the BLE.I would love to hear about other methods i could use to reduce power.Thank you, Casey Gross
Hello, I want to use Uart6 interrupt on STM32H750b DK board, but it doesn't work, so I'm asking here. Is there anyone used uart on stm32H7xx chip?I just added the Uart-code using CubeMX and then when I build/start debugging, it stopped during initializing uart6 with following error.Please give me advice.FYI, I attached some source codes. Hope someone reply for this.Thanks for reading. Tommy Lim
We are using an eMMC Card with the STM32l476VE MCU.I don't think it is relevant, but the eMMC is the Micron MTFC8GAKAJCN-4M IT TR.We are having intermittent failures in HAL_MMC_ReadBlocks() in which SDMMC_CmdReadSingleBlock() returns SDMMC_ERROR_CMD_RSP_TIMEOUT(4).If we check the SDMMC_STA register (hmmc->Instance->STA) before the call to SDMMC_CmdReadSingleBlock(), the SDMMC_STA_STBITERR bit (bit 9) is set.According to the Reference Manual (RM0351 rev 9.0 2021-06-29), bit 9 of the SDMMC status register is reserved.This bit is not mentioned in the datasheet for the STM32l476VE.The only documentation is the comment in the Header file "/*!<Start bit not detected on all data signals in wide bus mode */".The code was generated with STM32CubeMX V6.4.0 using STM32Cube FW_L4 V1.17.1At no place in the code is the SDMMC_STA_STBITERR bit checked.Is there any documentation on the SDMMC_STA_STBITERR bit?When does this bit in SDMMC_STA get updated?Is there any way in software to recover fr
Hi,I'm working on a tool that must be armed only in a proximity range of 0-5mm with different target materials.The sensor has a protection glass(1mm thickness) 3mm away so the real distance 0mm of the reported measures starts at 4mm from sensor.I had chosen the VL53L4CD for its precision in range 1-200mm but, with metal target (grey and reflecting), but I measure those values:Real distance from glass[mm] Measured distance[mm]0 185 610 1
Hello Support Team,We are working on the B-U585I-IOT02A-based product.For testing, we are using a normal GPIO blink example from the repository.While debugging LED blink correctly but after pressing the reset button LED does not blink.HW : B-U585I-IOT02A development kitFW : GPIO examplePlease let me know if you need more information.Please help us to solve this issue.Thanks & Regards,Chintan Patel
void rs485_gelen() { memset(dnm,0,0); HAL_GPIO_WritePin(DNM_EN_GPIO_Port, DNM_EN_Pin, 0); HAL_UARTEx_ReceiveToIdle_IT(&hlpuart1, dnm, 100); } void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { if(huart->Instance == LPUART1) { memset(dnm,0,0); HAL_UARTEx_ReceiveToIdle_IT(&hlpuart1, dnm, 100); } }void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { if(huart->Instance == LPUART1) { if (huart->ErrorCode & HAL_UART_ERROR_ORE) { HAL_UARTEx_ReceiveToIdle_IT(&hlpuart1, dnm, 100); } } } Hi everyone, I have a problem about UART_ReceiveToIdle_DMA. I receive data with baud rate 500000bits/s. I checked the reference manuel, it says stm allows to baud rate up to USART Clock/3 and my clock is 150Mhz. Here is my problem;1) ReceiveToIdle_DMA does not detect Idle. I enabled NVIC and DMA settings and used RxEvent Callback. Even though there is Idle in data, it keeps receiving and writes to all bu
I would like to ask about the behavior when wake up from standby mode.I will place the bootloader and application at the following addresses:Bootloader: 0x08000000Application: 0x08010000 If I transition to standby mode within the application and then wake up from standby mode using GPIO or RTC, will it operate from the bootloader?Is it possible to run it from the application?
Posted on February 23, 2017 at 17:30Hi,I am currently working with STM32F779 and i'm trying to obtain an IP address using the LwIP Middleware unsuccessfully.Here are the configurations:1. Change some jumpers according to the user manual page 23.http://www.st.com/content/ccc/resource/technical/document/user_manual/group0/64/5f/b4/25/72/a8/44/d9/DM00276570/files/DM00276570.pdf/jcr:content/translations/en.DM00276570.pdf2. Using the STM32CubeMX, i've made the following configurations3. In the header file lwip.h i have extern the following variables (used in lwip.c file) because they will also be used at freertos.c file : extern struct netif gnetif; extern ip4_addr_t ipaddr; extern ip4_addr_t netmask; extern ip4_addr_t gw;4. In the source file freertos.c, inside the defaultThread, i have the following:MX_LWIP_Init();while (gnetif.ip_addr.addr == 0) { sys_msleep(DHCP_FINE_TIMER_MSECS); dhcp_fine_tmr(); mscnt += DHCP_FINE_TIMER_MSECS;
Hi,I try to run "FatFs_Shared_Device" example which supposed to demonstrate FatFs and eMMC.I keep getting FR_DISK_ERR.Has anyone ever encountered this issue?I understood it supposed to work without any modification to the example.Thanks guys
I am working on using open_bootloader with CAN(STMG0B1CB).After successfully writing 256B(in packets of 8B each), I try to read back.After some amount of correct read-backs(to verify), the communication fails randomly.Any suggestions?
TLDR:I'd like to send 1000 key presses per second over USB to my PC, but USBD_HID_SendReport() blocks for at least 1 ms, so the best I can currently achieve is 500 reports per second.More detail:I'm using STM32CubeIDE with an STM32H750 board connected to my PC over USB, and I've managed to get an HID keyboard configured along with a repeating 1ms SOF interrupt. What I'd like to do is send a unique key press every single SOF, but I've run into the problem that USBD_HID_SendReport (or USBD_LL_Transmit or HAL_PCD_EP_Transmit, etc...) won't queue a keypress if the USB device is returning USBD_HID_BUSY.So for example: USBD_HID_SendReport(&hUsbDeviceFS, myKeyReportA, 8); HAL_Delay(10); // Delay 10 ms USBD_HID_SendReport(&hUsbDeviceFS, myKeyReportB, 8); won't send the second report because the USB device is busy. If, however, the delay is set to 16 ms or longer, the USB device will report its state as USBD_HID_IDLE, and the key press will be sent.The polling delay can be dec
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.