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
Kindly provide me the latest Firmware version for the above-mentioned Product along with the necessary instruction to upload it using STM32 ST Link Utility.We are currently getting old firmware issues screenshot attachedPlease assist us regarding this at high priority.
Anyone have J2534 support library for STM32f4 devices...?J2534 is an interface standard designed by SAE (Society of Automotive Engineers) and mandated by the US EPA (Environmental Protection Agency) for vehicle ECU reprogramming.
I'm using two STM32F407VGTX EVK boards to configure as host and device in BareMetal, which is working fine.I have configured (Host and Device) the same in FreeRTOS, but it is hitting hardfault error from "static void USBH_Process_OS(void *argument)" function( usbh_core.c). Need yours support to resolve this issue. Below the have sent the code snippet .
If I understand malloc() correctly, then it should either return NULL (if out of memory) or a valid pointer.However, certain sequences of calls to malloc() cause a hard fault instead. Here is a minimalistic sample project for an STM32L431 with 64kB RAM and 1kB configured main stack:int main(void) { void *pv; pv = malloc(72000); if (pv != NULL) // false - OK { free(pv); } pv = malloc(32000); if (pv != NULL) // true - OK { free(pv); } pv = malloc(62000); if (pv != NULL) // true - OK { free(pv); } pv = malloc(66000); // hard fault in _malloc_r() if (pv != NULL) // should be false, but never reached { free(pv); } /* Loop forever */ for (;;) ; }The first three calls to malloc() work as expected (either return NULL or valid pointer), but the fourth one does neither and goes into Hard Fault. Does anyone understand why?Note that I can also make it crash by asking for an amount memory that is available, however to achieve that I need to make a long sequence of (rand
Ethernet not working with external SDRAM?1. I am working on STM32H745i-DISCO board. I am using LWIP stack and internal flash and internal SRAM in MCU.I configured the ethernet by following the below steps in stm32cube:a. Ethernet Configuration-Ethernet mode - MII- Parameter settingsFirst Tx descriptor address - 0x30000080First Rx descriptor address - 0x30000000Rx Buffers address - 0x30000100b. LWIP ConfigurationEnabled the cache (DCache and ICache).MEM_SIZE (Heap Memory Size) - 10*1024 bytesLWIP_RAM_HEAP_POINTER (RAM Heap Pointer) - 0x30002000c. MPU Configuration MPU_InitStruct.Enable = MPU_REGION_ENABLE; MPU_InitStruct.Number = MPU_REGION_NUMBER0; MPU_InitStruct.BaseAddress = 0x30000000; MPU_InitStruct.Size = MPU_REGION_SIZE_32KB; MPU_InitStruct.SubRegionDisable = 0x0; MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1; MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS; MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS
When I add a debug log to the source code, a [version-going-backwards] error occurs. ERROR: weston-cube-4.0+gitAUTOINC+cd44839e95-r0 do_packagedata_setscene: QA Issue: Package version for package weston-cube went backwards which would break package feeds (from 0:4.0+git0+cd44839e95-r0.1 to 0:4.0+git0+cd44839e95-r0.0) [version-going-backwards] What should I do so that an error does not occur even if I add a debug log?
The headers STM32Cube_FW_U5_V1.5 in still contain the error regarding USB_OTG_GCCFG_FSVMINUS_Msk
Hello, I would like to know if netx duo is able to work based on freertos and if there is already an implementation for it, since our work was based on freertos implementation. Or if there is an oslayer for netx duo for freertos.
Hi Team I am using stm32g0x mcu platform. Till now I am writing normal code without using rtos. Does this mcu support RTOS ThreadX support in STM32G0xxx mcu platform. Please share the process to enable using Stm32 cubeide tool.Thanks, Kumar
Hello everyone, I want to use 4 sensors with 4 channels in a single ADC on the stm32f411ceu6. There was no adc prescalar in clock config. Actually, I used 2 sensors using 2 channels. With the same logic, when I try to use all 4 of them, it measures in a double order, but it gives the value twice, so normally there should be 4 sensors and 4 lines of data. 1.second 1.sensor 2and4. to the line; 2.sensor 1 and 3. to the line; 2nd second. 3rd sensor prints to 2nd and 4th lines. 4th sensor prints to 1st and 3rd lines. Since 2 sensors are continuous for motor control and 2 sensors are for measurement, it also happens every 5 seconds.
Hello,I am referring to the video "STM32 USB training - 09.3 USB CDC libusb device lab"In this MOOC video, a file usbd_cdc.c is modified by the instructor, and it is mentioned that this file is attached somewhere. I am unable to find it in the Dedicated Page of the training anywhere. Could anyone help me locate this file please?Thank you in advance!
I want to use a 20x4 LCD without I2C on the Nucleo-F030R8 board. But many libraries are programmed on the I2C protocol. Is there a 20x4 LCD library that doesn't use I2C?
Hello,Sorry if i'm asking a dumb question or if someone already ask it, but I have some problem pinging my NUCLEO-H723ZG using Ethernet and lwIP without FreeRTOS.I already tried the tutorial to create a project with Ethernet and lwIP step by step , it didn't turn out well (I have some question about this tutorial on memory layout of the DMA Descriptors) and I couldn't ping over the MCU.I also tried the github example provided on the same article and more precisely I tried the STM32H723_Nucleo_ETH example. It worked very well, but it use FreeRTOS which I do not want to use for now.I tried to create a project from the .IOC of STM32H723_Nucleo_ETH example, I modified it to disable FreeRTOS and disable ETH global interruption. It didn't work (I still couldn't ping over the MCU).So I have multiple questions :Does lwIP must be used with FreeRTOS on the MCU of the H7 series or other kind of RTOS ? (I already use lwIP without a RTOS on a NUCLEO-F429ZI and I didn't have any issue with it).On th
I have tried create a USB Composite Device(CDC+MSC+HID) using STM32_USB_Device_Library V1.2.1, CDC and MSC works but HID not workable. When I use USBD_HID_SendReport() to send data to PC, MCU stuck.I have change the sequence of CDC/MSC/HID Interface/endpoint order, it seems that the last one not workable.MCU: STM32F429#define CDC_INTERFACE 0x00#define CDC_INTERFACE2 0x01#define MSC_INTERFACE 0x02#define HID_INTERFACE 0x03#define CDC_IN_EP 0x81 /* EP1 for data IN */#define CDC_OUT_EP 0x01 /* EP1 for data OUT */#define CDC_CMD_EP 0x84 /* EP2 for CDC commands */#define MSC_IN_EP 0x82#define MSC_OUT_EP &nbs
Hi! I've been following this tutorial to enter the world of audio dsp. The issue is that when I connect the board via USB, LD1 is always on (red) and I can hear a bunch of white noise at my output. When I power the board externally via 3V, LD1 starts to pulsate and I can only hear white noise when it's on. Thus my question is, can I disable LD1 somehow? As it seems to be interfering a lot with my I2S or ADC/DAC...
Hello everyone,I am facing a problem related to my STM32F030C6T6 controlleron SPI DMA transfers and hope for your support.I'm using SPI DMA to continuously transfer data from the master to the slave controller. The message consists of 12 byteseach transmitted in 8 bits. At first everything worksfine: The slave receives the data, processes it and sends itappropriate answers back. This works for someMinutes/seconds to approx. 30 minutes smoothly.However, a problem suddenly arises: the message that theMaster sends appears to be shifted in the slave's SPI DMA. Althoughthe data is available, the order is no longer correct. this leads tocaused my protocol to no longer work correctly. This mistakeThen it goes all the way through, I had already thought maybe the DMApointer to the memory address can be reset, but unfortunately withoutSuccess.I tried to solve the problem by setting the FRXTH registerfor CR2 (FIFO Reception Threshold), but without success. Himselfoccurs when the slave only s
If I generate projects for the STM32U5A9 with sysclks/hclks of 4/48/90/160 Mhz.Then HAL_PWREx_ControlVoltageScaling is always ran early on including with an argument off PWR_REGULATOR_VOLTAGE_SCALE2 for 90 MHz.However the function HAL_PWREx_ControlVoltageScaling has a note/comment"Before moving to voltage scaling 2, it is mandatory to ensure that the system frequency is between 50 and 100 MHz."However I cannot identify any generated code that raises the frequency from 4Mhz before running this function?
I am find STM32Cube\Repository\STM32Cube_FW_L4_V1.18.0\Drivers\STM32L4xx_HAL_Driver, but I don't know want is STM32L431 Manual
Hello, I want to use X CUBE USB AUDIO examples in X CUBE IDE.After generating the binary code (without errors) and flashing the binary code via DFU, the card is not recognized as an audio device, I tried on all 4 projects. I unplugged USB, do reset, nothink change.On the other hand, if I generate for example the binary of another audio project: FP-AUD-SMARTMIC1, and flash it via DFU, the card is recognized as an audio device. Thanks by advance.
Hello,I have problem with ping request and RNDIS server. I use STM32F746G-Discovery and Windows 7,10,11.My steps:I compiled the example STM32Cube_FW_F7_V1.17.1\Projects\STM32746G- Discovery\Applications\USB_Device\CDC_RNDIS_Server for FS and uploaded stm32 board.I set network in Windows for Remote NDIS: - Deactivate IPv6 and activate IPv4 mode - Static addresses as follows: - Address = 192.168.0.11 - Network Mask = 255.255.255.0 - Gateway = 192.168.0.1 - Automatic DNS and Routing deactivated. I opened command line and created ping request „ping 192.168.0.10 –t”. It works ok. I reconnected usb in PC. Ping doesn’t work. I still have „Request timed out”: To restore communication I need to change the networ
Hi,I have made the STM32C0 an I2C slave, and I want to wake up the STM32C0 from the stop mode by using the I2C. I have tried with the below configurations, but STM32C0 won't wake up when any I2C events occur. When the device is in running mode, I2C works fine. I2C_config(){hi2c1.Instance = I2C1;hi2c1.Init.Timing = 0x40000A0B;hi2c1.Init.OwnAddress1 = 64;hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;hi2c1.Init.OwnAddress2 = 0;hi2c1.Init.OwnAddress2Masks = I2C_OA2_NOMASK;hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;if (HAL_I2C_Init(&hi2c1) != HAL_OK) {Error_Handler();} /** Configure Analogue filter*/if (HAL_I2CEx_ConfigAnalogFilter(&hi2c1, I2C_ANALOGFILTER_ENABLE)!= HAL_OK) {Error_Handler();} /** Configure Digital filter*/if (HAL_I2CEx_ConfigDigitalFilter(&hi2c1, 0) != HAL_OK) {Error_Handler();}/* USER CODE BEGIN I2C1_Init 2 */// Enable and set I2C
We use ITM, locally configured by the embedded code at startup, for our trace output. We have code for this that works with STM32F4 (see below), as advised by Segger; this advice doesn't seem to have changed since we adopted it. Using the same code with STM32U5 we end up in a hard fault after a few calls to ITM_SendChar(). What do we need to add to this code for the STM32U5 case? I have seen a post on this topic here but that person did not succeed, hence asking this narrower question.Working ITM set-up code for STM32F4 (where U_CFG_HW_SWO_CLOCK_HZ is 125000 to guarantee reliability):uint32_t stimulusRegs;// Enable access to SWO registersDEMCR |= (1 << 24);ITM_LSR = 0xC5ACCE55;// Initially disable ITM and stimulus port// To make sure that nothing is transferred via SWO// when changing the SWO prescaler etc.stimulusRegs = ITM_ENA;stimulusRegs &= ~(1 << 0); // Disable stimulus port 0ITM_ENA = stimulusRegs;ITM_TCR = 0; // Disable ITM// Initialize SWO
Hello ,I have to implement USB mass storage device im my current project I have done some configuration and generate code but it seem have some problem1)usb mass storage device is showon in device manager2)In my computer also show that drive is connectedbut problem is that inspite of opening drive it always asks to format drive i have attached screenshots of errors with this post.ThanksDipak Garasiya
I'm facing an issue with reading and writing data on an SD card using SPI and FATFS on an STM32F767ZIT6 microcontroller. When I don't enable FreeRTOS, the SD card operations work fine. However, when I enable FreeRTOS, the SD card operations fail. During code generation, I receive a suggestion I've referred to the following guide for implementing SD card read and write: https://www.micropeta.com/video29Can anyone provide guidance on resolving this issue?
I Have coded my STM32F446RE for 10KHz PWM using TIM1 In STM32cubeide. i am getting pulse but the pk-pk voltage is not 3.3v it is around 150mv.need help. Code : /* Initialize all configured peripherals */MX_GPIO_Init();MX_DMA_Init();MX_TIM1_Init();/* USER CODE BEGIN 2 */ TIM1->CCR1 = 50;HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); /* USER CODE END 2 */ /* Infinite loop *//* USER CODE BEGIN WHILE */while (1){/* USER CODE END WHILE */ /* USER CODE BEGIN 3 */}/* USER CODE END 3 */} /*** @brief System Clock Configuration* @retval None*/void SystemClock_Config(void){RCC_OscInitTypeDef RCC_OscInitStruct = {0};RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Configure the main internal regulator output voltage*/__HAL_RCC_PWR_CLK_ENABLE();__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3); /** Initializes the RCC Oscillators according to the specified parameters* in the RCC_OscInitTypeDef structure.*/RCC_OscInitStruct.Oscilla
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.