Forum Posts
STM32L452 temperature sensor
I'm using the below to calculate the temperature in STM32L452 CPU:int16_t temperatureC ;// ADC VREF is external 3V3temperature = __HAL_ADC_CALC_TEMPERATURE (3300, ADC_val, ADC_RESOLUTION_12B);For ADC_val = 1360 - then temperatureC is 164 Celsius, whi...
Resolved! Problem reading analog values from 3 different potentiometers on STM32 Nucleo-F446RE
I have been trying to use three pots as dials for a guitar effects pedal project. Their purpose is to simply read the voltage from 0 - 3.3V and with some scaling (to turn the raw readings into 0-100 values) in the code to store these 3 values inside ...
Resolved! How do you measure the execution CPU cycles for a section of code?
I am running a STM32F466RE with no OS, using the STM32CubeIDE. Is there a code profiler, or some other way I can measure how many CPU clock cycles it takes for a certain section of code to execute? I am trying to compare different methods of processi...
Resolved! The datasheet for STM32H745xI does not give the value for R_ADC. Where can it be found?
The datasheet for the STM32H745xI (doc DS12923 Rev 1) states in the notes to Figure 43 (p 191) that the value for R_ADC can be found in Table 96, but it is not given in Table 96. I also cannot find it elsewhere in the datasheet. Where can the value o...
Possible to use code built for 32K STM32F051part in same 64K part?
Hello,I have a working system using an STM32F051K6U6, and the code fits in the first 20K or so. Because of the ongoing shortage of specific parts, we would like to include the '051K6U7, '051K8U6 and '051K8U7 as equivalent parts, since temperature ran...
Resolved! STM32G030 Interrupt latency
I am experiencing a vey long external interrupt latency up to 2 microseconds.Clock is internal PLL, 64MHz.void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin){ if (GPIO_Pin == TRIGGER_Pin) { __disable_irq(); LL_GPIO_Reset...
STM32F072VBHx - Temp range 6 vs. 7 - Thermal resistance junction to case?
Hello,we're also suffering from the general part shortage and are planning to switch some of the STM32 devices we use to a lower temp grade, as those seem to be better available.I'm trying to figure out what impact the switch from a grade 7 to a grad...