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,Application description: -We are using STM32G4 Series microcontroller for UART communication in our application to send data to slave device. Master broadcast one specific command at interval of 200us.master is sending 11 bytes at a time at a speed of 2 Mbps.our controller is running at 170Mhz frequency.We are using DMA on RX to receive the data. Slave device is not sending any data back to master, it is only receiving the data from master.Problem : -To receive the data from master in UART we are using HAL_UARTEx_ReceiveToIdle_DMA function and we are receiving our data in HAL_UARTEx_RxEventCallback function.the problem is, after continues running and receiving data from master, the HAL_UARTEx_RxEventCallback function stop to triggered, that means our callback function won't called anymore, if we disconnect the master wire connection and again reconnect then it starts work again.While it was stopping trigger callback function, we check huart->RxState the Receive status was showing
Hello ST Community,I was trying to use USBX with ThreadX and it worked. So far so good. But in our project, we will use FreeRTOS and after some research and getting in touch with some people, I learned that I can not use USBX with FreeRTOS. So they suggested to me to use USBX StandAlone. I'm now trying using USBX CDC ACM class in standalone mode. I inited USBX, my virtual comport appears in the device manager. I tried to send data from discovery kit to my PC with this function "_ux_device_class_cdc_acm_write_run" and I could send it. After one try, i tried to send again but this time it didnt send and this function "_ux_device_class_cdc_acm_write_run" returned "UX_STATE_WAIT". I debugged the code, examine the transmit process. After transmit an interrupt occured and these flags are set; transfer_request -> ux_slave_transfer_request_completion_code = UX_SUCCESS; /* The transfer is completed. */ transfer_request -> ux_slave_transfer_request_status
I can use the fx_directory_create() api to create a single directory level. However I cannot seem to create a directory with sub folders with a single call. For example, I can create the directory "TestDirectory", but I cannot create "TestDirectory/Folder1". The API example shows only a single level, but I could do such a thing with FAT FS f_mkdir() so the presumption is I can do this with fx_directory_create(), however all that I have tried have not work. Can anyone tell me if this is possible and if so, what should the syntax be for the directory name string. Thanks,Hab
Hello my friends.I am working with stm32f7 microcontroller.I have an issue while using USB pendrives bigger than 16gb. When I try to write into one of them code seems to be stuck on this while loop. and those statuses seems permanent: hbot.state = BOT_DATA_OUT_WAIT and URB_Status = USBH_URB_IDLE. Any idea how to fix this problem?
Hi All,I am working on NUCLEO-L476RG with RM69600 Driver SPI Interface.Able to display the image in 8bitRGB bitmap format but not able Display anything Using LVGL Library.thanks in advance,Raj
Hi everyone: I am trying to add USB stick support to STM32H7B0VBT based board. I used STM32CubeMX to generate code relating to USB host, FatFs, and system clock. USB plugging in and unplugging can be recognized by the middleware (in usbh_core.c), but the return value is always USBH_BUSY from function USBH_HandleEnum(). So the operation on USB stick is not functional. I have a few questions here:1. We use the USB port as USB OTG, the D+ and D- signal is connected to ground with 1.5 ohm pull-down resistor. Anything else should we take care of regarding to the USB OTG interface.2. As to system clock, what is the best way to configure for USB OTG with STM32CubeMX.3. As to the register relating to USB host, what registers should be checked, and what are the correct values for each register. Thanks & Best Regards,Arthur
Good dayI have an issue with bootloader jumping to application then it just freezes and I can not figure out where it gets stuck.Is there someone that won't mind helping me or see where I am doing something wrong.Thank you.Kind Regards
Hello,I am using stm32f7 ethernet interface. Send and Receive functionality is working as expected, whereas send complete interrupt is not triggered. I came across this post https://community.st.com/s/question/0D50X00009XkgfISAR/stm32f767-nucleo-ethernet-not-working, wherein it is said that HAL_ETH_TxCpltCallback() is not triggered due to limitation. Is HAL_ETH_TxCpltCallback() implemented in stm, or the limitation still persist ?
Hi,I have made some PCBs with STM32L452 and written firmware for them for a client. They have been running late with a payment but being a new client and also having paid all other invoices on time and being easy to work with, I don't want to make a big deal out of it. But, at the same time, I want to make sure they clear the invoice asap. So would like to send them downloadable code (not the source code) via email so they can check it works exactly as per new agreed specs (just in case that is the reason why they might have delayed the payment) but also so that it works only for a limited time. Then I can send them the fully unlocked code when the invoice is cleared. Any suggestions on the simplest way to do that without wasting much time writing a lot of code? Perhaps there are some freeware libraries I can use? Thank you
I can open, regenerate, build and flash B-U585I-IOT02A -> Ux_Device_HID example successfully. But when I try disable USBPD (we don't have usbpd on our board. just the D+ and D- pins) and regenerate the project, so many many unrelated files are being removed or added from the project and it becomes very hard to compile it and use it. Is there any example for stm32u585 without USBPD?
I was trying to use the usb cdc acm example from STM32CubeMx for a Nucleo-H723ZG board. When i run the example, the device doesn't get detected at by my computer.
I am encoding a 200x300 image using the JPEG codec available in the STM32H743. The input format is ARGB8888, with the input buffer having a size of 240000 bytes (200*300*4). As I do not know what the output size of the JPEG codec will be , I have allocated also a 240000 byte output buffer. The quality is set to 100, but I found the issue to occurr with other quality settings as well.My problem is that when using the JPEG accelerator using the CPU to feed and retrieve data, the output size of the JPEG image (i.e., the size from the beginning of the output buffer to the last non-null byte) is 19116, both for optimization levels -O0 and -O3, which is ok. When using JPEG codec using DMA, more specifically using the HAL_JPEG_Encode_DMA HAL function, and setting the optimization level to -O0, the output size is 25796. I do not understand the difference in size to the CPU fed alternative, but apart from that, this size also seems to be ok. When using DMA and -O3 however, the output size becom
Hi,Recently, we desighed a test board with STM32F103RB for UART communication with a wireless chip, and we found that the HAL_UART_ErrorCallback is triggered occasionally (the periods of errors vary betweent tens of minutes to hundreds of minutes), the error does not affect sending data from STM32F103RB to the wireless chip, but once an error occurs, the MCU does not receive any data from the wireless chip any more, at the moment, we have to reset the MCU to resolve this issue. However, we would like to reset the UART to resolve the issue if possible as there are some other tasks running on the MCU.We tried the following, but it does not work:HAL_UART_Abort_IT(uart);HAL_UART_DeInit(uart);uart->Instance = USART3;uart->Init.BaudRate = WirelessUartBaudRate;uart->Init.WordLength = UART_WORDLENGTH_8B;uart->Init.StopBits = UART_STOPBITS_1;uart->Init.Parity = UART_PARITY_NONE;uart->Init.Mode = UART_MODE_TX_RX;uart->Init.HwFlowCtl = UART_HWCON
Im struggling with USB Device RNDIS example . Works fine on Windows PC, but no network interface appears on Linux, it listed in lsusb output.I cant find any topics related to that issue
I'm using the STM32F769DI and the SMT32cCube for a project which will be using the CMSIS DSP libraries in a computationally demanding application.My C code is set for fast optimisation. __FPU_USED and FPU_PRESENT are set. ARM_MATH_CM7 is defined. I compare two blocks of simple float32 multiplication using the CMSIS library and a simply loop. I'm linking in the arm_cortexM7lfdp_math library from the GCC directory. I can check the timing with a scope on LED2.// 711 usBSP_LED_On(LED2);arm_mult_f32(x, y, z, 10000);BSP_LED_Off(LED2);// 50 usBSP_LED_On(LED2);for (int k = 0; k < 10000; k++) { z[k] = x[k] * y[k];}BSP_LED_Off(LED2);Does anyone have any insight into why the simple for loop should be so much faster than the SIMD based CMSIS library. Is there some additional initialisation necessary? That I've missed. I've tried compiling the CMSIS library into my own library but realised pretty much the same results?
I want to run ethercat master on stm32H7 series.who know how to do?have example?
Hello everyone!!!By using STM32F401CCU6 controller boot pind and trying to flash my program through UART, for that i have made the Boot_pin0 to high and Boot_pin1 to low and reset the controller later trying to connect with STCube programmer via UART and it's throwing an error everytime as attached in pic. i tried with different baudrates nothing got work. I am using UART2 for connecting with cube programmer. my final ajenda to custom flash the program without using boot pins but if controller is not working with basic flashing then how can i proceed further?Before, using the boot pins for jumping to system meory i tried to jumo from application by remaping the SYSCFG register and considering an example shared by one of our community member. then i have found that it is not working later for testing the system memory i tried with the boot pins.
In STM32Cube FW_H7 version 1.11.1, UDP performance was normal, but in version 1.11.2, it fails to handle all transmitted and received packets. (STM32CubeMX Version 6.12.0) Except for the STM32Cube H7 firmware version, all configurations and source code are identical. - In STM32Cube FW_H7 version 1.11.1. - In STM32Cube FW_H7 version 1.11.2. The configuration (without RTOS) of my project is below. How do I fix this? Should I use version 1.11.1 temporarily? Or will this issue be fixed in the future?
I need to generate 3 PWM signals with the same frequency and referencing the same start point (so sort of synchronised) but with different duty cycles and delays before the pulse, like this:I'm using a STM32G474CEU6 MCU and STM32CubeIDE.I've spent days trying to figure out how to achieve this and so far failed. I've had partial success with the top two (green and blue) traces by configuring a timer with centre-aligned PWM and two channels with different duty cycles. That almost matches my requirement but it would be better if the start and end points of the blue pulse could be configured so they are not necessarily equi-distant from the start and end of the green pulse. I've had no success with the red PWM trace.All help much appreciated.
Hello,I am using a Riverdi RVT101HVSNWC00 board (with STM32H757) for a product that needs a display, interfaces to devices, and writes data to a microSD card. After communicating with Riverdi, I gathered the correct SDMMC1 configuration to make the peripheral work and allow the Cortex-M7 core to write data to the filesystem on the SD card. M7 is completely functional with the SD card. However, the software architecture I would like to implement requires that the Cortex-M4 core be responsible for the SD card. I cannot get the M4 to even initialize the SDMMC1 peripheral no matter what I do.I have SDMMC1 enabled for only the M4 core in CubeMX, with the correct peripheral, DMA, and FatFs configuration. When M4 calls MX_SDMMC1_SD_Init(), execution eventually comes to HAL_SD_InitCard() in stm32h7xx_hal_sd.c. This then calls HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SDMMC), which returns 0 because HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY) returns false (bit not set) at stm32h7xx_hal_rcc_ex.c
Hi,I fail to compile the ethernet-related examples for the NULEO-H563ZI evalboard using STM32CubeIDE/GCC (v1.16.0). For instance, when building the example named "Nx_SNTP_Client" I get multiple "multiple definition of LAN8742..." :...arm-none-eabi-gcc -mcpu=cortex-m33 -g3 -DDEBUG -DTX_SINGLE_MODE_NON_SECURE=1 -c -x assembler-with-cpp -MMD -MP -MF"Application/User/Core/tx_initialize_low_level.d" -MT"Application/User/Core/tx_initialize_low_level.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "Application/User/Core/tx_initialize_low_level.o" "C:/Users/s_steinkamp/STM32Cube/Example/Nx_SNTP_Client/Core/Src/tx_initialize_low_level.S"arm-none-eabi-gcc "C:/Users/s_steinkamp/STM32Cube/Example/Nx_SNTP_Client/AZURE_RTOS/App/app_azure_rtos.c" -mcpu=cortex-m33 -std=gnu11 -g3 -DDEBUG -DNX_INCLUDE_USER_DEFINE_FILE -DTX_INCLUDE_USER_DEFINE_FILE -DTX_SINGLE_MODE_NON_SECURE=1 -DUSE_HAL_DRIVER -DSTM32H563xx -c -I../../NetXDuo/App -I../../NetXDuo/Target -I../../Core/Inc -I../../AZURE_
Hello everyone, I am writing a program to read the gyro of the ICM42688P, but in the middle of the program, the process stops because it cannot be directed. Here is the full text of the code↓ ICM42688P::ICM42688P(SPI_TypeDef *spi2, GPIO_TypeDef *cs_x, uint32_t cs_pin): spi2(spi2), cs_x(cs_x), cs_pin(cs_pin){} void ICM42688P::setup(void){ LL_SPI_Enable(spi2); } void ICM42688P::SPI_TransmitReceive(uint8_t *tx_data, uint8_t *rx_data, uint8_t length) { uint8_t count = length; //CS Low LL_GPIO_ResetOutputPin(cs_x,cs_pin); //data clear if (LL_SPI_IsActiveFlag_RXNE(spi2) == SET) LL_SPI_ReceiveData8(spi2); //SPI、enable if (LL_SPI_IsEnabled(spi2) == RESET) LL_SPI_Enable(spi2); //sending receiving while (count > 0) { LL_SPI_TransmitData8(spi2, *tx_data++); //transmission while (LL_SPI_IsActiveFlag_TXE(spi2) == RESET); //waiting transmission complete while (LL_SPI_IsActiveFlag_RXNE(spi2) == RESET); //waiting reception complete *rx_data++ = LL_SPI_ReceiveDa
Hello ...I cloned the github repo:https://github.com/STMicroelectronics/STM32CubeL4/tree/master I am trying to compile the PWR_STOP1_RTC project but keep getting a fatal error ../../../../../../../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_def.h:29:10: fatal error: stm32l4xx.h: No such file or directory where can I find this file to include within the ....Drivers/STM32L4xx_HAL_Driver/Inc?Thanks
I'm using a custom board with an STM32H730 and an external HS PHY USB3370 via ULPI, set up as an OTG-HS "Device Only."When I connect it to my computer, Windows shows "USB device is not recognized".In "USB Device Tree Viewer," it says "Unknown USB Device (Device Descriptor Request Failed)".This happens on two boards, and I've confirmed that the ULPI pins are correctly matched.I'm not sure if I'm missing something in the configuration.I'm attaching the .ioc file and could use some help figuring out the problem. Thanks!
Hi,Since before I have used USART for sending data with protocol buffers and SLIP encoding, thought that I should try to move over to Ethernet and UDP instead. It became harder than I thought, to say the least.I'm using STM32CubeMX 6.8.1.202304191431 for generation.I can get the ping to work without FreeRTOS, as soon as I add FreeRTOS, ping stops working.ETH Configuration:MPU Config:lwIP Config:Bottom of my STM32F767ZITX_FLASH.ld : .lwip(NOLOAD) : { . = ABSOLUTE(0x2007c000); *(.RxDecripSection) . = ABSOLUTE(0x2007c0a0); *(.TxDecripSection) } >RAM .ARM.attributes 0 : { *(.ARM.attributes) } } My main-function looks like: #include "main.h" #include "lwip.h" void SystemClock_Config(void); static void MPU_Config(void); static void MX_GPIO_Init(void); extern struct netif gnetif; int main(void) { MPU_Config(); SCB_EnableICache(); SCB_EnableDCache(); HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); MX_LWIP_Init(); while (1) { ethern
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.