Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
I'm using STM32F429 and trying to read the internal temperature sensor and convert it to a degree C value. Absolute accuracy is not important right now, I just want to make sure a reasonable representation of temperature is being produced. The ADC is running continuously with DMA dropping the result into a uint16_t variable which I'm monitoring. The variable gives a raw value around 1220 (decimal) at room temperature, and feeding this value into the __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS macro gives an output of around 21C. So far so good.Warming up the micro gently with a hairdryer shows the ADC value increasing, as I believe it should. However, the calculated output from the macro falls, and reviewing the content of the macro this is not surprising:#define __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(__TEMPSENSOR_TYP_AVGSLOPE__,\ __TEMPSENSOR_TYP_CALX_V__,\ __TEMPSENSOR_CALX_TEMP__,\ __VREFANALOG_VOLTAGE__,\ __TEMPSENSOR_ADC_DATA__,\ __ADC_RESOLUTION__) \ ((( ( \ (int32_t)(((__TEMPSENSO
Hi, In our schematic, the IC’s SD card pin is connected to the controller pin of the STM32H753VIH6, and the IC’s controller pin is connected to the SD card. Could this connection cause any issues during SD card read and write operations? I have attached the schematic for your reference. https://drive.google.com/drive/folders/1fHC0aW8OWq_DrnzWL8WemED_ALq8BC_0?usp=sharing
OTP portion of FLASH is a valuable asset in some STM32 families and represents a convenient place to store things like security keys. For this, it is desirable - and, as it's part of FLASH, also quite logically expected - that setting read-out protection to any level above 1 prevents the debugger from reading it.In RM0444 Rev.5 and RM0454 Rev.5 (the current 'G0 manuals), the following text indicates that this should be the case:The following table appears to indicate the same behaviour:However, user @DAlbe.3 reported, that he was able to read out OTP using debugger, while RDP was set to Level1.This, together with the fact, that the above table has changed across RM revisions, rises questions about the OTP's security.Can ST please comment? Thanks,JW
I recently updated to Linux Mint 22 (Cinnamon 6.8, kernel 6.8.0, Ubuntu 24.04) by means of the "generic Linux" version. (I had tried without success the Debian package and was advised to use the "generic" instead).The software works and compiles OK as long as you do not try to launch or debug the result. At this point it stops complaining that it cannot find gdb because libncurses.so.5 is not installed. The problem lies in the fact that libncurses5 is deprecated and non longer available (you can get libncurses5-dev but that is of no avail).At this point I reverted to the old 1.10 version that I still had, and found the same problem. The only solution seems to be an upgrade of STM32CubeIDE to libncurses6.Do you have any solution or a forecast for such an upgrade? I hate thinking of switching to a different processor line.Tranks
I am using STM32H563 and using seven pins to read data, all through ADC1 with GPDMA1 Channel0 -2 Words internal FIFO. I connected all seven pins to ground, expecting to get all zeros or values close to zero, but the readings seem to fluctuate randomly.Although the ADC values do increase when connected to Vcc (>3000) and decrease when connected to ground (<2000), how can I ensure that the readings are correct? Are there any settings that I should adjust?uint16_t adcbuf[7] = {0}; HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED); HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adcbuf, 7); while(1) { printf("ADCBUF: "); for (int i = 0; i < 7; i++) { printf("%d, ", adcbuf[i]); } printf("\r\n"); HAL_Delay(1000); } Below is the ADC1 configuration from my .ioc file. (All ranks are configured identically, except for the channel.) Below is the GPDMA1 configuration. (Use Standard Request Mode)
HiI recently started using STM32CubeMX on MacOS and noticed that navigating through the (sub)-folder is kind of buggy or I am doing something utterly wrong.I want to create a project inside my documents folder. But everything that is inside my documents folder is not shown in the STM32CubeMX GUI when selecting a project folder. See attached picture. Can you please attempt to recreate this? I use a MacBook Air M3 16GB/265GB, Mac Tahoe V26.2 should that matter.
Hello everyone,We are currently working on structural validation and material testing workflows.Has anyone here implemented automated reliability testing setups?We documented some testing methods and validation ideas here:Would love to hear your feedback.
Heyho,the title says it...In RM0486, 14.6.5 PLL description, page 437 / 438 I find this:Using the PLLs in fractional modePLL off ... set FRAC ... PLL onCaution: Do not update DIVN and DIVNFRAC after the PLL has been enabled.On the other hand, there are comments that some dividers can be changed on the fly.So maybe it might work? Has anybody tried? With these 4 PLLs and the great clock routing possibilities, the ability to change FRAC values on the fly with this high resolution would be a fantastic feature for synchronization, without using an external VCO.
Does anyone know what settings are needed to check the internal flash memory using the STL library? I wrote a small test firmware (for a 61508 safety application without TZ) using the STL library, which is supposed to perform a self-test flash memory check.However, this test always fails. I ran the checksum check using STM32CubeProgrammer v2.20.0. I had to manually enter the settings for FlashStart, FlashEnd, and FlashSectionSize (0x08000000 0x0800E000 0x00010000) because the macros from the readme file didn't work. The STM32CubeProgrammer then reports: CRCs area injected successfully. After loading the modified ELF file, the STM32CubeProgrammer displays: Number of segments: 2segment[0]: address= 0x8000000, Size = 0xC314segment[1]: address= 0x800E000, Size = 0x2000 But what settings should be specified to perform the flash test?Unfortunately, this information is not available in the manual or the STL documentation. I've already tried the following unsuccessf
Eval board used: Nucleo-U385RG-Q Software tools:STM32CubeIDE Version: 2.0.0 Build: 26820_20251114_1348 (UTC)STM32CubeMX Version: 6.15.0The provided project for the eval board builds without errors.But when I modify the MCU to add a GPIO or I2C using STM32CubeMX,multiple build errors are generated after using "GENERATE CODE" command.These errors are:unknown type name 'HAL_StatusTypeDef'unknown type name 'HAL_LockTypeDef'Although these definitions are defined in the following *.h file:stm32u3xx_hal_def.h/** * @brief HAL Status structures definition */ typedef enum { HAL_OK = 0x00, HAL_ERROR = 0x01, HAL_BUSY = 0x02, HAL_TIMEOUT = 0x03 } HAL_StatusTypeDef; /** * @brief HAL Lock structures definition */ typedef enum { HAL_UNLOCKED = 0x00, HAL_LOCKED = 0x01 } HAL_LockTypeDef;Apparently, the errors are created from define guards not allowing other filesto access and use the “typedef enum HAL_StatusTypeDef and HAL_LockTypeDef in stm32u3xx_hal_def.h.To correct the problem:I had to m
Hello, I made a board with an STM32F103C8T6 which uses USB.My issue is that when conecting USB (self powered or with external power) I get the following error on windows:Windows has stopped this device because it has reported problems. (Code 43) A request for the USB device descriptor failed.Things I checked:- When no USB is connected, the D+ line is pulled to 3v3, but when connecting the USB it goes down to 2.8 with 0.5v being on the resistor.- Checked continuity from USB header to A11 and A12 pins (when unpowered)- Resolder pins to ensure propper contact (Except FL1, I checked that everything else is proppery soldered, but I guess continuity is a good proxy test)- Changed MCU, USB header and FL1 for new ones in case they got damaged- Firmware was tested with a bluepill and everything worked.It's been a week with this issue, if someone know what could be happening or could give me tips to help diagnose this I'd appreciate it.Here are the schematics for that part of the board: &n
I am struggling with an intermittent boot issue with Nucleo STM32L432. What happens: When the board boots up from VIN of 7V, sometimes (I would say 50% of the time) STM32 struggles to run the code, it's almost like it stuck during the boot up. When i power it up from USB to check what is the issue, problem goes away and board is running fine. My application involves ~40 of these boards and i am seeing this issue in 5 boards and it happens 50% of the time in those 5 boards. Only mods i have done to the nucleo board are - 1) I have taken a suggestion made in this post: Solved: STM32L432 Nucleo-32 External Power - STMicroelectronics Community i.e. to remove SB9 to be able to power it from VIN of 7V. 2) Connected a solder bridge at SB17 for HSC Anyone faced this issue or any troubleshoot tips anyone can share. Thanks in Advance
Hi everyone, I'm looking for a way to be able to encrypt my flash on stm32g030. How do I do it? Thanks
I am trying to create a codeplug for my TYT MD-2017 handheld radio. I have gotten to the point where the radio is listed in Device Manager under "Universal Serial Bus Devices" as "Digital Radio in USB mode" with no error icons.But when I attempt to have CPS talk to the radio it says it is disconnected. I have been working for several days on this issue with no success. The radio IS in DFU mode and is seen by Device Manager. I am using GD77 CPS and it's driver. I have used Zadig to load the WinUSB driver. Perhaps I should blow all of the GD77 stuff away and use default MD-2017 radio STM software and driver? If so, is there any installation procedure info for this approach?Any help appreciated! What additional info is needed?73, WhiteBeard
Hi, I'm have a trouble with UART Interrupt when using FreeRTOS.I want to receive a string buffer send from Serial Terminal ( Hercules Software ) using UART interrupt mode. But when I send data, I just receive 2 character. Ex: When I send "Resume", I just got echo back 2 line: "Rx_data:R","Rx_data:e".Has anyone else encountered this problem? Please share a solution with me.This is my call back function: void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { BaseType_t xHigherPriorityTaskWoken = pdFALSE; HAL_UART_Receive_IT(&huart1, &Rx_data, 1); if(Rx_data == '\n') { Rx_buffer[Rx_index] = '\0'; if(strcmp((char*)Rx_buffer,"Resume") == 0) { xTaskResumeFromISR(AboveNormalHandle); } Rx_index = 0; } else { if(Rx_index < sizeof(Rx_buffer)-1) { printf("Rx_data: %c \n",Rx_data); Rx_buffer[Rx_index++] = Rx_data; } } portYIELD_FROM_ISR(xHigherPriorityTaskWoken); }
Hello, I'm trying to install EGit in STM32CubeIDE, but I'm getting an error.Cannot complete the install because one or more required items could not be found. Software being installed: Git integration for Eclipse 7.5.0.202512021534-r (org.eclipse.egit.feature.group 7.5.0.202512021534-r) Missing requirement: Git integration for Eclipse - Core 7.5.0.202512021534-r (org.eclipse.egit.core 7.5.0.202512021534-r) requires 'osgi.bundle; org.eclipse.core.runtime [3.33.100,4.0.0)' but it could not be found Cannot satisfy dependency: From: Git integration for Eclipse 7.5.0.202512021534-r (org.eclipse.egit.feature.group 7.5.0.202512021534-r) To: org.eclipse.equinox.p2.iu; org.eclipse.egit.core [7.5.0.202512021534-r,7.5.0.202512021534-r]Does anyone else have the same problem?
Many small format LCD displays do not provide parallel RGB interfaces but instead rely on high-speed serial interfaces such as QSPI. To support this class of display is it possible to use the XSPI peripheral in QSPI mode to drive them? An example LCD controller transaction is shown here: The data line mapping is as follows:SDI_SDA -> IO0DCX -> IO1D[0] -> IO2D[1] -> IO3
Hi,Can the equivalent gate count for the STM32H750VB be provided for reliability research?Thanks
Hi,I selected STM32H7A3ZIT6Q to use external SDRAM. However, in STM32CubeIDE under Connectivity → FMC, the SDRAM option is not available.When I select STM32H7A3ZIT6 (non-Q), the SDRAM option appears.Does the STM32H7A3ZIT6Q support SDRAM, or is this a CubeIDE limitation?Thanks.
..
Hello everyone,I'm trying to disable the TrustZone (TZEN bit) on an STM32L562E-DK development board to leave it in a completely clean state (without protections) so I can use it as a standard MCU. However, I'm encountering errors when trying to modify the Option Bytes with STM32CubeProgrammer, and I would appreciate your help.My configuration:Board: STM32L562E-DKSoftware: STM32CubeProgrammer v2.21.0Connection: Integrated ST-LINK (SWD at 8000 kHz)Current Option Bytes status (initial read):TZEN = 0x1 (Trust Zone enabled)RDP = 0xAA (Level 0, no readout protection)SECWM1_PSTRT = 0x0, SECWM1_PEND = 0x7F (Safe area defined)Screenshots of the complete configuration are attached.The problem:From the STM32CubeProgrammer graphical interface, I can modify and apply changes to almost all Option Bytes (such as safe areas or write protection) without issue. However, when I try to uncheck the TZEN box (to set it to 0) and click "Apply," I get the following errors:Error: Option Byte Programming failed
Hello!I'm trying to set up a program via STM32CubeMX. The MCU I'm trying to use is the STM32WBA65CIU6 with the SMPS Pinout.source: datasheet page 72 (https://www.st.com/resource/en/datasheet/stm32wba62ci.pdf).However this configuration seemingly isn't available in STM32CubeMX, only the SMPS_USB Version.source: STM32CubeMX with STM32WBA65CIUx chosen as MCU.There's only one MCU listed in the MCU/MPU selector. Just in case if there are supposed to be multiple.source: STM32CubeMX with search-string STM32WBA65CIU6 in commercial part number.Is there an option that I'm missing? Or will I have to address this manually in code?Thank you in advance!
I'm using an STM32F469I-DISCO ($AU1) board that I've used for a few little projects and have come to try to prototype something using it's MEMS digital microphones (MP34DT01-M). In the documentation for the discovery board it lists the connections of these microphones to the DFSDM peripheral pins of the MCU, however looking in the datasheet of the F469 it doesn't list the DFSDM peripheral anywhere and on pages that discuss the DFSDM peripheral the F469 is not listed as an MCU with DFSDM compatibility. Furthermore, on the CubeMX example project for the F469I-DISCO the pins connected to the MEMS microphones are configured with the SAI peripheral.Is this a documentation issue for the discovery board or are there extra steps I need to take to use the DFSDM peripheral? Thanks for any help anyone can provide.
Hey guys,I am searching for RoHS/REACH records for STM32G431KBU3/STM32G431KBU6 but they're only accessible for one of the STM32G431 parts.Any of you have any pointers to how I may else obtain such documentation?
stm32_IEC_project_CM7.elf [cores: 0]Thread #1 [main] 1 [core: 0] (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)0xfffffffe<signal handler called>() at 0xfffffff1HAL_TIM_IRQHandler() at stm32h7xx_hal_tim.c:3,777 0x8055b74TIM3_IRQHandler() at stm32h7xx_it.c:185 0x804a352<signal handler called>() at 0xfffffffdprvPortStartFirstTask() at port.c:267 0x8065f78xPortStartScheduler() at port.c:379 0x806608cpxPortInitialiseStack() at port.c:214 0x8065ed0 This is the error which comes suddenly. here i use tim3 as base source for the tick interrupt of task scheduler as replace of systick. Previously this code works fine. suddenly creates issues in worked hardware itself . after some time device works and fails randomly but same code what reason
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.