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
Couldn't see a definitive answer in the datasheet - What is the source \ sink capability of a USART TX \ RTS pin? The nearest answer I could find was page 128 of DS13313 Rev 5 - "GPIOs (general purpose input/outputs) can sink or source up to ±8 mA, and sink or source up to ±20 mA" but there isn't anything specifically that mentions alternate function pin capability. Can TX and RTS pins directly source or sink an LED via a 220 Ohm resistor (that would be ~15mA each) ? I'm thinking I may have to add external drives like high side MOSFETs otherwise. Thanks.
Hello, I would like to enable overdrive mode on my N657X0. This chip supports 800MHz operation but is usually limited to 600MHz. The manuals specifies to enable overdrive mode before configuring the CPU clock to reach the maximum frequency. I was wondering if there are any - for beginners like me not obvious - ways for the chip or its peripherals to get damaged when enabling overdrive mode. Kind regards, Len
Hi,STM32CubeIDE 2.0fresh projectwithGNU Tool for STM32: 14.3.rel1 :GNU Tool for STM32: 13.3.rel1regards
Hi, I am working with a custom board using the STM32H757BIT and a Riverdi RVT70HSMNWC00 connected through MIPI DSI.I followed the “lv_port_riverdi_70-stm32h7” example for the CubeMX setup and for the DSI display initialization.The system runs from a 25 MHz external HSE, and I have tested the DSI clock using both the HSE and PLL2Q.HAL version: V1.12.1.The UI framework is LVGL. My issue is that the display stays completely black. When LVGL triggers the flush callback, nothing appears on the screen. The backlight PWM is working correctly: it runs at 48 kHz and currently uses a duty cycle above 90%, so the panel should be fully illuminated. The screen content I want to show is extremely simple, just for testing: /*Change the active screen's background color*/ lv_obj_set_style_bg_color(lv_screen_active(), lv_color_hex(0x003a57), LV_PART_MAIN); /*Create a white label, set its text and align it to the center*/ lv_obj_t * label = lv_label_create(lv_screen_active()); lv_label_set_t
Hello, Is it possible to configure STEVAL-CTM015V1 to drive a 3-phase SRM (switched reluctance motor) in sensorless mode? The motor has no Hall sensors, and I cannot use the quadrature encoder signals because they are connected to a LabVIEW measurement system for speed/torque. Thanks!
Starting to prototype a 169Mhz design and looking at the BOM, the IC SKY66121-11 is out of production. Is there a replacement or can you give me a link to still purchase these ICs?
Hello,I have found an inconsistency in the documentation for the STM32U031K8 MCU on ST.com:The Reference Manual (RM0503), Revision 4 is listed on the documentation page, and Table 22 in RM0503 Rev 4 indicates that LPUART2 does not have wake-up capability.The Data Sheet (DS14581), Revision 2 is also listed, and Table 3 in DS14581 Rev 2 states that LPUART2 does have wake-up capability.This leads to a contradiction between the reference manual and the data sheet regarding the wake-up capability of LPUART2. Based on this, it appears that the data sheet documentation might not have been updated properly for this MCU.Could you please review and update the documentation links so that they are consistent and correct for the STM32U031K8?Thank you.
Hello,I am working on SRM motor development for some application and plan to use the STEVAL-CTM015V1 (1 kW, 400 VDC, 3-phase SRM) evaluation board for in-house testing.I have reviewed UM3174 and DB4559, but I could not find any SRM control firmware or example project for this board.Could someone please clarify:Where can I obtain the SRM firmware / example source code for STM32F303CBT6 used on STEVAL-CTM015V1?Is there a ready-made SRM control algorithm (current chopping, turn-on/off angles, speed loop) provided by ST?How is this board intended to be programmed? (recommended IDE / reference project)Any guidance or pointers to official ST resources would be appreciated.
Hi Team,We are currently working with a custom board that uses the STM32H745BIT6 MCU, and we are attempting to connect it to the STLINK-V3SET debugger. However, we are experiencing intermittent debugging issues described below:The debugger successfully enters debug mode only 2–3 times when done the first time.In most cases, the debugger connects and enters debug mode, but after approximately 6–8 seconds, it displays a “Target lost” error (please refer to the attached photo).Often, it shows “Target not responding.” When this happens, we need to power cycle the board. After turning the power supply off and on again, it behaves as described in point 2.This issue has become a major roadblock in our development process.Could you please advise if we might be missing something or configuring anything incorrectly? If you require any additional information from our side (errors, logs, etc.), please let us know and we will provide it.Best regards,Prathiksha
There is a bug in the above mentioned function in stm32f1xx_hal_flash_ex.c file. The function has a uint32_t type parameter WriteProtectPage which determines the flash page chunks to disable the write protection of. On my F103 MCU it means every bit corresponds to 4 pages (each page is 1 Kbyte, total of 128 Kbyte flash memory). This line then combines the currently write protected pages with WriteProtectPage (0 means protected, 1 means unprotected):WriteProtectPage = (FLASH_OB_GetWRP() | WriteProtectPage); The function then slices WriteProtectPage up into 4 pieces (4 WRP option bytes):WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO31MASK); WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO63MASK) >> 8U); WRP2_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES64TO95MASK) >> 16U); WRP3_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES96TO127MASK) >> 24U); It then erases the option byte area (r
Hi,peripheral handles, either the dedicated ones or the labeled ones are usable only during runtime, they're filled with data at the initialization. However, it would be practical to also get a compile-time usable definition as well.So, for example if I label timer 3 as 'MyTimer', we'll get#define MyTimer htim3It would be practical to also get something like this:#define _MyTimer_ TIM3This would give access to e.g. register addresses at compile time. For example, if I want to create a pointer table to the timer CCRs, I can write:volatile const uint32_t *TabCcrPtr[] = { &_MyTimer_->CCR1, &_MyTimer_->CCR2, &_MyTimer_->CCR3, &_MyTimer_->CCR4 };The idea is to have shorter code using tables because it's not needed to use switch statements, etc.Regards
I am currently using the NUCLEO-H563ZI board to test SPI functionality. I configured SPI1 as a master and was able to successfully transmit and receive data using HAL_SPI_TransmitReceive(). However, when I switched to SPI2, I found that the clock signal does not toggle at all, no matter what I try. Is there anything specific that needs to be configured additionally for SPI2? Below is my code; the rest was automatically generated by MX. uint8_t spi_TransmitReceive(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, const uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, uint32_t Timeout) { HAL_StatusTypeDef status; HAL_GPIO_WritePin(GPIOx, GPIO_Pin, GPIO_PIN_RESET); status = HAL_SPI_TransmitReceive(&hspi2, pTxData, pRxData, Size, Timeout); HAL_GPIO_WritePin(GPIOx, GPIO_Pin, GPIO_PIN_SET); return status; } void example_spi_transmitreceive() { printf("\r\nExample SPI Transmit and Receive.\r\n"); uint8_t txbuf[1024]; uint8_t rxbuf[1024] = {0}; for(int i = 0; i < 1024; i++
I'm running a build with meta-webkit on the scarthgap branch for the STM32MP257-EV1. I'm trying to get a web browser working for a custom web page and the performance is pretty poor and I'm not quite sure why. It seems like there's a lot of people doing a similar project but not a lot of hard benchmarking so I'm partially hoping we can make this thread to provide help for people in the future and also maybe I can figure out why my build is running so slow.Here's a more minimal example that anyone should be able to test.If I run cog https://webglsamples.org/aquarium/aquarium.htmlset it to 500 fish, and then look at top. I get about 79% cpu usage for wpewebkit and the output of /sys/kernel/debug/gc/load is:The previous 100ms HW load device : 0 core : 0 load : 62.26%The screen connected via LVDS has a noticeable lag.If I set the fish count to 100 then there's no lag. I know using a web browser on the MPU is pushing it's capabilities but it would be awesome if someone could confirm
Hello, when STM32CubeIDE generate code for STM32H523VCT6, VTOR_TABLE_NS_START_ADDR constant contain wrong value:#define VTOR_TABLE_NS_START_ADDR 0x04020000UCorrect value should be #define VTOR_TABLE_NS_START_ADDR 0x08020000U How to reproduce:STM32CubeIDE Version: 1.18.1STM32Cube FW_H5: 1.5.0Start new project -> for commercial part number select STM32H523VCT6 -> enable trust zone -> generate code.Check file main.c under secure directory. Regards,Slavomir Tomascik
Hello, I'm using CubeMX version 6.17.0 on MacOS, with an STM32H503CBT6 mcu.I'm trying to use an external audio crystal with a frequency of 24.576mhz, after setting the new frequency in the clock configuration tab, I get the right value in the .ioc file. However, "EXTERNAL_CLOCK_VALUE" doesn't seem to be defined in the stm32h5xx_hal_conf.h file, and the default 12288000UL value will be used instead. This makes audio all choppy and distorted, unless I manually define "EXTERNAL_CLOCK_VALUE" in this file to 24576000UL.I tried with other MCU families like the G0B1 and it will correctly generate the clock in the hal files.Is this a bug for the h5 series?
The conclusion is that setting filters and interrupts on FIFO0 leads to exception handlingFDCAN1_IT1_IRQHandler.The reason for this behavior is an error in the file. startup_stm32g431cbtx.s ERROR ...word ADC1_2_IRQHandler.word USB_HP_IRQHandler.word USB_LP_IRQHandler.wordh FDCAN1_IT0_IRQHandler.word FDCAN1_IT1_IRQHandler.word EXTI9_5_IRQHandler.word TIM1_BRK_TIM15_IRQHandler .. This is how it should be ... .word ADC1_2_IRQHandler.word USB_HP_IRQHandler.word USB_LP_IRQHandler.word FDCAN1_IT1_IRQHandler.word FDCAN1_IT0_IRQHandler.word EXTI9_5_IRQHandler.word TIM1_BRK_TIM15_IRQHandler ... As an example, the code that I use is for testing so that there are no questions). void CAN_Config(void) { FDCAN_GlobalTypeDef *CAN = FDCAN1; uint32_t *filterRAM = (uint32_t *)RAMBaseFDCAN1; // Включение тактирования для CAN RCC->APB1ENR1 |= RCC_APB1ENR1_FDCANEN; RCC->CCIPR &= ~RCC_CCIPR_FDCANSEL; // PLL "Q" for FDCAN RCC->CCIPR |= (0x1 <<
Hello!I just bought the stlink-v3minie for myself but I am unable to flash my board using it. I can program my board with a borrowed stlink-v3pwr but not with the minie.I have upgraded the firmware on it and it still doesnt work. It fails with this output:ST-LINK SN : 003300313235510537333439 ST-LINK FW : V3J17M10 Board : STLINK-V3MINIE Voltage : 3.28V SWD freq : 8000 KHz Connect mode: Under Reset Reset mode : Hardware reset Device ID : 0x451 Revision ID : Rev Z Device name : STM32F76x/STM32F77x Flash size : 2 MBytes Device type : MCU Device CPU : Cortex-M7 BL Version : 0x93 Opening and parsing file: ST-LINK_GDB_server_a28496.srec Memory Programming ... File : ST-LINK_GDB_server_a28496.srec Size : 668.68 KB Address : 0x08000000 Erasing memory corresponding to sector 0: Erasing internal memory sectors [0 6] Error: failed to erase memory Error: failed to erase memory Encountered Error when opening C:\ST\STM32CubeIDE_1.18.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.e
Hi, I am currently working on a project that requires us to install a browser on our board. We are using an STM32mp25, which is using the Mickledore image. I am finding that the meta-browser layer is not compatible with Mickledore, and if I'm not mistaken meta-browser only runs on Scarthgap. What I've tried to do is switch my layers to the Scarthgap branch, and unfortunately what I find is that from my conf/local.conf is that the stm32mp25 is not a recognized maching (MACHINE = "stm32pm25"), meaning that the stm32mp25 is not supported on Scarthgap. Has anyone successfully installed a browser on the stm32mp25 (eval board)? Any help would be greatly appreciated! For reference I was following along with this demo https://www.digikey.com/en/maker/projects/intro-to-embedded-linux-part-2-yocto-project/2c08a1ad09d74f20b9844e566d332da4
Our Engineering team is currently having difficulties getting our onboard STM32F303RB MCU to enumerate as a USB DFU device when entering Bootloader mode. We require this functionality in order to be able to upgrade our firmware out in the field. We are able to have our application firmware enumerate a USB device but no luck with the bootloader. The STM32 communicates to an Embedded Linux Host via a USB Hub: Embedded Linux Host <-> USB Hub <-> STM32 We have a few questions regarding getting the bootloader to enumerate. On the internet there appears to be mixed messages as to whether the STM32F303RB MCU uses an internal pullup when in the Bootloader. Are you able to confirm whether it does enable an internal pullup for the bootloader? I have set BOOT0 HIGH but there is also mixed messages about BOOT1 being pulled to GND. To enter USB DFU mode does BOOT1 have to be pulled to GND or is it a don't care and can be left floating? Is there some kind of output/pin I am able to prob
STM8S003F3P6 in this there are two timer 1 with Four independent capture/compare channels (CAPCOM) configurable as input capture, output compare, PWM generation (edge and center aligned mode) and single pulse mode output and tim2 has 3 individually configurable capture/compare channels.can i use all seven as simultaneously for PWM?
STM32H7R7L8H6H XSPI2 is mounted with MX25UM25645GXDI00, and the frequency setting exceeds 133Mhz. The Boot program fails to run and gets stuck in the "XSPI_WaitFlagStateUntilTimeout" function.Please help me!XSPI2 ConfigurationClock Tree ConfigurationEXTMEM_MANAGER Config 1EXTMEM_MANAGER Config 2Stuck here
USB Issues with STM32F767-ZIT – Project StatusI’m an amateur working on building an electronic device. Currently, I’m in the planning and prototyping phase and creating my own PCB design. My current project is based on the STM32F767-ZIT, and I’m having trouble getting the USB (USB-B) connection to work.Hardware SetupPower: VBUS is powered through a ferrite from 5 V on the female USB-B jack.Data lines: D+ and D- are connected to PA11/PA12, each with 22 Ω resistors.GND: connected to the board.HSE: 8 MHzWires: relatively short, nothing unusual.Current BehaviorWhen connecting to a PC:Windows plays the device connect sound, and a device appears in Device Manager.The device shows as “Unknown USB Device (Device Descriptor Request Failed)”.Properties:Device type: USB ControllerManufacturer: Standard USB Host ControllerStatus: “This device has been stopped because it reported problems (Code 43)”USBView shows: FailedEnumeration: Unknown USB Device (Device Descriptor Request Failed)Oscilloscope O
I'm working on a custom STM32U5 board and I'm trying to harden the system.I followed the AN5347 (https://www.st.com/resource/en/application_note/an5347-arm-trustzone-features-for-stm32l5-and-stm32u5-series-stmicroelectronics.pdf) in particular I followed the chapter 10 with success as I was able to raise up to RDP=2 with OEM password and back to RDP=0.Then I tried for the second time using the STM32CubeProgrammer instead of the command line as described in the application note, but I got some issues at step 5: Set RDP level 2. The STM32CubeProgrammer did not end the process and got stuck writing RDP=0xCC in the option byte and after ten minutes I forced the termination of the GUI.After that I was not able to recover to RDP=0.Every time I try to send a command to the board I get some error.If I try to follow chapter 10.6 Unlock RDP level 2 with OEM2Key with the command line:STM32_Programmer_CLI.exe -c port=swd mode=UR -unlockrdp2 0xMYKEYLOW 0xMYKEYHIthe result i
I have been running into an issue with the cubeprogrammer very recently where I am unable to connect to my MCU anymore. I get the following log: using v2.2212:41:28 : STM32CubeProgrammer API v2.22.0 | Windows-64Bits12:43:17 : UR connection mode is defined with the HWrst reset mode12:43:17 : ST-LINK SN : 34FF6A0630514B384036244312:43:17 : ST-LINK FW : V2J47S712:43:17 : Board : --12:43:17 : Voltage : 3.56V12:43:17 : SWD freq : 4000 KHz12:43:17 : Connect mode: Normal12:43:17 : Reset mode : Hardware reset12:43:17 : Device ID : 0x45012:43:17 : Revision ID : Rev V12:43:17 : Error: Database: There's no active configuration for this device. All the 8 configurations are disabled!12:43:17 : Debug in Low Power mode is not supported for this device.12:43:18 : UPLOADING OPTION BYTES DATA ...12:43:18 : Bank : 0x0012:43:18 : Address : 0x5200201c12:43:18 : Size : 308 Bytes12:43:18 : Error: Uploading Option Bytes bank: 0 failed12:43:18 : Error: Initializing the Option Bytes failed12:43:18 : Error: Unab
Hello,I'm using the latest STM32CubeMX 6.16.1 (Linux version), and working on a project cloned from the one provided for STM32MP257F-DK.In the Project Manager -> Advanced Settings, there is the "Generated Function Calls" table.If I set checkboxes here, e.g. in the "Do Not Generate Function Calls" column, the generated code reflects the new settings. However, when I reload the project (via "close/open" or just restarting CubeMX), all checkboxes are in their default positions (disabled for all functions in "Do Not Generate Function Calls").The same thing is with the first "Generate Code" column, and re-ordering the calls doesn't save as well.Is there a workaround?A question to STMicro engineers: enabling OpenAMP middleware for STM32MP2 boards fails to build in CubeIDE. Looks like it is a known issue https://community.st.com/t5/stm32-mpus-software-development/stm32mp257f-dk-openamp-no-such-file-or-directory/td-p/786509, is there a plan to fix it in the next release of CubeMX?Thanks!Reg
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.