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
Content:Hi,I am using UART on STM32G4 in interrupt mode (RXNEIE + NVIC enabled). I observed the following situation: 1. A byte is received → RXNE = 1 2. At that moment, UART interrupt is disabled (critical section) 3. Later I re-enable the UART interrupt 4. But the RXNE interrupt does NOT fire, even though RXNE is still = 1 This causes my Modbus task to freeze because no further RXNE interrupts are generated. ------------------------------------------------------------------------------------------------------------------- My question:Is this the expected behavior?i.e.,Does STM32G4 USART generate the RXNE interrupt only when RXNE transitions from 0 to 1,and not when RXNE is already 1 at the moment the interrupt is enabled? I could not find a clear statement about this behavior in the Reference Manual. If this is the intended design, please confirm, and if possible, point to the exact section in the documentation. Thank you.
I am attempting to reconfigure Pin 8 (datasheet default assignments are PB6/PA14-BOOT0/PC15-OSCX_OUT) from PA14-BOOT0 to PB6 GPIO Output Open Drain (GPIO_MODE_OUTPUT_OD) a short time after start-up.My current attempt (code below) does not accomplish this (instead, once the port pin reconfiguration code below has run, an attached STLINK device can still connect to the MCU, or if already connected to MCU, continues to function.)IMPORTANT: I have not yet and do not plan to change MCU option bytes (using STM32Programmer).Intention: In the application (under development, written in C using STM32CubeIDE, using HAL), at power-up, a connected STLINK device should function normally. A short time later (under condition set in firmware), the application firmware is expected to reconfigure Pin 8 from power-on default (as Port A, GPIO bit 14, Alternate Function 0, which is STLINK SWCLK) to a different configuration (as Port B, GPIO bit 6, Open Drain output).This change should (ideally) be able to o
i am using bluepill board. which PA9,PA10 is connected to header. when i connect FTDI as RX Tx mode and also i cheked REST status(reset is high if switch not pressed) but cube programmer say exact like you. my target chip is STM32F103C8T6. using clone stlink i found chip id is 0x414 and flash memory is 256Kb which is not according to datasheet of that MCU.
Hello,I am trying to generate a STM32CubeIDE project using CubeMX (version 6.16.1) for MP157D-DK1 board. It generates some device trees (linux, u-boot, tp-a) but it fails to generate the CubeIDE project.I also tried older versions of CubeMX (as late as 6.12) and none work.The error it displays is attached. Any idea what might be going wrong with the code/project generation? I have STM32CubeIDE v2.0.0 installed.Thanks.
I have both Board "stm32mp257F-dk - F-ev"I try to install chromium on the STM32MP2 , and Successfully installed chromium ,I try to play video on YouTube it is to lagging , smoothly play on 360p only, without YouTube i treid different method to play video on chromium. but also the output same,is there any thing to reslove this issues?My project based of Web display with high resolution video upto 1080p60 fps on HDMI .please give me the update on this, can my project work on this board.
Hi everyone,I’m working with an STM32L5 USART and trying to clarify a point about parity vs. MSB-first transmission.From the reference manual (USART parity control / frame formats), when parity is enabled the frame formats are shown as:M=00, PCE=1: SB | 7-bit data | PB | STBM=01, PCE=1: SB | 8-bit data PB | STBand there is a note that “in the data register, the PB is always taking the MSB position (8th or 7th depending on M)”.This wording caused confusion in our class:one interpretation is that because parity occupies the MSB position in the data register/word length, it might be transmitted before the data bits when MSBFIRST=1.My understanding is:MSBFIRST only reverses the order of the data bits inside the data field.The parity bit remains the parity field in the frame, i.e. logically after the data field and before stop bits.The “MSB position” note refers to the bit slot within the word length/data register, not to the time order on the line.Could someone confirm:Question:When MSBFIR
Heya!I've been borrowing an STLINKV3MINIE and today my own (legitimate) STLINK/V2 arrived today, but I haven't been able to detect it. I purchased the product from Mouser (https://au.mouser.com/ProductDetail/STMicroelectronics/ST-LINK-V2?qs=H4BOwPtf9MC1sDQ8j3cy4w%3D%3D&srsltid=AfmBOooS1jAwuhdu3ZF7xo5hJ7OWAqrWYGnkUSL7hzKZPl6fvURN-Hnq).You can see in device manager, when I have the V3MINIE connected, it shows in the DM panel:When I connect with the V2, my computer does recognise it:I have been using the same USB port on my computer, and I am using the cable that arrived with the V2 to connect it. The red LED on the V2 is on (remains red, no flashing), but I'm getting nothing.When I try connecting to it via STM32CubeProgrammer with the V2, I get nothing (Verb level 3):It does not detect the Serial Number and doesn't show up as something to connect to in the cfg panel:It works A-OK with the V3 as soon as I plug that back in (same settings), but not with my V2.I had downloaded the V2 dr
Case Description:Title: LSM6DSL FIFO data misalignment (XYZ rotated) and FIFO_PATTERN always 0 — how to align reads?Body:I’m using an LSM6DSL over I²C with an STM32. Goal: batch accelerometer-only samples into FIFO and drain clean (x,y,z) triplets at a fixed watermark. I keep running into two issues:Data misalignment — the XYZ triplets appear “rotated”. I’ll get a few normal lines, then a line where one column looks like a big random number (e.g., ~168xx), then it stabilizes again. Example:x,y,z 5, 250, 16870, 17, 258, 16825, -66, 221, 16828, -53, 284, 16834, Sampling End Sampling Start -22, 4, 242, 16846, 13, 281 16830, 51, 230 16882, 39, 242 16850, 11, 258 16803, -14, 220 16843, -24, 232 16855, 0, 241FIFO_PATTERN is always 0 — I expected to use FIFO_STATUS3/4 (FIFO_PATTERN[9:0]) to know which axis comes next and align before parsing, but I always read 0, even when the FIFO is clearly non-empty and STOP_ON_FTH has fired.Hardw
hi, we use one LSM6DSL sensor to read 3 axis acc FIFO data each second, but after some times, the FIFO out data become misaligned. the sensor setting is below:XL_ODR_26HZGyro disabled.FIFO ODR = 26HzFIFO threshold (water mark) = 128No decimationBDU Block Update enabledFIFO Is in continuous modewe have a timer to trigger to read FIFO data by Zephyr I2C(frequency: 100000bits/s) each second, before data reading, we check the numbers of FIFO by checking FIFO_STATUS1 and FIFO_STATUS2 register, then we read a multiple of 3 axis sets each time, for example if the FIFO data number has 78, we will read all FIFO data one time, if the number is 76 or 77, we only read 75 data one time. it can make sure reading data is complete 3-axis data. firstly, the reading data is the right like as (X_ACC, Y_ACC, Z_ACC). but after some time (the time is not fixed) the data will become (Y_ACC, Z_ACC, X_ACC). we don't know how to fix this issue. please help us.
In the datasheet it is given at 40MHz the max C_L is 8pF (from AN6027), but the C_L in the design schema has C1 and C2 8pF(UM3305), which gives 4pF, could you suggest me with the external crystal oscillator design. And the range is from 4MHz to 40MHz, so if for a chosen crystal , should the minimum frequency satisfy this condition ?
Hello,I am using STM32H750VBT6 to perform microSD card write operations. After a number of writes, the CPU sometimes resets during a write operation. At the same time, the Vcore (1.13V) rail shows a voltage drop. The issue is random, but the higher the write frequency, the faster it occurs. Below are details of my hardware, software, and test results. 1. Hardware designThe power supply module:The power supply is designed with 12V input, generating 3.8V, 3.3V, 1.8V, and 1.13V.3.3V powers the STM32 VDD pins, and 1.13V powers the VCAP pins.Each VCAP pin is decoupled with a 0.1 µF capacitor in parallel with a 4.7 µF capacitor (located close, but not on the same plane due to vias).The SD card interface: 2. Software designInitialization code generated by STM32CubeMX + HAL library: void MX_SDMMC1_SD_Init(void) { hsd1.Instance = SDMMC1; hsd1.Init.ClockEdge = SDMMC_CLOCK_EDGE_RISING; hsd1.Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE; hsd1.Init.BusWide = SDMMC_BUS_WIDE
Dear STM32 users and developers, This new thread is back and is dedicated for our technical developers community to share last STM32 updates, the first part will be products documentation news such as datasheets, Erratas, Applications notes followed by specific subject's presentation(s) during the last period in a monthly basis . The format and the content will evolve in next editions... You can leave us your comments on this initiative on this thread Many thanks to @Tesla DeLorean @TDK @waclawek.jan ! Any proposal is welcome for subjects you want to be addressed , Stay tuned . Cheers, STOne-32
Hello everyone,I’m working on a control unit board based on the STM32F407VETx (LQFP100) microcontroller. During development I noticed that some pins configured as external interrupts (rising edge) were being triggered more often than expected.To better analyze the issue and exclude possible mistakes in my code, I prepared a minimal test project with the following configured pins in IOC:Pin 9 – PC15: GPIO_EXTI15 - INPUT_1Pin 97 – PE0: GPIO_EXTI0 - INPUT_2External crystal/ceramic resonator (HSE)Serial Wire Debug with SysTick as timebase sourceThe only user code added is in gpio.c:/* USER CODE BEGIN 0 */ volatile uint8_t counter_1 = 0; volatile uint8_t counter_2 = 0; /* USER CODE END 0 */ . . . /* USER CODE BEGIN 2 */ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if(GPIO_Pin == INPUT_1_Pin) { counter_1 = (counter_1 + 1) % 255; } if (GPIO_Pin == INPUT_2_Pin) { counter_2 = (counter_2 + 1) % 255; } } /* USER CODE END 2 */ On my board both PIN9 and PIN97 have the following
Hi,I’m porting the DATALOG2 application fromfp-sns-datalog2\STM32CubeFunctionPack_DATALOG2_V3.1.0\Projects\STM32U585AI-STWIN.box\Applications\DATALOG2to the STM32U575VGT6, but I’m running into issues with the Bluetooth functionality during debugging. Does anyone have any suggestions? The code enters this section:if (ret_status != (ble_status_t)BLE_STATUS_SUCCESS){BLE_MANAGER_PRINTF("Error: HCI_LE_SET_SCAN_RESPONSE_DATA [%x]\r\n", ret_status);goto end_label;}I can erase, read, and program the BLUENRG-M2SA using RF-Flasher Utility v4.5.0, which indicates that the chip is not damaged.The complete project source code is attached.The hardware circuit is as follows:The code is as follows:void set_connectable_ble(void){#if (BLUE_CORE == BLUENRG_MS)char local_name[8] = {AD_TYPE_COMPLETE_LOCAL_NAME,#else /* (BLUE_CORE == BLUENRG_MS) */uint8_t local_name[8] = {AD_TYPE_COMPLETE_LOCAL_NAME,#endif /* (BLUE_CORE == BLUENRG_MS) */ble_stack_value.board_name[0],ble_stack_value.board_name[1],ble_st
Attempting to download the new STM32CubeMX 2.0 (required since not included in STM32CubeIDE anymore) does not work from your site.https://www.st.com/content/st_com/en/stm32cubemx.html# has links all over the page to "Download STM32CubeMX"...Unfortunately all these links have the same problem: a License Agreement comes up, but when I click Accept nothing happens.There's not an obvious way to download in any other way.
Here: https://wiki.st.com/stm32mcu/wiki/Software_development_kit
Edit: Sorry it was because I didnt gave ARCH parameter to make. (it looks like) I am trying to build u-boot for stm32mp157f-dk2 using git clone -b v2023.10-stm32mp-r1 https://github.com/STMicroelectronics/u-boot.git I am getting below error: HOSTCC scripts/dtc/dtc-parser.tab.o CC lib/asm-offsets.s CC arch/arm/lib/asm-offsets.s /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() /usr/lib/pyth
I am part of a small team trying to build a small robot as our Hobby. Most of us are without a lot of knowledge on Electronics, so we turn to ChatGPT for most of our development.We started our work on this particular Evolution board. We have used it to test our sensor integration, UART communication, and it has worked fine so far.Yesterday, we tried running our BLDC motor using a motor driver. I am not sure if the connections and code were accurate since we followed ChatGPT's instructions. But after our first test, we haven't been able to flash the board again and keep getting this error.I followed the solution pasted here earlier, but even after connecting BT0 to 3.3v, it doesn't connect in the STM32Programmer, and we are unable to erase the chip. Also, whenever it's connected, the ST Link section and the CN7 part of the board heat up pretty quickly.Any guidance on how we can proceed forward will be much appreciated. We are a group of recent graduates, and we can't afford to keep
Hello,I'm using STM32 for a long time and really enjoy these devices to work with them.But I'm a passionate about aviation and I want to build my own A319/A320/A321/A330 PFD/ND displays.My idea is to use USB or Ethernet to send compressed image from X-Plane 12 to a STM32 MCU.What I'm trying to achieve is to use a small number of devices to show the PFD image on 2 square displays of 800x800 MIPI 4 lanes.I found some IC which can convert LTDC RGB888/RGB666/RGB565 to MIPI 4 lanes (like TC358778XBG).My questions are:1. There are any MCUs with dual phisical LTDC avaiable from STM? In case there is no MCU available, I will use one per display.2. FMC can be used with SDRAM + LCD in the same time? Because I saw the physical lines are shared. Thanks.
A new question moved from this thread. In many examples they use the Vref int for the calculation of the temperature. Do I need it for the C0 also or can it be done without?
Hi STM32 community.I'm working on an embedded system which uses a RK3399 CPU (running Linux, functions as a USB host) and a STM32F302CC (Runing FreeRTOS, functions as a USB device). This runs on a custom motherboard. They communicate with each other through virtual COM ports over USB (using this library https://github.com/IntergatedCircuits/USBDevice).This embedded system has been around and in use for several years and thousands of units are operational. 99,99% of the time (or something like that) everything just works just perfectly. But every now and then, during some special circumstances which have not yet been fully understood (MCU brownout maybe?), some devices will end up in a weird state where the MCU seems to be running, but the USB device (i.e. the STM32F302CC) does not enumerate in Linux on the CPU side. This can be seen in kernel log as something like this (or similar):[81228.001719] usb 7-1.4: new full-speed USB device number 40 using xhci-hcd[81228.06569
Hello everyone,I am currently working on an audio project using the Nucleo-WB55 board and the SGTL5000 codec. I am using the SAI peripheral in I2S mode to transmit and receive audio data, but I am facing an issue when testing a simple loopback setup.My SetupHardwareNucleo-WB55SGTL5000 audio codec (not yet fully connected — initial tests are loopback)SAI SD line of Block A connected directly to SD line of Block B for loopback testingSAI ConfigurationSAI Block A: Master, TransmitSAI Block B: Synchronous Slave, ReceiveI2S standard, 16-bit dataTX and RX audio buffers: 16-bit elements, each with 10 entriesDMA enabled for both TX and RXInterrupts enabledCircular DMA mode used on SAI Block B (receiver)Test ProcedureStart SAI B reception with circular DMA.Start a blocking transmission on SAI A: HAL_SAI_Transmit(hsai_BlockA, buffer, sizeof(buffer), 1000); TX SD line is physically looped back to RX SD line.Issue ObservedIn the RX buffer, only the first half of the data matches the tran
Hello ST Community,I’m currently testing an SGTL5000 audio codec with the STM32WB55 Nucleo board, and I’ve run into an issue where audio only works when analog test mode is enabled. I’m using the Hathor SGTL5000 audio breakout board from PCBWay (project link).System ConfigurationSTM32WB55 Nucleo-BoardSTM32CubeIDE Version: 1.18.1STM32CubeMX Version: 6.14.1SGTL5000 Board: Hathor Breakout (PCBWay project)Connections to SGTL5000:VDDIO, VDDA, VDDD = 1.8V (external LDO)I²C only, pulled up with 4.7 kΩMCLK = 12 MHz from STM32WB55 via SAINo SCLK, LRCLK, or I²S DIN/DOUT connectedMic connected to MIC_L; HP_L/R used for headphone outputGoalTo establish an internal audio path on the SGTL5000:MIC → ADC → DAP (optional) → DAC → Headphoneswithout using I²S (just internal routing).ProblemSGTL5000 only outputs audio when analog test mode is enabled CHIP_ANA_TEST1.TESTMODE = 1; CHIP_ANA_TEST1.TM_SELECT_MIC = 1; CHIP_ANA_TEST1.TM_ADCIN_TOHP = 1; CHIP_ANA_TEST1.HP_HOLD_GND = 0; CHIP_ANA_TEST1.HP_HOLD_G
Hello,I got a problem with HAL library 10.4 for STM32L152RE in UART DMA transmission, the data is transmited only one time using the function HAL_UART_Transmit_DMA(&huart3,t_Buffer ,11) using uart3, after that the UART3 structure keep the "flag" huart3.gState to HAL_UART_STATE_BUSY and all the other transmissions failedit never come back to the HAL_UART_STATE_READY so it is impossible to make another transmission. I solve the problem by changing this flag state back to "ready" when transmission is done using indirectly the (callback) transmission interrupt provided in DMA1_Channel2_IRQHandler but it is not really a solution !! it should be OK once the data has been transmitted properly by HAL_UART_Transmit_DMA. is it a bug in 10.4 HAL STM32L1 release ( maybe previous ones too ) or this behavior is normal and I need to use that "manual solution" ? thanks Thierry
Recently brought 2 pcs STLINk V3 MODS. downloading all the documents from st site i didnot find right information(whre is SWD,SCLK, pin located in STLINK V3 MODS) so that i can connect to my target bare metal board of STM32F103 Series MCU. Very much time wastage buy doing fake stlink v2 , from authentic source i brought STLINK V3 mods in a hope that i can programe and debug. Help required.No fruitfull video, no fruitfull document available throughout of internet.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.