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 trying to develop the Nx_TCP_Echo_Server example from scratch using library generation. While integrating MX_WIFI, I am encountering a compilation error related to NetX Duo and the Wi-Fi driver. Spoiler (Highlight to read)/Middlewares/ST/netxduo/common/drivers/wifi/mxchip/nx_driver_framework.c: error: #error This file is included by the driver source, not compiled directly. #error This file is included by the driver source, not compiled directly/Middlewares/ST/netxduo/common/drivers/wifi/mxchip/nx_driver_framework.c: error: #error This file is included by the driver source, not compiled directly. #error This file is included by the driver source, not compiled directly/Middlewares/ST/netxduo/common/drivers/wifi/mxchip/nx_driver_framework.c:27:2: error: #error This file is included by the driver source, not compiled directly. #error This file is included by the driver source, not compiled directly.@Guillaume K
Hi Team, I want to work on USB PD sink , which board would be suitable?, I'm trying for 28V 5A power. I think the firmware for this specification is not available yet. Even though i want to try on. Would you suggest me any board? Is STM32L562 would be compatible?Thanks in advanceRegards Nithin Varghese
So I am using 2 Nucleo-H563ZI boards, one as controller and the other target, and referencing the knowledge base post "How to set up and run the I3C_Private_Command_IT controller and target example projects." I have a couple questions and issues with running these example projects however (at the time of writing this post it has not been shown to work), and am looking for any insight or clarification. 1) I downloaded the I3C_Controller_Private_Command_IT project from EXAMPLES_MIX and it did not work at all because even after flashing the board, the LED never turned on or began toggling. Anybody know why? I get this issue only with the MIX example, not the LL version of the example project.2) I loaded I3C_Target_Private_Command_IT and I3C_Controller_Private_Command_IT from EXAMPLES_LL, made no changes to them, and I cannot get them to work following the example instructions from the knowledge base post. I currently believe there is some setting in the compile that I am no
I am trying to calculate the FFT using CMSIS-DSP.I downloaded the latest CMSIS-DSP from github, copied folders CMSIS\DSP\Include, CMSIS\DSP\PrivateInclude and CMSIS\DSP\Source in my Drivers folder, added CMSIS\DSP\Include and CMSIS\DSP\PrivateInclude to my include path and removed all .c files in CMSIS\DSP\Source that does not have _f32 in the filename, since I am planning to use only float32 data.My project is build with STM32CubeIDE and the microcontroller is a STM32L476RG.The symbol ARM_MATH_CM4 is defined.This is the code I'm trying to use: #include "arm_math.h" #include "arm_const_structs.h" #define SAMPLES_NUMBER 1024 /* ---------------------------------------------------------------------- * Max magnitude FFT Bin calculation * * the input vector must be 1024 elements * ------------------------------------------------------------------- */ float32_t fft(float32_t *input_vector, uint32_t sampling_rate) { float32_t maxValue; uint32_t maxIndex; float32_t frequency; float
HiI am trying to set up a project based on FP-SNS-ALLMEMS1.When i set up a project based on STM32L476 Nucleo, I cant find the pack neither under "select components" nor under "manage software packs". see belowWhy??
Dear Everyone,We use STM32G0B0 MCU and in errata there's a section from the unstable LSI frequency. In some case the LSI frequency about 48 kHz. The workaround not work, after backup domain reset, the LSI frequency still about 48 kHz. My theory is that, the IWDG is running, so the backup domain reset cannot turn off LSI. Someone has a valid workaround or some ideas how I can force the backup domain reset if the IWDG running? Unfortunately POR not an option... Br,Attila
Dear All,I am struggling with getting an MT25QL128 chip to work fully on my board.The connection of the flash chip to my STM32U599NJH6Q is like this:On the MCU side this corresponds to this configuration to the CubeMX:I am quite confident that my custom hardware works, because I am able to read the ID of the chip like this: int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* Configure the System Power */ SystemPower_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_ICACHE_Init(); MX_FDCAN1_Init(); MX_FLASH_Init(); MX_USART2_UART_Init(); MX_I2C1_Init(); MX_ADC4_Init(); MX_SDMMC1_SD_
I’ve created an STM32 project using STM32CubeIDE and enabled LWIP and FreeRTOS. My purpose is to run a basic TCP Server program on the STM3240G-Eval board using BSD sockets, containing two threads. I need to use most of the BSD socket calls such as lwip_socket(..), as mentioned in the sockets.h file.I’ve created a basic tcp server program and run it as the default task in FreeRTOS. The APIs lwip_socket(..), lwip_bind(..) and lwip_listen(..) have passed. The program got blocked in lwip_accept(..). When debugged, the execution sequence is found to be as follows:lwip_accept(..) --> netconn_accept(..) --> sys_arch_mbox_fetch(..) --> OS function calls. No error seen, but the program blocked at this point.Could you please help resolving this issue? Am I missing setting any configuration parameter in opt.h?
Hello,I need assistance generating a continuous 18MHz SPI signal without gaps between data transmissions using the STM32F303RE. Additionally, I need to be able to perform other tasks on the microcontroller simultaneously.I am using DMA in circular mode to handle the SPI data transfer. However, I encounter an issue where I cannot exceed a 2MHz SPI clock without the microcontroller failing to handle other tasks properly, such as toggling an LED.Can you provide guidance on how to achieve a continuous 18MHz SPI signal while allowing the microcontroller to handle other tasks?Thank you!
I configured a FATFS project using STM32CUBEMX to write 248 bytes of data every 1ms, with a buffer accumulating up to 1024 bytes before writing to the SD card. However, I encountered significant blocking issues with f_write. To troubleshoot, I replaced BSP_SD_WriteBlocks_DMA with BSP_SD_WriteBlocks, but after running for about 1 second, I started getting errors when trying to write to the file. The errors stopped when I enabled hardware flow control. Using a logic analyzer, I noticed that the SDMMC_WriteFIFO sometimes had intervals of tens to hundreds of milliseconds in the middle of writing a sector, leading to a very low write rate. What could be causing such long intervals in the write FIFO?The position of the logic analyzer probe in the code:HAL_StatusTypeDef HAL_SD_WriteBlocks(SD_HandleTypeDef *hsd, const uint8_t *pData, uint32_t BlockAdd,uint32_t NumberOfBlocks, uint32_t Timeout){.../* Write block(s) in polling mode */dataremaining = config.DataLength;HAL_GPIO_WritePin(LED_Port,
Hi,HAL and LL DAC configuration structure and its parameters naming can be confusing. Reference manual claims that DAC "mode" (register ADC->MCR, bits 0..2 or 16..17) can be in one of following four combinations when not used sample and hold mode: 0 -> DAC channel2 is connected to external pin with Buffer enabled1 -> DAC channel2 is connected to external pin and to on chip peripherals with buffer enabled2 -> DAC channel2 is connected to external pin with buffer disabled3 -> DAC channel2 is connected to on chip peripherals with Buffer disabledThese combinations coherent but HAL DAC init struct offers up to six conbinations (Enable/Disable buffer times Internal/External/both connections). Some of them are not accesible. I've listed following configurations:a) - OKDAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;DAC_ConnectOnChipPeripheral = DAC_CHIPCONNECT_EXTERNAL;Resulting configuration: 0 -> DAC channel2 is connected to external pin with Buffer enabledb) - MisleadingDAC_Ou
Hi everybody,I use UART6 of STM32F437 and want to change baud rate between baud rate 115200, 460800 and 921600 in runtimeI've followed some answers from a post here:https://stackoverflow.com/questions/57283327/how-to-change-the-uart-baud-rate-after-running-on-stm32-boardUSART6 -> CR1 &= ~(USART_CR1_UE);USART6 -> BRR = NEWVALUE;USART6 -> CR1 |= USART_CR1_UE;But still can't seem to get the baud rate to change. Has anyone change the baud rate of the UART successful?/****************************************************/Thanks and brgs
Hi,Currently, I am testing the authentication example using STSAFEA110 expansion board with X-NUCLEO-G474RE.I follow the steps in STMicroelectronics.X-CUBE-SAFEA1_GettingStarted.pdf and also compared the STSAFEA110 expansion board+NUCLEO-L476RG Authentication.ioc to make sure that all the setting are the same.But there is something wrong, the output is shown as below image:When go into debug mode, found out that the status_code = STSAFEA_COMMUNICATION_ERROR. Please advise on what is wrong and how to resolve this issue.Thanks.
I want to make 24 bit resolution adc reading from STM32H573I-DK starter kit. For this, after the documents I examined, I decided to configure ADC1 as master ADC2 as slave in dual regular conversion mode. However, when I run the code after making the necessary configurations in CUBE IDE, HAL_ADCEx_MultiModeConfigChannel(&hadc2, &multimode) != HAL_OKI go to the error handler after the line. Although I created the cube from ide, it returns an error value from this line. When I look inside the functionADC_MULTI_SLAVE(hadc, &tmp_hadc_slave);lineif (tmp_hadc_slave.Instance == NULL)I saw that it returned null in the If block. Adc2 does not seem to be a slave.How can I solve this problem? I am waiting for your help. Thank you.ADC1 InitADC2 Init
Hi I would like to ask if there is any possible alternative to how I'm transmitting values from my STM32F407 Discovery to my PC which receives and buffers the data using a Python program. These are the functions I'm using to transmit my values: void Serial_logi(int val) { char buffer[10]; itoa(val, buffer, 10); Serial_log(&buffer[0]); } void Serial_log(char *s) { while (*s) { while (USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET) ; // Wait for Empty USART_SendData(USART2, *s++); // Send Char } } The current implementation converts the decimal value which I wish to transmit, val (0-255) into a string of characters, and then transmits the string character by character. The problem with this implementation is that when I use my Python program to receive the data it does not store it as I want. For example, when I transmit the value 255, instead of storing the first byte as 255, it stores 50 as the first byte because the ASCII value of 2 is 50, a
Hi all,I am writing to you to find out which is the best RTOS between Azure RTOS, FreeRTOS and SafeRTOS both from the point of view of performance and from the point of view of flexibility and ease of use?I have to develop some projects with STM32U5, STM32G0, STM32F4 and STM32F7. What could be the best RTOS solution for these processors?I would also like to know where I can find a guide from scratch that explains step by step how to create a project using CubeMX and IAR with Full Speed or High Speed USB, SPI, I2C and GPIO with these RTOS?Thank you very much for the support.
Hello, where do I download the AAC decoder ? Does it require a license ? How much does it cost ?
Hello everybody,I am trying to use the TIM3 those input capture mode with DMA transfer. After buffer is full the DMA call the callback function IT. Then i execute the stop DMA function. But after this sequence, the DMA no reinitialize. I am using the Cube MX for initialize the code.What could I be doing wrong?I am using the STM32C011F6P6 The code:uint16_t period_buffer[52];HAL_TIM_IC_Start_DMA(&htim3, TIM_CHANNEL_1, (uint32_t*) period_buffer, 52); void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim){ HAL_TIM_IC_Stop_DMA(&htim3, TIM_CHANNEL_1);}
void CAN_Filter(uint8_t filter_index, uint32_t Filter_ID){CanFilter.FilterType = FDCAN_FILTER_MASK;CanFilter.IdType = FDCAN_EXTENDED_ID;CanFilter.FilterIndex = filter_index;CanFilter.FilterConfig = FDCAN_FILTER_TO_RXFIFO0;CanFilter.FilterID1 = Filter_ID;CanFilter.FilterID2 = 0x1FFFFFFF;if(HAL_FDCAN_ConfigFilter(&hfdcan1, &CanFilter) != HAL_OK){Error_Handler();}} The mcu is using g473. I would appreciate it if you could provide detailed information, from Cubemx settings to filter settings in the code. Thank you
Hello STM32 friends!Board: Nucleo-H755ZI-QCore used for LWIP: M7Goal: LWIP without RTOS(UPDATE below: I solved my own question, find it on github, hope to help somebody with it)I have followed many posts on the ethernet topic, but for a long time I was unable to get lwip working on the Nucleo-H755ZI.I got it working on an F7 and H7 (without RTOS) a long time ago, back when TrueStudio was still in use.Now that I'm using the latest STM32CubeMX 6.11.1, STM32CubeIDE 1.15.1 and the latest H7 firmware 1.11.2, I can't seem to get it to work.I've been following a lot of good posts on this topic and taking a lot of notes.Since I've been struggling for days, I posted a simple project on GitHub.The project includes a flashing LED to indicate that the M7 core has started and is running (not hanging in an error handler).If it only responds to ping requests, I'll be very happy.I will then add a TCP and UDP server and client to it, and perhaps an HTTP server.My little project is posted here:http
Hi y'all.I'm working on a project which uses a stm32 nucleo board (f446re) as both usb host and device, using USBFS as device and USBHS as host.The goal is to make some sort of interface between computer and memory sticks, which renders them as read only devices.Currently I was able to bring up micro as a usb MSC device and connect it to computer with relative ease, ans also I can read/write on any MSC devices attached to my board (on specific sectors) hence I get to conclusion that both usb device and usb host roles of micro are working correctly independently.The problem is when I try to merge these two roles together, in a way that micro is a bridge between computer and memory stick, it fails without any good explanation. When I atttach my memory stick to board, for a brief time OS recognizes the filesystem and even shows there is a partition on memory stick, but after a few seconds it vanishes and os cannot mount my filesystem as if usb device is not attached to micro at all.Can an
The STM32L4 microcontroller is used. I would like to use this microcontroller to incorporate FFT in a program in C language. I would like your advice on what kind of program would be best. The instruction manual had MATLAB but not C language. So I would like to know. Thank you in advance for your help.
I have used eDesignSuite to generate firmware code for my vienna rectifer. I need some more clarity/documentation on implementation of the code. Many things are unclear, such as at start-up, there is a pin dedicated to an relay, which will limit the current by adding an resistor in series with the capacitor. My doubt is, weather the firmware code will itself control this things, or do I need to write seprate code, to precharge the capacitors and avoid inrush current?The other doubt which I had, is to do with the preconfigured communication pins. where are these used?I am also not able to understand the DAC pins configured. where are these used again?I know that ST cannot disclose everything, but atleast there should be proper documentation on the usage of firmware. Please help me out, so that I can use this firmware in my project!!!
Hai All,I am using USB OTG using ULPI protocol in my STM32F series controller.I entered a print statement inside the USB interrupt handler to monitor the interrupt. Then I found that whenever I connect USB drive the interrupt is hitting continuously until I remove the USB drive.Whether it will happen or not.I am confused about this.Please give me an answer.
Hi Community,I recently came across an issue with calloc used inside a FreeRTOS thread where it returns a valid address after initialization. Still, while storing data (out of 67 bytes), it stores only a few of them (around 12 bytes) and hits a hard fault when freeing.This behavior is not immediately after initializing a thread but after some iterations of calloc followed by free.Why is that so?Do you have any suggestions on how to avoid these scenarios and ensure a stable system by utilizing FreeRTOS features?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.