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
Dear STM32 communityI am trying to setup the ST7735 Display (ST7735) with SPI and DMA for a faster refresh rate. Without DMA everything works fine. When i setting up DMA nothing is displayed on the Display.My DMA and SPI Settings are:I want to fill the Screen with black color, for this i use the function fillScreen() from GFX_FUNCTIONS.c. To Transmit the data via DMA i have replaced the old functions in ST7735.c with the DMA Transmit function in ST7735_FillRectangle(), ST7735_WriteCommand() and ST7735_WriteData().For detail view i have attached the main.c file and the library files from the Display (ST7735.c and GFX_FUNCTIONS.c). I am using a Nucleo-G474RE Boeard with STM32 Version 1.15.1.I really someone of you guys could help me.Thanks a lot for your time!Best regards,Raphael
Hello! I'm a firmware design engineer, and along with my team, we're working on UWB development. We recently received a Qorvo kit (DW3300QDK1) along with the EVB STM32 Nucleo-F429ZI to work with their SDK. However, we couldn't find any documentation (developer/user manual, guides) on using their SDK with your EVB. Where can we access that information?I'll appreciate your support.
Hello im working on a project where im modifying data on STM32 and transmiting it via UART on my other hardware(ESP32).Im having troubles, my best guess is at sending data thought UART. Because of the delays in my code I've implemented DMA which would resolve that issue. The trouble im facing is, when i let the code run without breakpoints the data received looks like that:It looks like the buffer im transmiting is getting sent over multiple times until its completed? That in fact delays my whole process, as you can see it takes 0.6s for 1 data to be transmitted. However if I manually break and start code the data is transmited completely in one step.I want to know, if that has been issue resolved in the past, or is it possible that im receiving this data in the wrong way?
Hi everyone, I am kinda new at Embedded programming and I wanna ask a question.I am working on a library development of ADXL345 sensor and when I read the datasheet of this sensor here is the information that I got:"An alternate I2C address of 0x53 (followed by the R/W bit) can be chosen by grounding the SDO/ALT ADDRESS pin (Pin 12). This translates to 0xA6 for a write and 0xA7 for a read." This means I2C address of ADXL345 is = 0x53 HEX and "0101 0011" Binary.after 1 bit left shift and write address is = 0xA6 HEX and "1010 0110" Binary.after add 1 bit to the shift address is = 0xA7 HEX and "010 0110" Binary. When I run this code block in STM32 : I got the A6 write address instead of 0x53 I2C address. Do you know why ? I got an opinion but I am not sure. When I read the brief of HAL_I2C_IsDeviceReady() function it says:"@brief Checks if target device is ready for communication."so its mean " I am trying to write something and checking for knowing can I write or
Bonjour,M-Extend est une société basée à Acigné près de Rennes en Bretagne. Nous sommes équipementiers agricoles et nous fabriquons essentiellement des chargeurs frontaux pour les tracteurs. https://m-x.eu/Je travaille au pôle innovation en tant qu'ingénieur système embarqué et je suis actuellement sur un projet à base de STM32.Le système devra piloter des actionneurs hydrauliques qui peuvent être dangereux. Nous avons donc besoins de conseils en Safety.Dans un premier temps, nous voudrions savoir si X-Cube-STL peut répondre à ce besoin. Si oui, comment ça fonctionne et comment se le procurer ? Cette solution a t-elle un coût ?CordialementGuillaume P
Hello All, I hope you are all doing well !I m writing to ask help, I have problem with my STM32f765vit6 and an ADS131e08 .My the ADS131E08 stops communicating over SPI in continuous mode after a few seconds and block the SPI communication again. But with a Hardware reset and During this,It works Fine but abnormal values are recorded, and the periode to read values is limited due to the hardware reset. Issue: The ADS131E08 stops communicating over SPI in continuous mode after a few seconds without a reset before blocking SPI communication. However, it operates in discontinuous mode with a hardware reset and delay. During this, either abnormal values are recorded, or it works continuously for approximately one hour .Could anyone please provide insights or suggestions on resolving this issue where the device stops working in continuous mode? is there any chance to be a frequence configuration issue or is it a hardware issue ?there any guidance to config
Board: STM32F411REGreetings,I am trying to make a program where the mcu read an audio file on the SD card, apply a sound filter on it, and write the output to a different file. The program will split the audio file into small chunks and compute them one by one:Open the source file to readOpen a new file to write the resultRead a chunk of the source fileApply filter onto the chunk, the output is written into a distinct buffer (array)Write the buffer into the opened fileRepeat 3-5 until the whole file is done (total chunk size = source file size)Close source fileClose new fileI am facing a problem where f_write will trigger a HardFault interrupt handler when it is called a 2nd time. (Code is attached below.The audio is in the format .wav, so I have adapted tinywav library by mhroth to work over SPI for fatfs:For reading, I'm using: f_open(..., ..., FA_READ)For writing, I'm using: f_open(..., ..., FA_WRITE | FA_CREATE_ALWAYS), I tried to add FA_OPEN_APPEND as well but result is the same.&
i need to add the stm32h743 in to the proteus , bcz i dont have the hardware.can anybody tell how to download stm32h743 library file for proteus or direct link to download file . thanks.....
Hi,"Could you guide me on configuring USART1 and USART6 on the STM32H723VGT6 microcontroller to enable data forwarding? Specifically, I'm looking to trigger USART6 DMA transmission whenever USART1 receives data on interrupt. How can I achieve this effectively, ensuring seamless data transfer between the two USART peripherals while optimizing performance?"Aman SharmaRegards.
does anyone have a configuration for the CypressS26KL256S hyperflash? in the stm32cube_fw_l4_v1130 are examples only for regular command mode (micron or macronix) but not for hyperflash mode. thanks in advance
I am facing an issue on one of our stm32f4 boards. We have a custom bootloader , which boots up the app as below __disable_irq(); HAL_RCC_DeInit(); __HAL_RCC_AHB1_FORCE_RESET(); __HAL_RCC_AHB1_RELEASE_RESET(); __HAL_RCC_AHB2_FORCE_RESET(); __HAL_RCC_AHB2_RELEASE_RESET(); __HAL_RCC_AHB4_FORCE_RESET(); __HAL_RCC_AHB4_RELEASE_RESET(); __HAL_RCC_APB3_FORCE_RESET(); __HAL_RCC_APB3_RELEASE_RESET(); __HAL_RCC_APB1L_FORCE_RESET(); __HAL_RCC_APB1L_RELEASE_RESET(); __HAL_RCC_APB1H_FORCE_RESET(); __HAL_RCC_APB1H_RELEASE_RESET(); __HAL_RCC_APB2_FORCE_RESET(); __HAL_RCC_APB2_RELEASE_RESET(); __HAL_RCC_APB4_FORCE_RESET(); __HAL_RCC_APB4_RELEASE_RESET(); __set_MSP(*(__IO uint32_t*)0x8050000); JumpToApp(); /****** end of bl ********/ and in the startup code of app , SCB->VTOR = 0x8050000; __DSB(); __ISB(); Then following is done Switch on PLL .. some flash and ram tests .. Start HSE clock and Enable clock security .. Then Timer 5 is configured to measure the clock peri
Hi Team,I've recently cloned https://github.com/STMicroelectronics/STM32CubeL5/tree/master/Projects/STM32L562E-DK/Applications/USB-PD/USB-PD_Consumer_1port , for USB PD project.But when i imported the folder into workspace ,the build option is disabled in the cube ide. I also tried updating the IDE, but the problem remains same.how to build that file system?Thanks in advanceNithin
Hello everyone,I am working with stm32f070c6 , I am developing an application of USB_CDC , When I build the project it is showing the error of 1. .text' will not fit in region `FLASH'2. `FLASH' overflowed by 12480 bytesactually I had increase the heap size to 0x400 and stack size 0x400, In my program I am using a buffer size of 64 bytes,can you please help me out how to overcome flash overflow error.
Hello guys, I tried to use the HAL_SDAC functions to read two Analog signals (0-3.3V) with DMA but I didn't have good results.That's why I started reading only one Analog signal in Polling mode (ING 5)....unfortunately even in this case I always read zero (AD_result=0)I am using the STM32F373 and STM32CubeIDE.Any good ideas?My configuration: The code in main.c:/* Initialize all configured peripherals */MX_SDADC1_Init();HAL_SDADC_CalibrationStart(&hsdadc1, SDADC_CALIBRATION_SEQ_1)HAL_SDADC_PollForCalibEvent(&hsdadc1, 10); HAL_SDADC_SelectRegularTrigger(&hsdadc1, SDADC_SOFTWARE_TRIGGER); HAL_SDADC_AssociateChannelConfig(&hsdadc1, SDADC_CHANNEL_5, SDADC_CONF_INDEX_0) ;HAL_SDADC_ConfigChannel(&hsdadc1, SDADC_CHANNEL_5, SDADC_CONTINUOUS_CONV_OFF); HAL_SDADC_Start(&hsdadc1); while (1){HAL_SDADC_PollForConversion(&hsdadc1, 100); // Poll ADC1 Peripheral & TimeOut = 1mSecAD_result = HAL_SDADC_GetValue(&hsdadc1); // Read ADC Conve
I have custom hardware with a STMF407VET6 connecting to a ethernet switch via the MII interface.I am using STMCUBEIDE 1.15.1 to generate the basic code. For debugging I am using a barebones configuration for the ethernet connectivity and a GPIO to control the ethernet switch reset to ensure the strapping pins are properly loaded. FreeRTOS with LWIP [BSP = MII]. When I run the debuggerThere is a HAL_ERROR returned in the HAL_ETH_init() function at this point. __HAL_RCC_SYSCFG_CLK_ENABLE(); /* Select MII or RMII Mode*/ SYSCFG->PMC &= ~(SYSCFG_PMC_MII_RMII_SEL); SYSCFG->PMC |= (uint32_t)heth->Init.MediaInterface; /* Dummy read to sync SYSCFG with ETH */ (void)SYSCFG->PMC; /* Ethernet Software reset */ /* Set the SWR bit: resets all MAC subsystem internal registers and logic */ /* After reset all the registers holds their respective reset values */ SET_BIT(heth->Instance->DMABMR, ETH_DMABMR_SR); /*
Hello, I'd like to change speed (clock prescaler setting in CFG1) and then resume sending bytes on SPI.Right now, I do :retval = HAL_SPI_Abort(&hspi2); My_SPI2_Init(SPI_EyeGenPrescaler);where My_SPI2_Init is just slightly customized version of Mx_SPI2_Init with new Prescaler value as input argument. After this, I don't see anything on SPI MOSI output. What am I doing wrong? Is something else needed to shutdown SPI and initialize it at new prescaler value ? Can I somehow change speed more fine-grained than just changing prescaler to values like powers of 2 ? Thanks,regards.
I am working on Graphic Display(JDH12864E) using STM32L031K6. I have written code and I found that my lcd is printing only half of screen.For example:- I try to print ("12345678912345") then it prints only ("123456789") it means it is printing only 10 char.I think the problem is with GLCD_EnableController and GLCD_DisableController function. I tried to search on google i i found that CS1 and CS2 pin is responsible for Left half of screen and Right half of screen but i could not resolve it. please help me to solve this error, so i can print full screen .my code is :-/********************************main.c**************************************************/ int main(void) { HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); HAL_Delay(100); GLCD_Initialize(); HAL_Delay(100); GLCD_ClearScreen(); while (1) { GLCD_GoTo(0,0); GLCD_WriteString("Hello World!"); HAL_Delay(10); } } static void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */
Hi,I need to develop a bootloader for my application using the STM32G030C8 and went through the "How to create a super simple bootloader" videos (https://www.youtube.com/playlist?list=PLnMKNibPkDnEb1sphpdFJ3bR9dNy7S6mO). These videos showed a very handy feature of the STM32CubeIDE when you can debug the bootloader and application together, thus being able to see a correct jump from the bootloader to the application. This is done by loading both the bootloader and application projects in the IDE and select both projects in the debug setting. My question is, is there a similar way to compile a single HEX files which includes both the bootloader and application firmware?Thanks
As far as I can tell, there is a bug in mem_init() in mem.c this can cause a memory overrun and hard fault (if you're lucky) In lwipopts.h I set LWIP_RAM_HEAP_POINTER = 0x30004000 MEM_SIZE 0x4000 I would expect the pool to be from 0x30004000 to 0x30007FFF however mem_init() has this code ram_end = ptr_to_mem(MEM_SIZE_ALIGNED);ram_end->used = 1;ram_end->next = MEM_SIZE_ALIGNED;ram_end->prev = MEM_SIZE_ALIGNED; ram_end is set to 0x30008000 and the instruction 'ram_end->used = 1' writes beyond the allocated memory, and in my case outside the memory_segment and hard faults. If the pool is elsewhere it'll overwite the next address outside the pool - eek. using STM32Cube_FW_H7_V1.11.2 path to file STM32Cube_FW_H7_V1.11.2\Middlewares\Third_Party\LwIP\src\core\mem.c but same code in F4, and others I guess.
Hello Team,I have recently started working with STM32 microcontrollers, specifically the STM32H573.In my current project, I am utilizing FreeRTOS as the real-time operating system (RTOS). However, I need to incorporate support for the FAT file system, and unfortunately, I haven’t been able to find any relevant documentation.Could you please guide me on how to add FAT file system support to FreeRTOS for the STM32H573?Any assistance or pointers would be greatly appreciated.Thank you in advance for your help.Best regards,Paras
Good afternoon togetherI got myself a Nucleo with the STM32G474RE and a shield X-NUCLEO-SNK1M1 to develop a USB-C PD interface (sink), now I cloned the example from Github, built and downloaded it. The cable and the power plug are recognised, but if I select a specific PDO, I get the following message "Message Rejected from this Port Configuration" (see picture). And no PDO is selected. How should I configure the port, if this is not already set in the example?
Greetings,I am using a NUCLEO-H563ZI with the STM32CubeIDE, and wanted to create a new project based on FREERTOS. It appears that FREERTOS is not part of this release, and the tools tell me I have to download it.1) Is there a version on FREERTOS compatible with STM32Cube_FW_H5_V1.2.0?2) I see that STM32Cube_FW_H5_V1.2.0 supports ThreadX, is ST moving away from FREERTOS support infavor of ThreadX?3) How can I download and install FREERTOS into STM32Cube_FW_H5_V1.2.0? ThanksKen
STM32G431K8 SVD file seems wrong. Reference manual (RM0440, February 2024 RM0440 Rev 8) show EXTI->PR1 bits PIF29,PIF30,PIF31 (Comparator 3,4,5 outputs). Fresch SVD file (STM32G4 SVD V2.2) missing these bits.
hello ST users, i was trying to merge bootloader bin file and application bin file any possible solutions please help me .
Hi, I'm working on a modified CDC USB device in full-speed mode (STM32WB55, with STM Cube 1.9.0). I modified it to be a CCID class device.The issue I'm having is that when I send data of length 50 (51, 52, 242,243,244, 247,248,249), it just fails and crashes the USB port.After trying to find the source of the problem. I have found that the length of data returned passed to my CCID code is the wrong length.I've pinpointed that the USBD_LL_getrxdatasize function is returning the wrong length or gets corrupted somewhere (when it fails it returns something like 50000 bytes and that's what probably crashes the device). Any help would be appreciated
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.