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
Hey!I will explain my setup and then paste the code. I have three different timers (TIM1, TIM2, TIM3) sending out PWMs to different parts of my board. All timers are set up the same way; the only difference is that TIM1 is an advanced timer.What I do is initialize all my timers and start everything up. Then, much later, I switch my pins from GPIO output low to pin alternate mode to enable the PWM outputs. This works great 999 times out of 1000, but sometimes TIM1 (and it’s always TIM1) randomly decides to put the PWM high for a very long time and then, after about 20 ms, goes down to 0 and never starts again. Resetting the MCU fixes this, and everything works as expected. (Using STM32G051)Here is the initialization code for TIM1: TIM1.CR1.CMS = 0x1; //Set TIM1 center aligned mode, trigger interrupt flags on compares in downcount TIM1.CR2.MMS = 0x7; //OC4REFC signal is used as trigger output (TRGO) TIM1.ARR = PERIOD_SIXTH * 3; //Auto-reload register TIM1.CCMR1.OC1M = 0x6; //PW
Hi ST Team,I am working on the STM32F746G-DISCO board.I have ported ThreadX with TouchGFX to this board, and I want to use the ThreadX + TouchGFX sources generated by STM32CubeIDE.However, I am facing build errors during compilation.Please find the attached photos/screenshots of the errors.I request your support in resolving this issue.If possible, please share any relevant documentation, guides, or reference links that explain how to properly integrate ThreadX with TouchGFX on this board.Thank you,
Hi everyone, I'm encountering an issue with the STM32H747 dual-core MCU during the transition from bootloader to application. Here's a summary of the setup and observed behavior: Setup: Bootloader (CM7 core): When the BCM4 option byte is enabled, the CM4 core starts as expected. Application (CM7 core): After the bootloader jumps to the CM7 application, the CM4 core stops responding. What We have Tried : Manual CM4 Enable in Application Disabled CM4 in option bytes. Attempted to enable CM4 manually in the CM7 application: SYSCFG->UR1 = (1 << 0); // Set BCM4 = 1 RCC->GCR |= (1 << 3); // Set BOOT_C2 = 1 Result: System hangs. Recovery requires setting BOOT pin = 1, flash erase, and reprogramming. The issue seems to be with SYSCFG->UR1 = (1 << 0) 2. Option Byte Update via Flash APIManual CM4 Enable in
Hello,I am implementing SPI master communication on an STM32G474RE, transferring 68 bytes per transaction. However, I am unable to achieve the desired SPI clock speed of 5 MHz—currently the SPI clock only reaches approximately 3 MHz.The system clock is configured at 160 MHz, and I have tested the peripheral clock (PCLK) at both 80 MHz and 160 MHz. Based on these clock settings, I tried multiple SPI prescaler values (16 and 32) to obtain a 5 MHz SCK frequency. In addition, the SPI_SCK pin is configured in High-Speed mode. Despite these settings, the SPI output clock still does not exceed approximately 3 MHz.Has anyone experienced similar limitations, or is there an additional configuration step required to achieve a stable 5 MHz SPI SCK on the STM32G474RE? Any guidance or suggestions would be greatly appreciated.Thanks in advance.
I am logged into my STM user account.I get to the download page for STM32CubeCLT (https://www.st.com/en/development-tools/stm32cubeclt.html#get-software) and I try to download the latest version for Windows.A dialog pops up with 'Log in to MyST', 'Create a MyST Account' and down in the corner 'Download as a Guest'.I click 'Log in to MyST' and the dialog just closes and no download starts.
I'm going to use the STEVAL-MIC008A Dual MP23DB01HP MEMS daughter board with the STM32N6570-DK (by connecting to CN5). I looked at the STM32N6570-DK example project MDF_AudioRecorder and noticed that for using on board MIC (only one micophone) it uses instance0 (MDF1_SDIO, Pin PE8) with the following configuration:Bitstream Matrix: Falling frontInterleaved mode: No (which makes sense since it uses only one MEMS microphone)Since the STEVAL-MIC008A includes two microphones that share the same data and clock lines, can I still use instance 0 to receive interleaved data (left and right channels) from the STEVAL-MIC008A, or do I need to enable instance 1 as well?
Hi all,Is there documentation that shows the ThreadX functions with an explanation of the function's parameter? and which are mandatory and which optional?This is an example of a simple function call generated by cubeMX: /* Create tx first thread. */ tx_thread_create(&tx_app_thread, "tx first thread", tx_first_thread_entry, 0, pointer, TX_APP_STACK_SIZE, TX_APP_THREAD_PRIO, TX_APP_THREAD_PREEMPTION_THRESHOLD, TX_APP_THREAD_TIME_SLICE, TX_APP_THREAD_AUTO_START) I can tell what some of the parameters are by looking at their name but not all of them. I read "Azure RTOS ThreadX User Guide" from Microsoft. I've looked at the STM32 wiki and the threadX documentation on github but I can't find a document just for the functions calls (threads, semaphore, queues, etc) and its parameters (even a summary would be good). Is there such a document? Thanks
On a stm32u5, the SPI3 is in the SmartRun domain, which is designed to work down to STOP2 in autonomous peripheral mode with LPDMA. I'm now wondering if it is also possible to use SPI3 in autonomous mode with GPDMA but only to STOP1? Or do I need to use LPDMA to use SPI3 in autonomous mode regardless of the chosen stop mode?
Hi! I have Linux Mint 22.2. How can I configure CubeIDE colors so that all windows have a white background? Various combinations of Windows->General->Appearance settings allow you to achieve a maximum white background for all windows except the one where you edit the code.Version CubeIDE 2.2.0
Hello, I am using the Zephyr operating system with the STM32U5G9J-DK2 hardware. I intend to collect voltage data using the ADC, but so far, no progress has been made. Here are the steps I have taken: I used the zephyr\samples\drivers\adc\adc_sequence example from Zephyr 4.2.0. I created a new app.overlay file in the root Vmakelists.txt directory with the following content: / { aliases { adc0 = &adc1; }; }; &vbat1 { status = "okay"; io-channels = < &adc1 5 >; }; I compiled using this command:west build -p always -b stm32u5g9j_dk2 --sysbuild . Then I supplied 1V to the PA0 pin (silkscreen labeled PWM/D6), and the log is as follows: [16:22:28.487] RX←◆*** Booting Zephyr OS build v4.2.0 ***ADC sequence reading [0]: [16:22:29.493] RX←◆- adc@42028000, channel 5, 5 sequence samples: 2684 = 2162mV 1788 = 1440mV 1571 = 1265mV 1532 = 1234mV 1492 = 1202mV adc@42028000, channel 12, 5 sequence samples:
Hello Respected Members,I have a bootloader in CPU1 at address 0x08000000 and an image at 0x08024000. I have different BLE services in bootloader and in image. Problem is, once CPU2 has been started by bootloader, it jumps to image and hence the services of image cannot be loaded, BLE stack does not advertise. SHCI_SUB_EVT_CODE_READY event is never received in image as bootloader has already received it.I read about SHCI_C2_Reinit() in How to build wireless applications with STM32WB MCUs - Application note (AN5289). So, I called it in bootloader before jumping to image. But alas, I still did not get SHCI_SUB_EVT_CODE_READY. I need help in correct usage of this SHCI_C2_Reinit() so I can reinitialize different BLE services in image when jumping from bootloader.
Hi Team, Could you please assist me with the following situation: CANFD is working with FIFO0, but not with FIFO1, same config, using STM32G0B1KEU6. I am using same channel, FDCAN1. I will attach both files for refference. Thank you in advance, Aleksandar.
Hi,I would want to know the default I2C address of the STSAFE-A120 and if it is possible to change it, as it is done in the A110.In addition, is there any documentation about the content of the STSAFE-A120 I2C registers?Thank you in advance.Regards,Luis
Hi, I'm on a applicaiton involving USBX MSC and FileX. The final memory for the application is a NOR flash so I also use LevelX.Acutally, I'm working on a nucleo-U575ZI-Q without NOR flash so I use NOR Simulator on LevelX.My problem is that a file created with FileX is detected by windows, have the right number of bytes but data are wrong.My program do this:1) FileX format the device2) FileX create the file STM32.TXT and put the data "This is FileX working on STM32". I can see this data on the RAM3) FileX close and open the file STM32.TXT and I can read the text4) FileX close the media.5) USBX open the media and on Windows I see the file STM32.TXT but data are not correct. It's like if this data comes from another part on my RAM.When the device is connected to a computer, I can create new file, write on it then unplug / plug USB and the new file is still here. I can also edit STM32.TXT.Has somebody an idea about why FileX can read right data but windows doesn't read
Hello,We are working with the STM32MP257F-FK Discovery board and are facing an issue while calculating the signature of a memory region.We are following the recommended sequence for initiating the signature computation. The CRCEOC flag is being set as expected, indicating that the operation has completed. However, the resulting CRC value in the corresponding register remains 0x00 instead of the expected signature.Could you please help us understand why the CRC result is not being populated and advise if there are any additional steps or configuration requirements specific to this device?Below is the exact sequence we followed, as documented:Write 0x0 to CRCC[1:0] in RAMCFG_xCCR1 to deactivate the CRC.Write 1 to SRAMHWERDIS in RAMCFG_xCR to disable hardware erase.Select the buffer size for the CRC computation by configuring CRCBS[2:0] in RAMCFG_xCCR1.Write 0x1 to CRCC[1:0] in RAMCFG_xCCR1 to activate the CRC.Write 1 to CRCCS in RAMCFG_xCCR2 to start the CRC computation.As per the refere
I get a Unhandled: on_readmemory_request not available in PyDevJsonCommandProcessor. error while debugging other python projects. This issue gets resolved when I disable the STM32Cub for Visual Studio Code Core extension and its related extensions.To reproduce: Open an existing python project or package (workspace)Launch the debug session. It tries to start the session and in a few seconds throws this error and stops the debugger.Unhandled: on_readmemory_request not available in PyDevJsonCommandProcessor.Please see https://github.com/microsoft/vscode/issues/249341#issuecomment-3064965337
I'm using an STM32H735 microcontroller as the main application processor, connected to an STM32WB05N (Nucleo-WB05KZ) Bluetooth module via UART.Connection:STM32H735 USART1 ↔ STM32WB05N USART1Baud rate: 115200, 8N1, no flow controlPhysical connection: Direct UART TX/RX between the two MCUsSoftware Architecture:STM32WB05N Configuration:Running BLE_TransparentMode firmware (prebuilt from STM32CubeWB0)Configured as Host + Controller mode (full BLE stack on WB05N)Acts as a network coprocessor / transparent BLE bridgeHandles all BLE stack operations internallySTM32H735 Configuration:Main application processorSends ACI/HCI commands via USART1 to control the WB05NReceives HCI events from WB05N with BLE status and dataImplements application logic and decides when to use BLE servicesCommunication Protocol:The H735 controls the WB05N by sending standard Bluetooth HCI commands and proprietary ACI (Application Controller Interface) commands over UART:[H735 Application] --ACI/HCI Commands--> [WB05
Hi,I have configured WB55 project in CubeMX but each time I reopen it, clock config isuue is displayed. When I change SMPS clock source to HSE error dissapears and I can generate project. But onviously it is not saved since next time I open it, error is back and cloc source set again to HSI. Is there way how to fix it or is it just bug in CubeMX? Thanks.David H.
Hi, I've mostly come up to speed with the STM32 environment by way of CubeIDE (with integrated MX, prior to the recent 2.0 switch). With this most recent update, it seems like the forward-looking direction is to migrate to VScode.So, I tried that - I installed the extension and all its associated extension pack siblings. I can see the ST logo on the left of the pane, with a clock icon on it that doesn't seem to ever go away. Clicking on it reveals three panels, with clickable buttons. The top two - launching cubeMX or Finder - seem to work (albeit with a bit of a lag), but nothing in the Cube Resources pane seems to work, everything gives an error like:command 'stm32cube-ide-core.command.open-user-guide' not foundAnd there are these moving blue lines above each pane that seem to suggest something is happening int he background, but after a half hour of sitting, they don't go away. Basically, I'm fairly confused how I'm meant to be interacting with this, and how to make the leap fr
Hello ST Expert, On our custom board - USB PD, it has 1. HW: TCPP03-M20 with STM32G0B1CBT6 2. SW: X-CUBE-TCPP 4.2.0 ( USBPD Application 4.2.0 - Dual_Role) 3. SW: Board Part tcpp0203 1.2.3 4. Tools: STM32CubeMX (6.15) & STM32CubeIDE 1.19.0 & STM32CubeMonitor-UCPD-1.4 May you guide how to fix below issue? Issue: a) When pluging a usb device (smart phone USB type-c 3.1) in /connect to our custom board, on the "STM32CubeMonitor-UCPD-1.4", we could see CC1/CC2 is detected, and it (SRC) starts charging the smart phone (SNK). However, only SRC, CCI/2 info is shown on the GUI; data role (UFP/DFP) info is not shown, etc. b) When we try to do Power role swtich, or try to get SRC's capacity by sending message to connected port on "STM32CubeMonitor-UCPD-1.4", it always shows the message is rejected. (* We already turned on support options on CubeMX - Stack Port 0 Parameters). All messages are rejected. c) Similiar to B), even we enable support all o
Hi everyone. I’m trying to connect a genuine ST-Link V2 to an AT32F415 MCU using SWD, but the debugger always reports “Target not detected” and shows Device Update: false. Here’s my setup: • SWDIO → SWDIO• SWCLK → SWCLK• GND → GND• 3.3V from the board is present (measured ~3.29V)• NRST is connected• Target is externally powered• Several different ST-Link drivers tested• STM32CubeProgrammer, OpenOCD, and ReFlasher all fail to detect the device• Different cables and different USB ports tested My questions: Does ST-Link V2 fully support SWD communication with AT32 (Artery) MCUs, or do I need an AT-Link?If ST-Link V2 should work, what settings or wiring should I double-check?Is there any special sequence needed to connect if the AT32 has read protection enabled?Can ST-Link V2 connect to a target that is running firmware which may have disabled SWD pins? Any insight or experience with ST-Link + AT32 would be appreciated. Thank you.
Hello,I reviewed a material declaration report for the TS4990IQT online.The attached report lists the MFR item name as "AYX0*Q990ABH."Could you please confirm whether TS4990IQT and AYX0*Q990ABH refer to the same part?Also, does this part contain Dechlorane Plus?I would appreciate your guidance on this matter.Thank you,
Hello everyone,I am currently working with the BLE_AT_CLIENT example on the B-U585-IOT02A and have previously updated the integrated STM32WB5M according to the instructions in readme.md (Wireless Coprocessor Update). The example's start screen appears correctly (screenshot: BLE.png).However, there is a problem that, according to this article "Using the Bluetooth stack on the B-U585I-IOT02A board" by Javad Rahimipetroudi, should occur immediately at start-up and independently of a BLE connection:The command TX: AT+BLE_SVC=1 does not appear for me. Normally, this command should be sent automatically immediately after TX: AT. However, only TX: AT is displayed on my device (PC) and then nothing else happens.Question for the community:Is anyone familiar with this behaviour or know what could be causing the example to stop at initialisation and prevent AT+BLE_SVC=1 from being sent in the first place?I would be very grateful for any tips on diagnosis or possible pitf
Greetings, I have being searching for this diode but I had no luck. Markings: BEX 6BA (SG)?)This is an electronic control module (ECM) 12v for an ATV 2007 Polaris 450. I am trying to fix it and I need help to buy this little piece. Any help will be appreciated.Thank you.
Since Updating to new Version is always a lot of manual work i would kindly ask for a Change Log compared to the Major Version 6.4.0.The new Features / Improvements may justify/not justify the move from 6.4.0 -> 6.4.1.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.