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
Hello All,I am working on project using STM32Cube IDERecently I'm facing an issue like everything is working, when it is in debug mode.But when I disconnect the st-link nothing is working.And the project is in end stage and all of sudden I'm facing this issue.Thanks in advance for comments and suggestions.
here, i was send the data from tera term with xmodem 1k protocol and the file completely send from tera term side but i don't know ,how to see the file name on stm32 side
Hello!We have developed a LoRaWAN network using as end-nodes MURATA CMWX1ZZABZ-091 module (with a ST microprocessor inside).For this mode device, we use “I-CUBE-LRWAN” – (Lorawan Software Expansion from STMicroelectronics) and the code related to AT_SLAVE, to control this module via another MCU.Communication is implemented in both directions: - Uplink (from node to gateway) - Downlink (from gateway to node). We have experimentally verified that the distance achieved in the uplink direction is much higher than the distance achieved in the downlink.Analyzing the rssi values at the gateway and at the node device, we have detected a difference of approx 30dB (-70dBm at the gateway and approx -100dBm at the device). It matches with the experimental behavior, where the downlink shows worse behavior than the uplink.We have also checked that both the gateway and the MURATA module are configured to transmit with the same power (+14dBm), and that the sens
Hello.I have a project with Azure, and now I want to connect an external USB memory. Does anyone have a tutorial on how to configure the project to be able to read and write files from the external USB memory?I have only found the following documentation:https://wiki.st.com/stm32mcu/wiki/Introduction_to_USBX#cite_note-4https://github.com/STMicroelectronics/x-cube-azrtos-h7/blob/main/Projects/STM32H735G-DK/Applications/USBX/Ux_Host_MSC/README.md Any tutorial on how to configure it with STM32cubeMX?
STM32H743We have 4 SPI busses running at 12.5MHz but the SPI clocks are sequentially. SPI 1 and 2 are using DMA Channel 1 while SPI 3 and 4 are using DMA Channel 2. We would like them to run in parallel.Can they run in parallel.The code uses HAL_SPI_TransmitReceive_DMA() for each of the calls to the spi to Tx and Rx.The picture below definitely shows serialization of the accesses. Each access is 32 bytes.The picture above shows the clocks of 3 of the spi busses and it is quite evident that the SPI busses are not running in parallel.
Hello everyone, I have a complex problem which I would like help from the memory experts and instruction optimization, if possible. I am trying to receive data using CDC_Receive_FS() call back, and, concurrently, process the data using an ISR which is running every 300 clock cycles (the chip has a 48MHz clock).The issue arises when this ISR becomes too fast. Anything below ~350 clock cycles overwhelms the USB callback/USB in general, and the communication fails. It works well with 500 cycle ISR.I have a few questions, firstly, is it that the processing in the ISR consumes too many of the 350 cycles, or is it that the FREQUENCY of the ISR is INTERRUPTING the USB too much?Here is the full code, which has a circular buffer for the incoming data, and flow control. The flow control is a synchronous packet that gets sent every received packet (this might be what is causing the larger consumption of cycles in the USB side):static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len) {
hello,I am using Stm32f407 with an IM69D120 mic. I have couple of questions regarding the interface and configuration of the mic.1) Is it possible to configure the audio codec with a 4 kHz sampling frequency and a 16-bit resolution?2) Which interface should I use for configuration: i2S or SAI? (Which interface gives more control while configuring the clock and OSR?) Regards,Manikandan V
function : EE_Status EE_Init(EE_Erase_type EraseType)at the end write 0 in flash:/*********************************************************************//* Step 8: Perform dummy write '0' to get rid of potential *//* instability of line value 0xFFFFFFFF consecutive to a *//* reset during write here *//* Only needed if recovery transfer did not occured *//*********************************************************************/ if (recoverytransfer == 0U){status = VerifyPagesFullWriteVariable(0U, 0U); I have got problem with my system where there are frequently reset. These sometimes cause an ECCD error.For this reason I'd like to remove this step.What do you suggest ?
Hello.I am creating software for the host side of a USB hub, and I want to connect a mouse to a port on the USB hub,I want to connect a mouse to the port of the USB hub and operate it. The USB communication speed of the USB hub is HI SPEED, and when the hub detects a mouse with a LOW SPEED USB communication speed, it will send USBH_Get_DevDesc to the mouse in LOW SPEED.USBH_Get_DevDesc is sent to the mouse at LOW SPEED when the hub detects a mouse with a USB communication speed of LOW SPEED. USBH_StatusTypeDef USBH_OpenPipe(USBH_HandleTypeDef *phost, uint8_t pipe_num,uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t dev_addressuint8_t speed, uint8_t ep_type, uint16_t mps)I can not communicate in LOW SPEED as seen in the line monitor even if I execute speed=2(LOW SPEED) withHow can I communicate in LOW SPEED?
I recently posted this content in ST's comunity and I can't figure out the problem yet. I updated all the drivers, such as GitHub STM32H747I-DISCO BSP, OTM8009A LCD and NT35510 LCD. Also, I included all the path to nt35510, files nt35510.c and nt35510_reg.c on BSP/Drivers/Components and modified the file stm32H747i_discovery_conf.h as shown as below (My board revision is MB1248-H747I-D03 and LCD is MB1166-A09).I've got the same error: make: *** No rule to make target 'C:/Utilities/lcd/stm32_lcd.c', needed by 'Utilities/stm32_lcd.o'. StopWhen I use the standard code, the LCD only displays noise.I've strugle with this problem since last week and I need to figure out the issue. I appreciate if anyone can helps me.
I am trying to get the STM32U575 to wake from STOP3 mode using the NUCLEO-U575ZI-Q dev board. I followed the example to enable the wakeup pin, clear any pending wakeup flag, and then go to sleep. I have this configured to pin PC13 which is the user push button, but the button does not wake the mcu. The push button does work for waking from SLEEP mode using the interrupt from the same pin. Here is the code I used from the example: /* Enable WakeUp Pin PWR_WAKEUP_PIN2 connected to PC.13 */HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN2_HIGH_1);HAL_NVIC_SetPriority(PWR_S3WU_IRQn, 0, 0);NVIC_EnableIRQ(PWR_S3WU_IRQn);HAL_SuspendTick();/* Clear all related wakeup flags*/__HAL_PWR_CLEAR_FLAG(PWR_WAKEUP_FLAG2);HAL_PWREx_EnterSTOP3Mode(PWR_SLEEPENTRY_WFI); /* wake with push button*/SystemClock_Config();HAL_ResumeTick(); I'm using FreeRTOS but this code happens before FreeRTOS is initialized (for testing).Any ideas why this is not working?
Hi,I am trying to use the async transfers with usarts, but it fails to enable the UART (using uart_rx_enable), due to no DMA configured for the usart.I have not been able to modify the device tree for DMA, but so far unsuccessful.On the dma2 node, I have changed the status from "disabled" to "okay", and modified the usart3 to reference the dma2 in "dmas". &usart3 { pinctrl-0 = <&usart3_tx_pb10 &usart3_rx_pb11>; pinctrl-names = "default"; current-speed = <19200>; dmas = <&dma2 3 1 (STM32_DMA_PERIPH_TX | STM32_DMA_PRIORITY_HIGH)>, <&dma2 2 1 (STM32_DMA_PERIPH_RX | STM32_DMA_PRIORITY_HIGH)>; //dma-names = "tx", "rx"; status = "okay";}; It fails with:zephyr.dts:209.4-64: Warning (dmas_property): /soc/serial@40004800:dmas: cell 3 is not a phandle referencezephyr.dts:209.4-64: Warning (dmas_property): /soc/serial@40004800:dmas:
hi, I'm trying to connect this pressure sensor (WF100DPZ) using I2C with stm32 f070RB. But can't understand what address to use for this sensor after reading the datasheet. It'd be great if anyone could help.
Hi all,I am looking for a low power STM32 device with 4 usable UARTS (either UART, USART, or LPUART).How do I search the st.com site?I have managed to filter down to 324 devices - do I have to individually download and read ALL 324 datasheets to filter further?Kind regardsPG
Hi,I’m looking for some tutorial (or any other learning staff) related to Timer + PWM + DMA.Unfortunately, I couldn’t find much info related to these issues. I’d like to learn:LL_TIM_CC_EnableChannel() and LL_TIM_CC_DisableChannel():What exactly do these func do? When should IO use them?Is it available only while using DMA?What is the sequence of calling this func?Do I have to start DMA first using HAL_TIM_PWM_Start_DMA()?Will LL_TIM_CC_DisableChannel() stop/pause the DMA operation, or I must call HAL_TIM_PWM_Stop_DMA()?What is the flow chart (i.e.: sequence) of the MCU while using Timer + PWM + DMA? As far as I understood (please fix me:( Timer event --> “Send” data using to PWM DMA --> PWM operation on gpio (according to data)...Thanks,Aviv
If you are compiling the Cube-drivers with the flags: USE_HAL_DRIVER and USE_FULL_LL_DRIVER, and you are including an LL.c-file in your file list (e.g. stm32h7xx_ll_rcc.c) you will get: stm32h7xx_ll_rcc.c:27:0: error: "assert_param" redefined [-Werror]You get this error because the code:#ifdef USE_FULL_ASSERT ............. #else #define assert_param(expr) ((void)0U) #endifis included in both the configuration header file: stm32h7xx_hal_conf.h (which is the mandatory configuration file based on the template file supplied in the HAL library) and in every LL.c-file (such as stm32h7xx_ll_rcc.c, stm32h7xx_ll_usart.h, etc.).Is there a suggested work-around to avoid the redefinition of "assert_param"?
I have completed the code and uploaded it to the following GitHub repository: https://github.com/gamarrita/Nucleo-L452_Azure_RTOS/tree/master/01_stop_mode_1In my code, I am using the RTC and its wakeup capability to control sleep time. I am only using one thread, which sleeps for 5 seconds and then wakes up to sleep again.The code works fine if I turn the power off and on again, but the CPU keeps entering and exiting a very high frequency if I just press the run or debug button.Why stop mode works fine in one situation and fails in others?And more important, how I can figure out, debug technique, to find out what is making CPU wakeup?void App_ThreadX_LowPower_Timer_Setup(ULONG count) { /* USER CODE BEGIN App_ThreadX_LowPower_Timer_Setup */ // Wakeup Counter = 2048 g_stop_ticks = count; HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, (g_stop_ticks * 2048) / TX_TIMER_TICKS_PER_SECOND, RTC_WAKEUPCLOCK_RTCCLK_DIV16); /* USER CODE END App_ThreadX_LowPower_Timer_Setup */ } /**
Hi,I am trying to understand Trustzone concepts by building my own project. I’m using STM32U5-EVK and I went through the example project(GTZC_MPCWM_IllegalAccess_TrustZone project)to understand the basics. However, in this project, I noticed that they have not enabled the SAU in .ioc file, but still the SAU_CTRL_ENABLE macro has been set to 1. Also, on debugging I saw that all the SAU regions are initialised as well. But when I leave the SAU disabled in .ioc, the SAU ENABLE bit is 0 and SAU regions are not initialised. Could someone please explain this? Or am I missing something? Is there any other place where we can configure SAU? @mƎALLEm @Tesla DeLorean
I was going to turn on USB VCP support into my latest research project on a Nucleo-H563ZI, and noticed that the normal middleware for USB devices doesn't seem to be there. (I've been using F4s and F7s for years, wrote articles on how to get started using them and basically been an ST fanboy and STM32 proponent for a while).Anyway, unless I missed something, it looks like the USB middleware assumes ThreadX/Azure RTOS, as do the examples. Now I typically don't care for much that Microsoft puts their grubby mitts on, but if ThreadX is going to be the supported RTOS path for ST and Cube, so be it. I guess it's time to throw another RTOS into the pool. So far I've used uC/OS-II/III, RTEMS, and FreeRTOS, and have seen others pop up as the next-great-RTOS and fade away.So, is ST planning on continuing with FreeRTOS? Move to ThreadX? Follow Nordic in using Zephyr? Writing their own?It would be nice to know where you're heading because I do this sort of stuff for a living and have to support st
Hi, after a lot of wasted time, I've created a demo for dual core with debug files:Here is the project:https://github.com/lonejack/stm32cubeide-demo-dualcore To make the setup the guide:https://www.youtube.com/watch?v=k3mXhPZSasw has been followed.I made some changes...Import the project with option:three projects..Generate the code and build projects.Then run the debug with "stm32cubeide-demo-dualcore" Wait the download and main enter for both processors: Run the CM4, it should go in this state:Run the CM7, it should go in running: Return in CM4, press run button, it should go in running: Now both cores are running...The given guide to me didn't work!If someone has better solution please write here...Thank you.C.
Hi, I don't know it this is helpful or not. This is my contribution...Basic working LWIP server for the Nucleo H755 with LWIP: link to repository Ciao
Hello Everyone:I use azure RTOS USBX storage (MSC) and FileX.. My STM32H735 acts as a USB storage device using a RAM-Disk. I have FileX running, which allows me to add files to the RAM-Disk from inside the STM32H735Problem: Windows caches the content of the RAM disk. Once I add a file from within STM32, windows does not detect that. What do I have to do, to make windows re-load the content of the storage device? Unplugging USB is not a solution There is USBD_Storage_Status, which is used to return SCSI sense codesI tried multiple like 0x02 0x28 0x00 (device not ready, medium might have changed) If I start with this status, windows properly detects, that there is no medium in the device and says "please insert medium"If I switch to the sens code 00: NO SENSE (all fine), windows properly loads the content of the drive. But if I switch back to "no medium", windows still keeps the drive content in a cache. How to force windows to reload?Disabling USB and re-enabling USB might help, but I h
Hello,I am using STM32G491 controller for my application. I am trying to use FMAC module for FIR filter implementation for my application. I am referring the STM32G4-Peripheral-Filter_Math_Accelerator_FMAC.pdf FMAC pdf document. I have also referred the FMAC example sample code https://github.com/STMicroelectronics/STM32CubeG4/tree/master/Projects/NUCLEO-G474RE/Examples/FMAC/FMAC_FIR_DMAToITAs the FMAC module accepts input buffer in q1.15 format.I have used below formula to convert int16_t value to q1.15 format.Number = 100;/First , normalizationfloat v1_f = 100/32767.0;//second, convert the normalized results into Q Formatv1_q15 = int16_t(V1_f *0x8000) +0.5;placed this v1_q15 value as the buffer element. Is the above formula for q1.15 conversion is correct? I am not getting the expected output which I have calculated from the FIR filter formula.Can any one support me to convert the integer value to q1.15 format and q1.15 format output to integer n
Hi I work with stm32f4 modbus tcp /ip.When I connect the ethernet cable first and then power the stm32f4, my code works goodBut, when I first power the stm32f4 and then connect the ethernet cable, I cannot even ping it. How I can solve it? Thanks
Posted on October 22, 2017 at 16:13I want to use ' HAL_UART_Transmit_DMA(); ' to send data in DMA mode like this : char str_Hello[]='Hello\n'; HAL_UART_Transmit_DMA(&huart1,(unsigned char *)str_Hello,strlen(str_Hello)); HAL_Delay(500);But transimit function only work one time(DMA is working under normal mode).I found these in the definition of function 'HAL_UART_Transmit_DMA()' in 'stm32f1xx_hal_uart.c'HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size){ uint32_t *tmp; /* Check that a Tx process is not already ongoing */ if(huart->gState == HAL_UART_STATE_READY) {......huart->gState = HAL_UART_STATE_BUSY_TX;.....}}So, I try to manually set 'huart->gState' in my while loop like this char str_Hello[]='Hello\n'; HAL_UART_Transmit_DMA(&huart1,(unsigned char *)str_Hello,strlen(str_Hello)); HAL_Delay(500); huart1.gState = HAL_UA
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.