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
Setup:TouchGFX v4.23.0STM32H747Scroll wheel with selected item template Issue:I dynamically set the number of items in the scroll wheel using the function setNumberOfItems() so in the TouchGFX designer I set the Number of Items to 0. As an example, I am displaying 4 items but have 8 to choose from. When the scroll wheel is first shown, the first 4 items (index 0 - 3) are rendered correctly. When I push down, the screen correctly shifts and shows items 1 - 4. When I push down again, the first item (index 2) is shown in the first, selected position and is shown in the 4 position as well. As I continue to navigate down in the list, sometimes there are other duplicates, sometimes the list is correct. Workaround:I tried a few different things but setting the Number of Items in the designer to 2 (I didn't try any other value) solved the duplicate glitch. So it seems, that having the Number of Items set to 0 is what causes this issue in t
I’m using the Class B Flash self‑test on an STM32F407. My post‑build step injects CRCs with: STM32_Programmer_CLI -sl Firmware.elf 0x08000000 0x08100000 0x400 I Inspected the CRC of the first section via arm-none-eabi-objdump -s -j "CRCs area" Firmware.elf | head -n2 After this I re‑computed the CRC to verify which method it used. I used srec_cat and I used the following method: arm-none-eabi-objcopy -O binary Firmware.elf full_flash.bin dd if=full_flash.bin of=region.bin bs=1 count=1024 srec_cat region.bin -Binary \ -CRC32_Little_Endian 0x400 \ -crop 0x400 0x404 \ -output - -binary \ | hexdump -e '1/4 "CRC32: 0x%08X\n"' After this I figured out that the CRC checksum stored in the memory for the first 0x400 section matched with the srec_cat output. However at runtime, when STL_SCH_RunFlashTM() (compiled with both -DSTL_SW_CRC and without it) computes the CRC over the exact same 0x400 bytes which is different than the expected value. As a result,&n
I'm trying to implement the ADC to get V_BAT. I've done the set up in CubeMX in the IDE.I then went to the examples to see how a single ADC reading was done. I'm confused about the use of the following variables... /* Variables for ADC conversion data */ __IO uint16_t uhADCxConvertedData = VAR_CONVERTED_DATA_INIT_VALUE; /* ADC group regular conversion data */ /* Variables for ADC conversion data computation to physical values */ uint16_t uhADCxConvertedData_Voltage_mVolt = 0; /* Value of voltage calculated from ADC conversion data (unit: mV) */ /* Variable to report status of ADC group regular unitary conversion */ /* 0: ADC group regular unitary conversion is not completed */ /* 1: ADC group regular unitary conversion is completed */ /* 2: ADC group regular unitary conversion has not been started yet */ /* (initial state) */ __IO uint8_t ubAdcGrpRegularUnitaryConvStatus = 2; /* Variable set into ADC interruption callback */ In the rest of the example code these are used as
Hello,Why is there a significant difference between the values obtained through the ADC and DTS for the internal temperature measurement of STM32H563?Below is the measurement program of ADC. The following is the measurement procedure of DTS. 3. Here are the measurement results. They vary significantly. Why is that?Thank you for your help.
Hello,It's been two years since version 1.14.1 (everything was fine there) – is it really that hard to remove these white scrollbars? It's impossible to use STM32CubeIDE...BR
Hello everyone. This is my first post so pardon me if I do something wrong. I have a custom made board with STM32H7S7 MCU and external NOR Flash. Since it is some cheap chinese IC from LCSC I had to make my own External Loader. I didn't use the generated ExtMemLoader project from CubeIDE because it seemed too complex, was hard to understand how it works and mainly it didn't worked at all. I made the external loader with help of some YouTube videos and forum posts. Writing, reading and sector erasing works fine (though I have a problem to erase more than one sector at once) but only if I pull the BOOT0 pin HIGH, so my undestanding is that when BOOT0 is LOW the code in internal flash is executed and intializes the system and some peripherlas so if external loader tries to do the same then some conflict occurs. I have a limited options when debugging the external loader (I am using LED blinking to signalize at which part it breaks) but I found out the code execution won't get p
When I create a new GPIO port configured as OUTPUT in STM32CubeMX, the pin definitely exists on my board. However, after I click Generate Code, the new pin configuration does not appear in main.c (for example, I don’t see the initialization code for that pin in MX_GPIO_Init()).Why does this happen? I tried to investigate but couldn't find the reason.My STM32CubeIDE version is 1.19.0.The MCU I am using is STM32G071RBT3, and the specific pin I am trying to add is GPIOD pin 3 — but I also don’t see any other newly added pins in the generated code. None of the new GPIO ports appear after code generation. THANKS
Hi everyone,I am using the IHM07M1 inverter board to run a PMSM motor, and I need to measure the phase current using the low-side shunt resistor. Currently, I configured the ADC in injected mode and trigger it from a timer event on the falling edge of the PWM.I have a few doubts:Is triggering the ADC on the PWM falling edge the correct method for accurate low-side current sampling?Since current flows through the low-side shunt only when the low-side MOSFET is ON, should I trigger the ADC only during the low-side ON time, or is it valid to sample at any moment in the PWM cycle?I am using Timer1 with 3 channels for PWM generation, and Channel 4 (CH4) as a compare channel to trigger the injected ADC.What value should I assign to OCxREF4 for correct sampling timing?I’m confused about how to choose the right compare value inside the PWM period. If anyone has experience with this setup, please share your guidance. Thanks!
Good morning.I'm still trying to develop in STM code.I have an open-source code developed for the STM32L476.Questions:If I generate a compiled HEX for the STM32L476, will it run on the 411?Are they compatible?Is it possible to migrate to an STMF303 or an STM32F411?These are the ones I have to continue developing my studies.I still don't have enough knowledge.I've been trying to adapt it to the various available STM controllers.Thank you.Valter Matos
Hi,I am evaluating ESDCAN24‑2BLY for long-term reliability in CAN application. The datasheet specifies peak pulse ratings, but I could not find continuous power dissipation / power-cycle lifetime data.Could you provide any internal test results or recommended derating guidelines for continuous or long-term operation?Thanks & regards,Aravind R
Hi everyone. I am relatively new to working with STM32 devices, and I am currently attempting to design a USB microphone with an analog input using the Nucleo-L476RG development board in combination with the X-NUCLEO-CCA02M2 USB audio expansion board. To configure the system parameters in STM32CubeIDE, I followed the procedure described at the following reference: STM32F4 USB microphone | Details | Hackaday.io. Using this configuration, the computer successfully recognizes the device as a USB microphone; however, no audio data is being transmitted. I have attached the relevant configuration files—usbd_audio.c, usbd_audio.h, and main.c—in case someone might help identify any mistakes or oversights in my implementation. The analog signal is acquired through a single ADC channel using DMA with interrupt callbacks. The USB audio streaming is configured for a sampling rate of 48 kHz, and Timer 8 is used to trigger the ADC conversions. Any assistance or guidance would be greatly appreciated.
Hello,I am working with an STM32L072 and trying to generate a 1Hz interrupt with as little time drift as possible. For this, I am using the RTC wakeup interrupt at 1Hz, with the LSE (32.768 kHz quartz, 10 ppm) as the clock source.On several products, I observe a periodic time drift of about 4ms. The period and sign of the drift vary from one product to another, but the pattern is repeated consistently. The attached graph shows that the drift is periodic for each product, but with different periods.To measure the interrupt timing, I set a flag in the interrupt handler that triggers a USB message to the computer. This explains the noise in the reception time, but not the 4ms discontinuities or their periodicity. The MCU remains in run mode during these tests. And there is no reset of the board.The 4ms drift corresponds to approximately 0.0039978s, which is equal to 131 LSE ticks (131/32768). This seems significant and unexpected.Initially, I suspected an issue with my RTC configuration,
I'm looking at using the Teseo modules in a range of RC boats but would like some final confirmation of the RF front end to make sure I am not doing anything wrong. For the LIV4F I have boiled it down to this setup, with the understanding that the 4F can drive active antennas directly (for external use), and for passive there is an onboard LNA that needs a blocking cap (for mounting on the same PCB). Thanks for any help! For the LIV3F(L) I am looking at exclusively active antennas (given the lack of on board LNA). From the RF front end point of view does this make the 3F and 3FL pin compatible?Is this the correct setup for both onboard and offboard antennas?Only the offboard has a current limit on the assumption that helps save the RF front end when there is no antenna fitted, is that correct?Are there any recommended part numbers for the inductor/capacitor bias?Do I need a saw tooth filter on the RF input?Why are the Liv4f's seemingly always out of stock?&nb
Version: STM32CubeMX 6.16.0MCU: STM32WB15CCU6Untilities Sequencer can not enabled, which says connectivity WM's not enabled.But no "WM's" in connectivity page.How to enable sequencer?
We are using customised board on stm32mp257f microprocessor. We have used STM32MP257F-DK as a reference for the hardware design. In our customized board, we have used LVDS panel and kept the LVDS section same as that of STM32mp257f-dk board. The board boots up and kernel is loading properly. But lvds panel is not working. Please find below the error logs in u-boot and kernel.Receiving following uboot log:stm32_ltdc_probe: Startedstm32_display display-controller@48010000: stm32_ltdc_probe: LTDC hardware 0x40101stm32-display-dsi dsi@48000000: stm32_ltdc_get_panel(dsi@48000000): no UCLASS_DISPLAY for remote-endpointstm32-display-dsi dsi@48000000: stm32_ltdc_get_panel(dsi@48000000): no UCLASS_DISPLAY for remote-endpointstm32_display display-controller@48010000: Device failed ret=-22stm32_display display-controller@48010000: stm32_ltdc_display_init(display-controller@48010000): no UCLASS_VIDEO_BRIDGE for remote-endpointstm32_display display-controller@48010000: Device failed ret=
Hello everyone,I'm trying to get the USB CDC protocol working with USBX. The hardware is fine because DFU works, and I can flash the board through it. Following a tutorial, I was also able to implement a bare-metal USB CDC device, and everything enumerated correctly and printed data.I uploaded the USB_CDC example for the STM32WBA65RIVx, and that also enumerated without issues.(I removed the UART part because I don’t have it; I only tested sending “hello world”.)Then I tried to integrate USB CDC into my own project, and I got stuck because I couldn't understand why the example works but my IOC configuration does not.Eventually, I found that enumeration only works if the option UX_DEVICE_CLASS_CDC_ACM_TRANSMISSION_DISABLE is enabled.When I disable that option, the PC cannot detect my board.What could be the reason for this?I increased:usbx_system_stack_size to 32×1024usbx_memory_pool_size to 32×1024Another strange thing: this parameter must be set exactly like this, otherwise enume
Hello,I’m experimenting with a simple RAM loader for SPC58 loaded through BAF over CAN.The same program runs perfectly when I debug it in RAM using UDESTK, and I’ve adjusted the linker so the code starts at 0x40070000. It initializes CAN, does a few GPIO tests, etc. — all good under the debugger.However, when I upload the same image to RAM via BAF, it starts but crashes as soon as it tries to initialize the clock, and if I skip that, it later crashes on peripheral initialization (CAN, GPIO, etc.).So my question:What are the main things I’m missing for a program executed directly from BAF in RAM?Is there something specific about system/clock or peripheral state that must be skipped or re-initialized when booting this way?Any hints or example references for a working SPC5 RAM loader via BAF would be very helpful.Thanks!— Janis
Hello, I have a query that can we send or stream the audio instead of Linein or Audio Jack, can we send it through CN12 or CN11 pins (UARTor SPI) from external UAC supported device in I2S format? If yes, could you please help me to configure it. I am using PBP_source example firmware of STM32WBA55G-DK1.Thank you
Dear allI have a complex Flash problem. But even with NUCLEO-C092RC Board and the provided FLASH_EraseProgram example I have Flash erase and/or program problems.I adapted the original provided ST code a litte to get more information of the problem with the on board LED's.This is the code I changed: (all the rest is 100% original code)Problem description (with Keil uVision):/** * @brief The application entry point. * @retval int */ int main(void) { /* USER CODE BEGIN 1 */ /* STM32C0xx HAL library initialization: - Configure the Flash prefetch - Systick timer is configured by default as source of time base, but user can eventually implement his proper time base source (a general purpose timer for example or other time source), keeping in mind that Time base duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and handled in milliseconds basis. - Low Level Initialization */ /* USER CODE END 1 */ /* MCU Configuration------------------------------
Hi,From yesterday, after selecting the example firmware for STM32WBA55G-DK1, in the final step of the process, the new warning is coming, saying "failed to perform local copy ". Kindly help me to resolve this issue.Thank You.
Hello ST Community,STM32CubeMX 6.16.0 release summary:– Migrated to SamacSys as a new CAD provider for STM32CubeMXWith the new version of the stm32cubemx, the CAD tab in tools (see screenshot) is missing the previously available KiCAD and other options.Available options are: (Open Standard, ACIS, Khronos, AutoDesk, Open CASCADE, Siemens, Rhino, STL, Pixar, RS, Mentor).Export to KiCAD used to be available, even the featured video"A quick STM32CubeMX overview, From Ultra librarian" on the STM32CubeMx Product Overview features Altium, KiCAD and Cadence,... as export options in the dropdown menu.Componentsearchengine.com supports KiCAD, Altium, ... therefor I am confused why it is not supported in the STM32CubeMX.Is that intended? Do we have to use an older STM32CubeMX Version if we want the export to KiCAD option?Bug1: Selecting STL and pressing the download button crashes STM32CubeMX after choosing a file location(see screenshot 2)Bug2: Selecting STL and another File Format and
Hello,I am working with an STM32H563VITx (2 MB Flash) and I am experiencing a repeatable issue when placing two custom sections (.param_defaults and .app_defaults) at the end of Flash.The application runs as long as these sections are removed.But when they are enabled, ST-LINK GDB server / STM32CubeProgrammer fails to erase/program the Flash during a debug session.Project setupI have a bootloader located at 0x08000000 (32 KB) and the application starts at 0x08008000.At the end of the application Flash, I place two small tables:.param_defaults (160 bytes).app_defaults (96 bytes)Both are aligned to 32 bytes.My linker script computes their addresses like this: FLASH_APP_END = FLASH_APP_START + FLASH_APP_LENGTH; FLASH_APP_TABLE_START = ((FLASH_APP_END - FLASH_APP_TABLE_LENGTH + 31) / 32) * 32; FLASH_PARAM_TABLE_START = ((FLASH_APP_TABLE_START - FLASH_PARAM_TABLE_LENGTH + 31) / 32) * 32;These sections end up at: .param_defaults : 0x081FFF00.app_defaults : 0x081FFFA0 He
Hi,i'm currently working on a school project with the STM32n6570-DK and I'm pretty new into the STM scene. So my project will mainly be an object detection of different objects. The question is not directly about the STM, it's more about how to implement YOLO into STM. I heard something about the stm32-ai-model-zoo but I didn't go to deep into it yet. But is it possible to train a custom dataset with e.g. Google Colab and then implement it into STM or do I need a specific model-zoo file? And last but not least if someone has experience with STM32n6570-DK connected with YOLO, which YOLO version should I use? I heard YOLOv8n isn't that bad but I wanted to hear some more opinions. Hopefully someone can help me.Thanks for reading!Best Wishes
Hi everyone,I'm working on a project with an AR0144 image sensor connected to CSI2. (STM32N6)I have a question: if I use PIPE0 without any ISP processing of ROW10 data from the sensor to memory, do I still need to use ISP?Do I need to initialize it? ISP_Init(...)Thanks,Danilo
I am new to STM cube ide. I was searching for the beginner friendly steps for this IDE.But unfortunately, the available tutorials are for previous versionHow do I get started to this?Do I install the older version?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.