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 have seen the question asked many times, references made but the question never gets answered with precision. So, once again...I want to use HAL_I2C_Master_Seq_Transmit_IT along with receive to read an I2C device register.1. START SLAVEADDRESSWR (N-Byte RegAddress)2. REPEATEDSART SLAVEADDRESSRD (N-Byte returned data) STOPStep 1 would us HAL_I2C_Master_Seq_Transmit_IT Step 2 would use HAL_I2C_Master_Seq_Receive_ITWhat are the "Option" parameters such as I2C_FIRST_FRAME, etc. for each of these calls to avoid a STOP between the sequences and make the REPEATEDSTART occur, and of course finish up with a STOP?And using the memory read/write calls does not work because the register memory address cannot be of arbitrary length. Don't have a scope handy to see the protocol generated, so I won't know things are working until my device actually returns correct default register values.
Hello, I recently switched to a new Macbook os Tahoe. I can't flash MCU. I see some errors pop. CubeMX detects ST link V3 minie, but can't flash it. Same come with the ST link upgrade. The old Mac with the Sequoia can do the job. Any ideas please ?
Dear community supporters,I would like to add ability to share STM32 projects platforms to my team. I have setup a server on Debian 13 and setup the STLink server tool, and using a SSH tunnel to do port forwarding from the attached STLink port on the linux server (localhost:7184) to a Windows client machine where I plan to use the STM32 Cube IDE, STM32 Cube Programmer.The tunnel is operational, and I have added a wireshark capture showing discussion from my Windows client when using the STM32 Cube Programmer, and a log from a STM32 Cube IDE debug configuration. For both, the Shared STLink is ticked, and in STM32 Cube IDE, I am able to see (the snapshot STM32 Cube IDE Debug Configuration.png shows it) the STLink SN from my remote STM32 Nucleo board attached to my linux server. Though, the STM32 Cube Programmer is unable to show the SN, seems it is unable to detect the probe devices, as shown in the st-link_gdbserver_log when starting the debug session.It seems the STM32Cube Programmer i
Using the information from the chip's datasheet and reference manual:I have the following routine (using the HAL routines). My issue is that I have verified code execution and setting of the two OB values via JTAG, but when the system reset is issued I go right back into user code at 0x0800 0000 and not the DFU loader as expected (0x0BF9 0000).This seems like it should be simple... what am I missing or doing wrong? void EnterFirmwareUpdateMode(void){HAL_StatusTypeDef status; // See RM0438 STM32L562 Ref Manual - pg 193 sect 6.4.2 option bytes programming// See boot configuration pg 98 table 6, line 4 - Set Flash OPTR nBoot0 to 0 and nSWBOOT0 to 0status = HAL_FLASH_Unlock();status = HAL_FLASH_OB_Unlock(); CLEAR_BIT(FLASH->OPTR, FLASH_OPTR_nSWBOOT0_Msk);CLEAR_BIT(FLASH->OPTR, FLASH_OPTR_nBOOT0_Msk);SET_BIT(FLASH->NSCR, FLASH_NSCR_OPTSTRT_Msk); // Seems un-needed since Launch supposedly reboots processorstatus = HAL_FLASH_OB_Lock();status = HA
Hello, In the MCU datasheet, there is a table on page 200: Table 72. Typical dynamic current consumption of peripherals.What is the meaning of the current writing in the peripherals on stop modes, since in this mode, all clocks in the core domain are stopped? I saw that there is an option to enable MSIS/HSI16 in stop mode if a peripheral requests it, but according to what frequency? The frequency of the processor or the frequency that entered the clock tree for the peripheral that required it?moreover, I tried to simulate it on STMCube and saw that adding peripherals does not increase current consumption in stop mode, while on datasheet writes that they consume current in units of uA/MHz. thank you amit
Hi boys and girls from ST company - capitalistic USA country, I installed your new CubeIDE 1.17 today and I ascertained that:1/ If I open a project everything is closed - no window is visible. If I try to close the project, the project is NOT closed and moreower I can even COMPILE !!! and debug and to programm the closed project :) It is very cute.Whe I was very young we had a car "Škoda MB100" (green color). It was very magic car. If there were lack of water in the main cooler and if the car engine was hot enough e.g. approx. 100°C I could remove the ignition key from ignition box, but the car engine runs gaily without stopping :) :) :) :) :) And this situation continued even if I removed the car battery 12V/64Ah :) :) :) :) YES !!! 2/ I tried to change dark gray text color background in C/C++ editor and ... surprisingly ... it is NOT possible. See video here: https://cloud.fastshare.cz/share/get/t51aVjDx2LKVKJ8U3q9YqvJM
Hello, I am working with the STM32WL55 core and I started the FreeRTOS test and a problem occurred to me that I would like to share with you.The only thing I have done is define pin 15 of port B as output and I have created a FreeRTOS task, and within the task I have performed the LED switching:In addition to that, as is already known, FreeRTOS works with Sistyck and the HALs should use another clock source to avoid generating conflicts, in this case I have used timer 1.After configuring that way, I run the program and the LED stays on on the board, it does not switch as done in the programming.Something different happens when I let the FreeRTOS and the HAL use the Systick as a clock source, the LED does blink.What do you think is happening?
Hi, I am configuring the ADC in single-channel continuous conversion mode using DMA. However, once I call HAL_ADC_Start_DMA(&hadc, &AD_RES, 1), the main loop stops executing, and the HAL_ADC_ConvCpltCallback() function is not triggered.I noticed that setting hadc.Init.DMAContinuousRequests = ENABLE causes the main loop to become blocked.How can I configure DMA to continuously retrieve ADC values without blocking the main loop and the HAL_ADC_ConvCpltCallback() will be called continuously? I'm following this ADC tutorial: https://deepbluembedded.com/stm32-adc-continuous-conversion-mode-dma-poll-interrupt-single-channel/ /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2024 STMicroelectronics. * All rights reserved. *
HiI had the stm32f746G-disco development board laying around, after while I wanted to try some application, during flash I got warning that my st-link firmware was old, I wanted to upgrade it but failed during upgrade, anyway it was very old firmware. Well I had another st-link at hand, I have connected it to the SWD port on the dev-kit, *** me I thought it is connected to stm32f7 but after pressing erase flash I saw the connected MCU is stmf103, well I accidentally erased the st-link, long story short it was a *** mistake.I have been searching online there are lots of suggestion, I am very confused, is there a way to recover the on board stlink. Because there is no jumper or pin that exposes SWD/JTAG pins of stm32f7, I need to recover it.I have tried "java -jar STLinkUpgrade.jar -d8_d32_msc_br -force_prog" with stm32f407 nucleo board but no chance.Any help appreciated thanks.
Question 1The first image shows the toolchain configuration of my previous project, and the second image shows the configuration displayed in my newly created project. Why do I need to reinstall the toolchain when creating a new project on the same computer?Question 2I remember that when I first used the extension, these tools were all specified through scripts. However, after using it for a period of time, I found that CMake, programmer, and other tools could not find the specified paths, so I had to add them all to the environment variables.
Hi,ich wanted to have a look on the following project: https://github.com/stm32-hotspot/STM32WB-ZB-RUC-Lighting/tree/mainHow can i import it in STM32CubeIDE 2.0.0 ?In the readme is written:In order to make the programs work, you must do the following: Open your toolchain Rebuild all files and flash the board with the executable fileSo i opened cube ide, hit on import existing project and so on, but this does not really work.It seems to be not recognized as anything which it can work with or so.
I got my STM32H745I-DISCO (STM32H745XIH6U) kit and wanted to update st-link (STLINK-V3E) firmware. Unfortunately I used unreliable USB cable and it got probably disconnected during the process. Now the STLinkUpgrade shows the line "Unknown firmware type. Don't know how to upgrade."Is there any chance to restore original firmware? Or do I have to use external ST-Link/buy new board?Thank you in advance.
Hello Cant find any data of this product form st 095RONT EL4U1TF ACan please somebody help me ?
Hello everyone,This is my first post on the ST Community forum.I recently moved from a custom 6-layer board using STM32H725IGKB to a simpler 4-layer board using STM32H723ZGT6. Both designs use an external OCTOSPI memory, with 50 ohm controlled-impedance routing and 33 ohm series resistors on the signals.On the new 4-layer board, I am seeing read/write errors on the OCTOSPI interface, while the original 6-layer board works reliably with similar routing and firmware.I would like to ask whether the OCTOSPI output driver characteristics or output impedance differ between STM32H725 and STM32H723, or if these issues are more likely related to signal integrity, stack-up, or return-path differences on a 4-layer PCB.Any guidance or experience would be appreciated.Thank you in advance.
Hi, I mistakenly used the pin for swd on my F446RE for other purposes and now it does not connect through st link.Can anyone guide me through a solution for it? The only thing I can do now is update the board. The two leds are always red.
I have CubeMX 2.0.0 and I notice that if I want to enable DSIHOST, I need to first enable HSE.But the clock configuration of the DSI does not require HSE. It seems that the clock configuration of DSI seems to work with HSI in CubeMX 2.0.0.So, the question is: I need to enable HSE, but do I need to clock configure it for DSI as well? Or could I use HSI in the clock configuration, even if HSE is enabled? Processor: STM32MP257FAK3
Hi!I'm looking for an appropriate DRAM for the MP257.I know there is a table about validated DRAM for MPUs.https://wiki.st.com/stm32mpu/wiki/Validated_DRAM_on_STM32_MPU_portfolioMy question is if there is a DRAM standard i csn follow if I want to try another vendor of DRAM?I'm looking for other types of DRAM that shares the same footprint and connection. But I'm unsure if it's good enough to select a DRAM on those specifications.I've heard that there is a standard called JEDEC. If another vendor follows that standard, does that mean that this DRAM is compatible with the MP257?For example: The MP257-DK is validated with MT53E1G32D2FW-046 WT:C, but that DRAM is out of stock. Could I use MT53E1G32D2FW-046 WT:B instead? It's the design B version instead of design C version.
I am currently using the STM32N657 on the NUCLEO-N657X0-Q board to drive an 800x480 pixel display with 24-bit color. The display that I am using is the NHD-7.0-800480EF-ASXV#-T. I’m using the built in LTDC controller on the chip. I do know that the controller is working because the entire screen is black, the screen would be showing the backlight if it wasn’t. The problem is that I am unable to display anything at all when writing to the screen buffer.Here are the configuration parameters that I am using based on the data sheet:Here are the layer settings that I am using:Here is the clock configuration for the LTDC: Here is the code that I am running:main.cint main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysI
Can anyone tell me or direct me to a source that shows the minimum connections needed to power up and serially program a STM32F765ZGT6? (144 pin package.) I will be attaching the chip to a breakout board and will be using a St-Link Minie3. Any help much appreciated.
On platforms like LCSC and Mouser, an IMU labeled "LSM6DSVQTR" is listed separately from the LSM6DSVTR. On JLCPCB, the LSM6DSVQTR has considerably more stock than the LSM6DSVTR and is eligible for the "economic" PCBA service, unlike the LSM6DSVTR.Do these IMUs have any meaningful differences, or can they be used interchangeably? If they do have differences, are they documented anywhere?
I'm curious how hard of a task would it be to get UCPD working with the STM32N6 with zephyr. I see it's supported with the G0* https://docs.zephyrproject.org/latest/boards/st/stm32g071b_disco/doc/index.html From my understanding the UCPD hardware block is the same between the two chips?
Hi! I'm working on a Power Delivery Sink using an STM32G484RETx MCU. I managed to get SPR Power Delivery working without any issues, but I'm having trouble handling the EPR handshake.I'm using the latest USB-PD library from ST's GitHub:https://github.com/STMicroelectronics/stm32-mw-usbpd-coreI can successfully enter EPR Mode, but the PD stack automatically calls Evaluate Capabilities and sends an SPR Request (Data Object[2] == 0). I can’t find any option to prevent the stack from running Evaluate Capabilities when Extended PDOs are received from the source.I’ve read @FBL's post on the ST Community, which states that the latest stack should support EPR:https://community.st.com/t5/stm32-mcus-embedded-software/update-about-usb-pd-stack-to-support-epr-mode/td-p/829168Do you have any solutions or examples that show how to properly handle EPR using the ST USB-PD stack? In the second screenshot, you can see that the stack incorrectly sends an EPR Request (Data Object[2] = 00000000h)
I have swapped from a custom PCB-board with a 6-layer stack using a STM32H725IGKB, to another custom board with a 4-layer stack using STM32H723ZGT6 (simpler package).I am using an external OCTO SPI on both boards, but I have R/W errors with the 4-layer board.Both boards are routed with 50 ohms impedance and uses 33 ohms series resistors for the OCTO SPI.I am wondering if the output impedance is the same for these two H7-devices?
Hello everybody,I am trying to synchronize the ADC1 and ADC2 to work with center-aligned PWM signals in dual-simultaneous regular mode using DMA. My setup:PWM frequency: 5.2 kHZADC conversion frequency: 104/2 = 52 MHZIf I have 3 conversions per ADC with every single one lasting 2.5 cycles, according to the reference manual:One conversion : (2.5 + 12.5)*19ns = 285 nsThree conversions: 285*3 = 855 nsThe problem is when I hook up oscilloscope I see that I am getting 8.2us until I reach my interrupt routine which is much longer than expected. I want to do all of my conversions at the moment when CNT=ARR so that I make sure lower side of the FET is ON. I am doing this by setting another channel of the timer to use it only for the time base and setting its TIMx.Pulse = ARR -1. Also TIM1 and TIM8 are synchronized through master/slave in trigger mode on enabling the counter. Picture of the scope:Yellow : PA7 - GPIOBlue: TIM1CH2 PWM /* USER CODE BEGI
Hi ST Team,I am working on custom MPU board based on STM32MP257F-EV1 reference design.For our design,reassigned I2C1 from the M33 core to the A35 core using STM32CubeMX.The I2C1 ownership changed from CID2 (M33) to CID1 (A35) in CubeMX.Corresponding RIF changes are applied in stm32mp257f-ev1-ca35tdcid-ostl-rif.dtsi and enabled I2C1 entry in linux devicetree with clock frequency 400kHz.During runtime, I2C1 SCL frequency is observed at ~141 kHz, even when:clock-frequency = 400000clock-frequency = 100000On referring clock configuration section in cubeMX, could observe the PLL4 is the parent clock for both I2C1 and I2C2.I2C2 clock output matches the configured frequency on hardware probing in both frequency (100 and 400kHz).Whether any additional clock, RIF, or access-controller configuration is required specifically for I2C1 after moving it to the A35 core.Can you please check and help us to resolve the issue.BSP - openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 - distribution packageThanks
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.