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’m working with the STM32U575 and I found in the datasheet that the Flash programming time for a 128-bit (16-byte) write is:118 µs in normal mode48 µs in burst mode(From Table 86: Flash memory characteristics)Before finalizing our design, I need clarification on how these timing values apply in practice:Is the 128-bit programming time the total time per write operation, or is there additional overhead (such as “opening/closing a page” or internal setup time) that needs to be added?If I write multiple 128-bit words sequentially, do I pay the 118/48 µs each time, or is there any extra per-sequence delay?Are there any alignment requirements beyond 128-bit (16-byte) alignment?Do these programming times assume the Flash page is already erased?We plan to evaluate whether the internal Flash write speed will meet our throughput needs, so I want to be sure I understand all timing components correctly.Thanks!
Hello community, I am working with the VL53L0X Time-of-Flight distance sensor and the official ST API driver (VL53L0X API package).My hardware platform is: STM32H747I-DISCO board (CM7 core) I2C3 used to interface the VL53L0X FreeRTOS running on CM7 Display controlled using TouchGFX I copied the VL53L0X API (platform.c, platform.h, vl53l0x_api., vl53l0x_platform. etc.) into my STM32 project. Issue: When I call any API functions Inside a FreeRTOS task, the code does not proceed beyond the first API call.The task appears to get stuck, and my LCD (TouchGFX) stops updating as well. When I comment out these VL53L0X API functions, FreeRTOS and the LCD work normally. FYI I have attached Latest API
I am developing I2S on the NUCLEO-L433RC-P development board using a BT401 bluetooth audio receiver and MAX98357A I2S amplifier.I need to pass the I2S audio data through the STM32L4333 (refer to diagram below). I have done this before using a Microchip dsPIC33E but this has both DATA IN and DATA OUT pins for I2S.Whereas the STM32 only has a single DATA pin (SD), so it can only be DATA IN or DATA OUT.Does this mean I cannot use the STM32 to pass through I2S data ?
When generating code im getting two erros:In timer_if.c:in LoraMac.c: I've been trying to look for some answers but i couldn't really find something useful.If someone can help i'd really appreciate it.Regards.
Greetings,I'm making a USB PD Sink device with a STM32G483 & TCPP01-M12, that will be able to take up to 15V@3A.I started implementing USB PD functionality using STM32CubeIDE 1.19.0 & FreeRTOS. Step by step.The current config is mostly stock, with only a custom BSP_USBPD_PWR_VBUSGetVoltage(uint32_t instance, uint32_t *pVoltage) implementation that reads VBUS voltage & writes it in mV to pVoltage.At init(), firstly MX_USBPD_Init() is called, after that, I'm applying power to TCPP01-M12 & disabling the Dead Battery resistors. Current FreeRTOS config: CMSIS_V2, 16000 bytes heap with heap_4 scheme, NEWLIB_REENTRANT enabledCurrent USBPD config: Full Stack, TIM2 timer, NVIC, DMA set, 2 fixed PDOs, 5V@3A & 9V@3A. Everythink else in Stack Port 0 config is not supported (except SOP). If I understand correctly, the stack should work as follows:At the cable attachment, the source presents 5V on VBUS and sends its capabilities to the sink
Hi all,I am on the lookout for an STM32 microcontroller for a USB Device design where the order of USB D+ and D- pins can be "reversed". What I mean by this is that in most ST MCUs I have reviewed the USB pins are arranged so that D+ is above, and D- below it, as exemplified by the following screenshot from CubeMX and a random MCU:This arrangement makes perfect sense e.g. for SMT USB Micro-B Female connectors as the pin arrangement of such components often nicely aligns with this order.However, what I want to do is use an SMT USB-A Male connector on a PCB board, such as in this run-the-mill USB Flash Memory example form Kingston:When a male connector is used, the pins of the connector are often aligned so that I would have to "cross" the wires in order to match the arrangement that ST MCUs expect.I am aware that I could place the MCU on the bottom side of the PCB and the USB connector to the top side but I specifically do not want to do this, mainly due to the PCB-A supplier I am worki
I'm facing a problem when trying to build an image for my mp257f-eval board using a custom device tree generated from cubemx. I've followed the instructions from the following wiki : https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Distribution_Package#Creating_a_new_open_embedded_layer_for_your_demo But the build fails when trying to compile optee, because the device tree does contains a reference for a pll device not declared earlier. i did some lookups inside the working directory, and i found it declared in the recipes-security/optee folder under meta-st-stm32mp meta layer (https://github.com/STMicroelectronics/meta-st-stm32mp/blob/scarthgap/recipes-security/optee/optee-os/0001-4.0.0-stm32mp-r2.patch). i guess the patch is not applied to the device tree, only the standard device trees for common boards get patched. i don't know if someone has faced a similar problem and can help? I'll attach the log and configs files using for the build. thanks in advance.T
Split from this old, abandoned thread.I see the same error. I'm using STM32F302, talking to MCF8329A using I2C. I can see the STM32 is reading the MCF8329A perfectly fine with no error when I power cycle it.But when I run the firmware on debug mode on stmCubeIDE, I see the I2C doesn't respond, it responds with an error from I2C_WaitOnFlagUntilTimeout.
While implementing I²C communication between the STM32F446RE and the MPU6050, the communication does not work when running in debug mode. However, if the board is reset by just unplugging and re-plugging the power, the I²C communication works correctly, as verified with a logic analyzer. But the communication is not observed in debug mode. What might be the issue
Following the directions in https://docs.zephyrproject.org/latest/boards/st/stm32n6570_dk/doc/index.html images signed using STM32_SigningTool_CLI version 2.20.0 run OK on the board.However, after upgrading to STM32CubeProgrammer 2.21.0, images no longer run (I believe the signature check is now failing on the device).Reverting back to 2.20.0 fixes the signing issue on Windows, macOS, and Linux for the STM32N6570-DK board.However, this is a blocker for developers using the Nucleo N657X0-Q board on Windows & Ubuntu because 2.20.0 has a bug which causes west flash to fail for this board on both Windows & Ubuntu. This west flash bug is fixed for Windows & Ubuntu in 2.21.0, but we can't use that version due to the signing issue in 2.21.0.
Heyho,question about FDCAN and repeating / timed transmission of the same messages:(this is neither about TT CAN nor auto re-transmission, but e.g. for messages which need to be sent every 100 ms repeatedly and "manually")After the first setting of the TX buffer or TX FIFO, and after the first successful transmission, is the TX buffer (incl. the 2 "control" words) somehow altered / changed?If not, can the same message simply be sent again by setting the corresponding bit in the register TXBAR ?
Hi Guys, I am completely new in the world of ST Microcontroller. I have worked with PIC Microcontrollers using MikroC Compiler. After studying various tutorials on this topic, I am getting it slowly. While going through code of generation of PWM, I came across a function " HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_1);" which, I assume, starts PWM. My question, Is it a library function? If so, how can it be accessed. Incidentally it is stated that I have installed STM32 CubeMX and STM32 Cube IDE.
Trying to report a minor issue with published development board design files.The files fail to import into KiCad on Linux with a fairly cryptic error message.After much digging I discovered that the Altium project file has: ```[Document1]DocumentPath=Project_Overview.SchDoc```While the actual file on disk in zip archive is "Project_overview.SchDoc" the difference in capitalization between "Overview" and "overview" causes the files to not open correctly on Linux (which is case sensitive about file paths), while working on Windows. I suspect someone re-named the file at somepoint without fixing all references to it.Re-naming the file, or editing the .PrjPcb file fixes the issue, but this is non-obvious.Specific board: https://www.st.com/en/evaluation-tools/nucleo-h753zi.htmlSpecific download link: https://www.st.com/resource/en/board_manufacturing_specification/mb1364_bdp.zip
I can use stellar studio to flash the new software when start a debug session, but I want a separate tool to just flash the new software just like Stm32CubeProgrammer.Does Stellar team have made such tools?
I have added digitalTime (digitalClock1), textArea (T_DATE_DISPLAY),,BoxProgress (tankLevelA), CircleProgress (valveOpenA), and button (buttonWithIcon1). Please find the code and the errors of the last trial (please note I have wandered through lots of modifications in vain, I must be doing something fundamentally wrong):ERROR:: Please see Reply due to excess charactersmain.c please see the 2nd. reply due to number of charaters model.hpp#ifndef MODEL_HPP #define MODEL_HPP #include <touchgfx/hal/Types.hpp> #include <touchgfx/Model.hpp> class Model : public touchgfx::Model { public: Model(); void tick() override; // Demo mode methods float getTankLevel() const { return tankLevel; } float getValvePosition() const { return valvePosition; } bool isDemoModeActive() const { return true; } protected: // Demo mode variables float tankLevel; float valvePosition; bool tankIncreasing; bool valveIncreasing; void updateDemoData(); }; #endif
Dear STM Community,Over the past while, I have steadily (and successfully) progressed through many STM32/TouchGFX tutorials - with the ultimate aim of sending/receiving data over an RS485 link. Most of these tutorials are produced by Controllerstech. All has been going well until one particular tutorial.I am using the very latest software:TouchGFX Designer 4.26.0STM32CubeIDE 2.0.0STM32CubeMX 6.16.0When I build the design in STM32CubeIDE, I get the error message:make: *** No rule to make target 'C:/Users/XXX/Desktop/TouchGFX-projects/TouchGFX-UART-Control/TouchGFX', needed by 'Utilities/jpeg_utils.o'. Stop."make -j16 all" terminated with exit code 2. Build might be incomplete. One thing I have noted is that this directory doesn't exist: C:/Users/XXX/Desktop/TouchGFX-projects/TouchGFX-UART-Control/TouchGFXCould this be a path length truncation - and hence the error I have spent days trying to drill down to why this error appears.I have loo
Hi all,I'm using STM32Cube IDE (version 1.13.1, build 17479_20230728_0839 ) to manage my company project based on a STM32U5 MCU.More specifically, I'm using linked list feature (for playing audio with SAI + DMA transfer) and I have noticed what appears to me as a bug in auto-generated code.Basically, I have created through CubeMx one list named SAIQueue, with one node named NodeTx and the auto-generated initialization code is the following: /** * @brief DMA Linked-list SAIQueue configuration * @PAram None * @retval None */ HAL_StatusTypeDef MX_SAIQueue_Config(void) { HAL_StatusTypeDef ret = HAL_OK; /* DMA node configuration declaration */ DMA_NodeConfTypeDef pNodeConfig; /* Set node configuration ################################################*/ pNodeConfig.NodeType = DMA_GPDMA_LINEAR_NODE; pNodeConfig.Init.Request = GPDMA1_REQUEST_SAI1_B; pNodeConfig.Init.BlkHWRequest = DMA_BREQ_SINGLE_BURST; pNodeConfig.Init.Direction = DMA_MEMORY_TO_PERIPH; pNodeConfig.Init
All clock setup and tracing enable checkbox checked and port0 selected but still no SWO printf debug messages in CubeIDE debugger. Further research led to the SWO pin function (PB3) that deliveres the trace data from the board to the debugger. However Blackpill's SWD header only has four pins GND,Vcc,CLK,DIO, enough for firmware flashing, manual memory inspection but I fear not for SWO tracing .Is my "analysis" correct, that the stock SWD header is per design not capable of SWO tracing?ST-Link V2 only offers one additional pin (besides NRST) named SWIM on its 10-pin connector.I assume that is not where PB3 ought be connected to, correct?
Hello people,I have been developing a firmware to be used in the stm32g051. One of the features is the ability to respon to request to get information from the uC. I used dma for the uart1 tx and rx. I was happily developing and testing the new feature added into the stm32g051. Then when I use it without the debugger, it is unable to stablish communications between the PC and the microcontroller. The curious thing is the fact that I remove the debugger -I disconnect it- and the communication still works. It is the "reset" without debugger what is unable to stablish the connection. I change the clocks following the several post regarding this problem but the solution still eludes me.
Hello everyone!I'm facing a problem when trying to switch a bank on STM32H745 MCU. The issue happens only when the debugger is disconnected. Our implementation uses the HAL library to perform Bank switch like this:HAL_FLASH_Unlock(); HAL_FLASH_OB_Unlock(); FLASH_OBProgramInitTypeDef info; HAL_FLASHEx_OBGetConfig(&info); // swap banks in option bytes info.OptionType = OPTIONBYTE_USER; info.USERType = OB_USER_SWAP_BANK; if (info.USERConfig & OB_SWAP_BANK_ENABLE) info.USERConfig &= ~OB_SWAP_BANK_ENABLE; else info.USERConfig |= OB_SWAP_BANK_ENABLE; __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_ALL_ERRORS_BANK1); __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_ALL_ERRORS_BANK2); HAL_StatusTypeDef ret = HAL_FLASHEx_OBProgram(&info); if (HAL_OK == ret) { // launch new configuration ret = HAL_FLASH_OB_Launch(); } (void)HAL_FLASH_OB_Lock(); (void)HAL_FLASH_Lock(); __HAL_RCC_CLEAR_RESET_FLAGS(); NVIC_SystemReset();In some of the builds it does not work and after reset it keeps r
I’m using an ST‑LINK V3 Minie with an STM32F100RBT6B Discovery board (which also has an STM32F103C8T6), and it works perfectly. However, when I connect the same ST‑LINK V3 Minie to my custom board that uses the same STM32F100RBT6B chip, it fails to connect.I’ve wired VCC (VTref), GND, NRST, TMS/SWDIO, and TCK/SWCLK exactly as specified.Black - GroundWhite - VccYellow - ResetBlue - ClockPurple - TMSOn the Discovery board this setup works fine, but on my custom board the debugger cannot establish communication.Could anyone suggest what additional checks I should perform on the custom board?
Hello, We are developing a design around VNF1048F & VNF1248F products. We are considering a multichannel design with different output settings. In a multichannel design, naturally we are expecting to have control and monitoring capability of individual channels. We would like to know if the SPI and Diagnostic functions are accessible if we disable VS supply (with external main switches). Basically, we want to disable the outputs and monitor or control the channels to see which one is broken. One absurd idea that we are thinking is that we could supply V3V3 pin (internal LDO output) with external 3V3 source to keep logic awake but we are not sure if it will damage the IC or if it will work. Could you please let us know if this is possible? Thanks.
HiI'm trying to make a text that gets bigger automatically with smooth animation.Is there any way to make it happen using touchgfx?I tried, but I couldn't find a good way to implement it.I tried to make two typed text (one bigger, one smaller), but switching these two seems too unnatural and awkward.Is there any way to dynamically change font size with animation?
Hi,I’m working with the LAN9253 and an STM32F446ZCH6, using Quad-SPI for Ether CAT communication. I attempted to interface with the LAN9253 over QSPI using the STM32 HAL libraries, but I haven’t been able to get it working.Are there any existing libraries or reference implementations available for using QSPI with the LAN9253?Thank you,Deekshitha.
This branches off from the second question I asked in here. Using the example code (Ux_Device_Audio2.0_PlayBack) right off the bat does not work, and this is what I've done so far.HardFault DiagnosisEncountered HardFault_Handler() when audio playback started.Fault analysis revealed:FORCED = 1IMPRECISERR = 1 (Imprecise data access violation)Fault occurred in _ux_utility_memory_copy() due to an invalid destination address: 0x3071BFBA.Buffer Pointer ResetThe destination address was out of bounds.Manually reset BufferCtl.wr_ptr = 0.This resolved the HardFault and allowed playback to start.However, pausing or stopping playback caused the last audio segment to loop indefinitely.Fixing Audio LoopingAdded BSP_AUDIO_OUT_Stop(0) inside the alternate_setting == 0 block of the stream change function.This stopped the looping but introduced a screeching sound mid-playback.This raised questions:Is the buffer not clearing properly?Is the screeching due to stale audio segments?Memory Layout Correc
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.