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 , This is Krishnaraj K , Project Associate , CEET, IITMRP . We are in need to interface C270 USB Webcam Interface with Stm32l496Ret6 Microcontroller . We found a source at which is wriiten for stm32f429zi . But its difficult to migrate to our microcontroller .Would be fine if there any official Driver for UVC . Awating for good response . Thanks Krishnaraj K krishnarajk@tenet.res.in
Hi AllI have a problem with a ThreadX-based project on a Nucleo H563ZI board when using a mutex.The mutex locks access to an FDCAN peripheral, and a message-buffer data structure during CAN-FD message transmission. The problem only shows up when I load-test the system by running a tight loop on a thread attempting to send messages continuously; there is a separate thread will will send heartbeat messages at a much lower rate.After a seemingly random amount of time (typically of the order of 10 seconds, equating to usually 50,000-100,000 mutex accesses) the code hard-faults in tx_mutex_put.c, at line 386, snippet below. The fault is at the check for `(mutex_ptr -> tx_mutex_owner) -> tx_thread_priority;` at this point mutex_ptr->tx_mutex_owner is null, hence the crash.I can workaround it by putting a check for (mutex_ptr->tx_mutex_owner != TX_NULL) around the if block, but I don't feel comfortable with this, it feels like covering up the symptom rather than addres
Hi friends,I have need one help regarding my interface i have interface STM32F103C8T6 with 4.2inch e-Paper Module (B).when I am trying to upload the code to display through stm32 ,display show Full red color on display. I have used library download on Waveshare tutorial website like E-Paper code. I configured all configuration correctly but i did not know what is the problem so give the solution for my error. Also i have attached my code file in the below attachment.Thank you advance for responses.
GoodmorningI have a new STM32L496ZGT6PU board and I'm currently trying to print a message on the debugger serial terminal, I've followed many official guides step by step failing every time.In particular, I perform the following:Connect the board through a USB type micro-B cable to my laptop (USB PWR connector).Create a new STM32 project, selecting the NUCLEO-L496ZG-P board from the board selector -> target language C++ -> initialize the peripherals with their default mode (YES).In Pinout & Configuration I go to Connectivity -> USART2 -> Mode Asynchronous and leave the default values.Device Configuration Tool Code GenerationIn Src/main.c simply write the following two lines of code in the main() function: /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_UART_Transmit(&huart2, (uint8_t*)"Ciao ", 6, 100); HAL_Delay(1000); } /* USER CODE END 3 */ Then I build the project and sta
hello, I am developing an application which makes use of LIN break interrupts. At the moment I am using two STM32 dev boards:STM32C0116-DK ( which uses STM32C011F6U6)STM32 NUCLEO G531 (which has STM32G431KBT)We are using the LL drivers interface.Although one processor is Cortex-M0+ and the other is M4, the description of the USART operation seems the same for each processor, as does the low level interface.However, we are seeing very odd behaviour on the C11 (Cortex M0+) platform - we get the LBD interrupt, but it happens a considerable time after the break.. On the M4 platform we see the interrupt a few us after the break is done.UART config and ISR implementation is the same on each platform. (Most of it is generated by Cube.) Here is the code for UART initialisation: static void MX_USART1_UART_Init(void) { /* USER CODE BEGIN USART1_Init 0 */ /* USER CODE END USART1_Init 0 */ LL_USART_InitTypeDef USART_InitStruct = {0}; LL_GPIO_InitTypeDef GPIO_InitStruct = {0};
I’m currently using mbed TLS 2.16.2 on an STM32F407G microcontroller with a SIM7600G GSM module to connect to an Azure MQTT broker over a GSM network. During the certificate parsing, I’m encountering the following error:"X509 - Signature algorithm (oid) is unsupported : OID - OID is not found" The STM32F407G is successfully initialized and connected to the GSM network via the SIM7600G.The device obtains an IP address and the connection to the Azure MQTT broker is established.However, when mbed TLS tries to parse the root certificate, it fails due to an unsupported or unrecognized signature algorithm in the certificate. I’ve ensured that mbed TLS has the correct configuration options enabled for RSA and SHA256 support in config.h (such as #define MBEDTLS_RSA_C, #define MBEDTLS_X509_RSASSA_PKCS1_V1_5, and #define MBEDTLS_SHA256_C).The broker’s certificate is from a trusted authority (DigiCert Global Root G2).I’ve checked if mbed TLS supports the signature algorithm used b
Kindly suggest the c code for MAx1300 interfacing with STM32F429ZIT6. I need algarithm or source code for Full scale Reading Range from -3xVref and +3xvref.. FSR =24. that's +12 and -12vDr R RaghunathDhanventhra Bio Sys Chennai India
The structure of the stm32 usb device library feels very complex, is there any tutorial to clarify the structure?I want to implement a UVC.This is a picture I found on a wiki, but I can't make sense of it.For example, the file stm32xxx_ll_usb has no LL for the API name, but the USB core has LL for the API name, which is very confusing, and PCD HAL driver The name doesn't tell you what it does.If the following structure is better applied
Hello all , I am facing a issue of hard fault because of some reason however after analyzing issue I suspect this could be due to use of structure having uint64_t variable having bit fielding. I have also attached snapshot of issue which I am facing(Precise data access violation). typedef struct _st_device_info_payload { uint64_t IMEI : 50; uint64_t BLE_MAC_ID : 48; uint64_t WiFi_MAC_ID : 48; uint16_t Server_Port; uint64_t SIM_ICCID_1 :6; uint64_t SIM_ICCID_2 :64; char Server_Domain_Name[20]; char APN[20]; }st_device_info_payload; Please confirm these few points. 1. Can I use uint64_t for STM32H7 MCU. 2. Can we use bit fielding for uint64_t variable for stm32h7.
Hello, I'm trying to bring up a simple ethernet client on a STM32H730VBT6 custom board. Looks like I have a 128KB of Flash and 560KB of RAM and my code would not fit into flash after I have enabled. I modified the linker script to to remap the text section to point from FLASH TO RAM_D1. PS : Not sure what other things I'm breaking by doing this. The code compiles okay and now my memory region looks like this after the modification. I'm having a hard fault @HardFault_Handler() at stm32h7xx_it.c:93 0x24001c08 I believe my lwip heap is pointing to the wrong location in the RAM. Can someone help me understand how to fix this or map only the sections of lwip to ram? Attached my .ioc file.
I cannot get the RS232 Rx interrupt to work.I am working with the stm3210c-eval board. I know it is no longer available; but it has a version of the processor that I wish to use and Ethernet support.I am initiating the receive via:HAL_UART_Receive_IT( &USART_TDP_Handle, &(USART_TDP_RxBuffer[0]), 1);The call back function HAL_UART_RxCpltCallback(HAL_UART_RxCpltCallback) is simple:USART_TDP_ring_Buffer[USART_TDP_ring_Rx_in++] = USART_TDP_RxBuffer[0]; HAL_UART_Receive_IT( &USART_TDP_Handle, &(USART_TDP_RxBuffer[0]), 1 ); BSP_LED_On(LED3);So, if nothing else the LED should turn on when a byte is received. It does not. I have verified the LED works.This is my initialization (not that STcubeMX did not initialize the UART Rx pin correctly):__HAL_RCC_USART2_CLK_ENABLE(); USART_TDP_RX_GPIO_CLK_ENABLE(); USART_TDP_TX_GPIO_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE(); /**USART2 GPIO Configuration PD5 ------> USART2_TX PD6 ------> USART2_RX */ GPIO_InitStruct.Pin = USART2_TX
Dear ST,I facing a problem or bug in the calculation routine of your stm32f7xx_hal_spi.cExplicit in line 3117 of the function call: SPI_DMAReceiveCplt()I using DMA SPI only the MOSI channel as RX_Only. This works as expected, when I dont activate CRC calculation. If crc is enabled (in 8Bit Datasize) the rountine raised the condition: RXNE timeout als HAL Error. 1. Why you check during that time the RXNE flag anymore, during the function call is that flag usualy already not set anymore, when the DMA ITQ was raise? To see here: if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { /* Wait until RXNE flag */ if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) { /* Error on the CRC reception */ SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); }2. I do
Hello ST Community!I have a problem and I need your help. I have searched and read most of the related articles but couldn't find a solution! I am using:Hardware: Nucleo H755 board connected directly to the computer.Software: STM32CubeMX version 6.12 and MDK-ARM compiler version 5.41I have carefully read the article: https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308 and some other related tutorials, as well as related comments. I have followed the following steps.Configure according to the instructions for CM7 core, no RTOS used.Generate code (MDK Toolchain; min version 5.32).Add MX_LWIP_Process to the main loop.Compiling with the option [ARM Compiler: Use default compiler version 5] results in an unusually very slow compilation time.Compile with option [ARM Compiler: Use default compiler version 6] then compile time is normal but there is an error: ../Middlewares/Third_Party/LwIP/system\arch/cc.h(50): error: 'sys/ti
I have a STMCubeMX project in which I've changed to 1ms tick in ThreadX. This shows the following from printf:UX_PERIODIC_RATE=100TX_TIMER_TICKS_PER_SECOND=1000The attached STM32CubeMX project is ported from Ux_Device_CDC_ACM to run on the STM32H743I-EVAL board and migrated to STM32CubeMX 6.12.1USART1 is used for printf output. USB_OTG_FS is set up for device cdc.StartedUX_PERIODIC_RATE=100TX_TIMER_TICKS_PER_SECOND=1000*** MX_USBX_Device_Init *** *** MX_USBX_Device_Init *** complete *** USBX_APP_Device_Init *** *** USBX_APP_Device_Init *** complete *** usbx_cdc_acm_read_thread_entry *** *** usbx_cdc_acm_write_thread_entry *** *** USBD_CDC_ACM_Activate *** *** USBD_CDC_ACM_Activate *** complete*** USBD_CDC_VCP_Config *** *** USBD_CDC_VCP_Config *** complete UX_PERIODIC_RATE is defined in ux_port.h at line 133:#ifndef UX_PERIODIC_RATE#define UX_PERIODIC_RATE 100#endif It is also defined in ux_api.h at line 893:#ifndef UX_PERIODIC_RATE#ifdef TX_TIMER_TICKS_PER_SECOND#define UX_P
Hello,I'm using STM32CubeH7 1.11.2 and STM32CubeIDE 1.12.1.The zip files available both on github and on st.com for STM32CubeH7 1.11.2 are not functional because many files are missing (not the same in both zip files b the way...). I guess this is because of the submodules in the git repository, I guess the zip generation did not include the submodules.Would be great to re-generate the zip files or remove the links for the zip files and let people download only through git. I have lost a lot ot time dealing with this.Regards
I am using SPI to communicate between STM32H7B3I-DK (master) and Nucleo-H743ZI(Slave). My Data transmits as expected; however, after transmission the MISO and MOSI lines stay high. I have Master Keep IO State Enabled on both.I am not using HW NSS, and have setup my own NSS(nCS)SLAVE SPI: hspi1.Instance = SPI1; hspi1.Init.Mode = SPI_MODE_SLAVE; hspi1.Init.Direction = SPI_DIRECTION_2LINES; hspi1.Init.DataSize = SPI_DATASIZE_8BIT; hspi1.Init.CLKPolarity = SPI_POLARITY_LOW; hspi1.Init.CLKPhase = SPI_PHASE_2EDGE; hspi1.Init.NSS = SPI_NSS_SOFT; hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi1.Init.TIMode = SPI_TIMODE_DISABLE; hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; hspi1.Init.CRCPolynomial = 0x0; hspi1.Init.NSSPMode = SPI_NSS_PULSE_DISABLE; hspi1.Init.NSSPolarity = SPI_NSS_POLARITY_LOW; hspi1.Init.FifoThreshold = SPI_FIFO_THRESHOLD_01DATA; hspi1.Init.TxCRCInitializationPattern = SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN; hspi1.Init.RxCRCInitial
Good morning,I rebuild all of the project/examples/DataLogTerminal contained in X-CUBE-MEMS1 and provided by ST without changing anything with the code generated by CubeMX.The build log gives me this error:Fatal error[Pe1696]: Unable to open source file "motion_sensor.h" C:\Users\......\Desktop\X-CUBE-MEMS1\Projects\NUCLEO-F401RE\Examples\IKS02A1\DataLogTerminal\Inc\iks02a1_motion_sensors.h 29I add the missing libraries and files but other errors are created.Is it a code generation bug in CubeMX.ioc that doesn't add the libraries and files correctly?
on STM32H745 nucleo board, Ethernet ping command working in debug mode but failing in standalone mode. Please help
Posted on May 23, 2014 at 17:38Hey :) is there a way to put the stm32f429 on the discovery board into dfu mode? I tried to set the BOOT0 & BOOT1 jumper, but the PC wont detect a dfu device. But it seems that the bootloader works, cause the flashed program doesnt start. Maybe there is a hidden jumper or something like that? On the f407-discovery it worked fine. Thanks for your help Mirco Controller #dfu-stm32f429-discovery
I am using the Nucleo-H743ZI, with a SPI ISR I wrote originally on the STM32H7B3I-DK board. However, when I usevolatile uint8_t rxBuffer; volatile uint8_t txBuffer; *((__IO uint8_t *)&hspi->Instance->TXDR) = txBuffer; //or rxBuffer = *((__IO uint8_t *)&hspi->Instance->RXDR);I get a syntax error on the Nulceo. I checked the stm32h7xx_hal.c file and they use these two lines for the default SPI handler. I have stm32h7xx_hal.h included, but still have a syntax error... wondering if anyone knows what may be going wrong. I'm not sure why there is no error on my STM32H7B3I-DK board, but there is on the Nucleo.
I've got an STM32H7RS, and am attempting to use HPDMA to do a memory-to-memory transfer where one side is the FMC.The transfer works perfectly if I use GPDMA.With the exact same code (just replacing the GPDMA handle with an HPDMA one) does not work (it returns an error from HAL_DMA_PollForTransfer) and reports:State: HAL_DMA_STATE_READYError: HAL_DMA_ERROR_DTEI've initialized HPDMA with the exact same parameters (and I've made sure to enable the HPDMA clock with __HAL_RCC_HPDMA1_CLK_ENABLE() at the top of MX_HPDMA1_Init()). My MX_HPDMA1_Init(): /* USER CODE BEGIN HPDMA1_Init 0 */ __HAL_RCC_HPDMA1_CLK_ENABLE(); HAL_NVIC_SetPriority(HPDMA1_Channel12_IRQn, 8, 0); HAL_NVIC_EnableIRQ(HPDMA1_Channel12_IRQn); /* USER CODE END HPDMA1_Init 0 */ /* USER CODE BEGIN HPDMA1_Init 1 */ /* USER CODE END HPDMA1_Init 1 */ handle_HPDMA1_Channel12.Instance = HPDMA1_Channel12; handle_HPDMA1_Channel12.Init.Request = DMA_REQUEST_SW; handle_HPDMA1_Channel12.Init.BlkHWRequest = DMA_BREQ_
Hello,I'm using the STM32F767ZITx MCU and the lwIP library to transmit and receive UDP packets every 1 ms.Everything works fine but sometimes, after the ARP table has expired, UDP packets are no longer transmitted for several seconds even though my STM has received a response to its ARP request (as seen with Wireshark).What solutions are there to avoid this scenario? Is this normal lwIP behavior?Thanks for your help.
Good morning,I am trying to use the RTC and I managed to make it work as expected for the 24hs format, it has no delays and when resetting I could see how to make it save the time but I am having a problem with the 12hs AM/PM mode, the set to go from AM to PM that is used in the set_time function on line 53 does not work, when doing a get_time the only way to indicate PM is if I write in the variable directly after reading what the RTC stores, what am I doing wrong? . all the tests are done by debugging to see in live expression what is stored in time and date.when entering set_time it is supposed to change to PM. my board is a stm32h745I-disco. /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include <stdio.h> /* USER CODE END Includes */ /* Private typedef -----
Hello,Using HAL_UART_Receive_DMA() function and expecting an N length message, so have set the buffer length and transfer size to N.The communicating equipment sometimes adds an extra character / or drops a character which is taking my DMA out of synchronisation.Once out of synchronisation it is then staying like this until a reset occurs. I can capture that it is out of sync and log a data error. When this occurs I would like to restart the DMA so that the data is resynchronised.Example of the problem below:Normal Operation Receive Bytes: 1, 2, 3, 4, ... NWhen out of Sync every receive now looks like: 2, 3, 4, ... N, 1What functions are in the HAL that allow me to resynchronise the DMA in the best way?Thanks in advance.PS - Have moved away from using DMA to IDLE as the connecting equipment sometimes drips feeds bytes in a disorderly fashion.
Hi everyone, I'm working on a project using the Nucleo-G474RE board and the Arduino IDE. I'm aiming to utilize advanced peripherals like FDCAN and USB. While the Arduino Core for STM32 provides a simplified interface, I'm facing challenges in directly accessing the low-level hardware registers for these complex peripherals. I believe leveraging the HAL layer would be a more suitable approach. I'm seeking guidance on the following: HAL Layer Integration: How can I effectively integrate the STM32 HAL library into my Arduino sketches for the Nucleo-G474RE? Are there any specific libraries or examples demonstrating this process? Peripheral Configuration: What are the best practices for configuring FDCAN and USB peripherals using the HAL layer on the Nucleo-G474RE? Are there any specific considerations or pitfalls to avoid? Middleware Development: Can I develop custom middleware (e.g., USB device/host drivers) to extend the functionality of these peripherals? If so, what are the rec
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.