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
Following the instruction from https://github.com/STMicroelectronics/meta-st-stm32mp/blob/thud/recipes-kernel/linux/linux-stm32mp/README.HOW_TO.txt* Configure on a build directory (different of kernel source code directory) Here for example, build directory is located at the same level of kernel source code $> cd <directory to kernel source code> $> mkdir -p ../build$> make ARCH=arm O="$PWD/../build" multi_v7_defconfig fragment*.configThen got the following messagemake[1]: Entering directory '/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/build' GEN ./Makefile## configuration written to .config# GEN ./Makefile/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.49/scripts/kconfig/Makefile:109: *** N
I'm planning to use ImGui as framework for creating a GUI application on the MP257 processor.The ImGui is bloat-free e.g it only uses the GPU hardware (OpenGL, Vulkan, etc...) to visulize the graphics such as buttons, menu, labels etc.Will an application like this work smoothly in MP257?
I have a project where if I right click on the project in the project explorer, the IDE just hangs. I've tried opening the project in a different workspace, so it's not (I think) a workspace issue. Other workspaces/projects are just fine. Anyone experienced this? Know of a way to fix it? v1.16 on Mageia Linux, using KDE, not using Wayland. Thanks.
Hello,I'm developing an application with OEMiRoT and trustzone for STM32H563.I'm getting a write protection error (WRPERR) when I try to erase a secure flash sector from secure code that is not protected neither by write protection or HDP. I'm using the method HAL_FLASHEx_Erase() and I mapped the region as readable and writable with the memory management tool of CubeMX.If I try to do the same process without the secure boot provisioning, everything works as expected. I would like to know if there are any additional operation in order to write/erase flash at runtime when secure boot is used.Any help is really appreciated!Thank you,Giulio
This is a followup on this post https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/compilation-error-macro-quot-bind-quot-requires-3-arguments-when/td-p/881690 . mƎALLEm provided very comprehensive answer for the issue. I was unable to post a reply hence this post. I've followed the solution to the letter using the guage touchgfx example. I got a blank white screen and this is the debug window: and here is main.c: /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics. * All r
I am looking for information that compares the security in an STM32U5 or similar with the PUF-based solutions used in competitor's processors. The problem is that "PUF" has a simple explanation that sounds good and a head-to-head analysis of the advantage of these other processors against what ST provides seems to be lacking in the market place. Obviously, ST could have selected a PUF-based security and decided not to do so, so the clues might exist in why that decision was reached. Note: The primary focus is to find processors that prevent software pirates from extracting the firmware. Any help that addresses this will no doubt be repaid in future design wins.
I would like to refer you to the following post from @JRuss.4 that was never satisfactorily answered:STM32L4 Standby Mode GPIO State {Schmitt Trigger} Clarification from Reference Manual I also have the exact same question. Here is my version of the question boiled down to a couple of sentences:The STM32l4 series reference manual, RM0394 (Rev 5 - the latest available), on page 158, states, "In the Standby mode, the IO’s are by default in floating state. If the APC bit of PWR_CR3 register has been set, theI/Os can be configured either with a pull-up (refer to PWR_PUCRx registers (x=A,B,C,D,E,F,G,H)), or with a pull-down (refer to PWR_PDCRx registers (x=A,B,C,D,E,F,G,H)), or can be kept in analog state if none of the PWR_PUCRx or PWR_PDCRx register has been set."This is confusing. The statement "In the Standby mode, the IO’s are by default in floating state" contradicts the statement, "or can be kept in analog state if none of the PWR_PUCRx or PWR_PDCRx r
After several days of wasted time trying to understand what was causing this issue, I finally realized that if I use the add_library() command in a CMake file, the build analyzer tool, without any reasonable explanation, searches for the *.map file with the wrong name. Specifically, if my VSCodeSTM32 project is located in the my_folder directory, then the build analyzer tool looks for the file my_folder/build/Debug/my_folder.map instead of my_folder/build/Debug/project_name.map.I ran into this problem because our project is generated by STM32CubeMX, which uses the add_library() command several times in the cmake/stm32cubemx/CMakeLists.txt file.This is the piece of code that is causing this issue in my main CMakeLists.txt (look in the attached project)################################################################################################################ if(true) # <-- Use false to fix this BUG set(STM32_Drivers_Src ${CMAKE_CURRENT_SOURCE_DIR}/temp.c ) add_library(s
Hello everyone,I’m working on a project with Secure Manager on STM32H573IIK3Q using the STM32H573-DK board. I have followed the official tutorial from ST to make my application compatible with Secure Manager:https://wiki.st.com/stm32mcu/wiki/Security:How_to_make_your_application_compatible_with_Secure_ManagerSo far the system works fine — I can blink LEDs and run a basic non-secure application without issues.However, as soon as I integrate FreeRTOS and switch the HAL timebase source from SysTick to TIM7, the program immediately stops and goes into the BusFault_Handler() after TIM7 interrupt. Steps to reproduce:1) Follow the Secure Manager tutorial and set up SM provisioning2) Confirm basic GPIO/LED blinking works3) Add FreeRTOS middleware (no other changes)4) In Clock Configuration → SYS, change Timebase Source to TIM75) Build and flash — program immediately hits BusFault_Handler() Environment / versionsSTM32CubeMX: 6.17.0STM32Cube FW_H5: V1.6.0STM32CubeIDE: 2.1.0 Thank
I'm still working my way around the DMA learning curve. Having found the IOC approach to DMA configuration too confusing, I'm configuring the structs and calling the HAL_DMA_Init(...) method myself.Something I haven't been able to find clearly described is the "TransferAllocatedPort" field of the DMA_InitTypeDef struct. I understand that it's there to specify source/destination port0/port1, but I don't understand the significance of that selection.One blog post I found seems to say that having two ports allows the DMA peripheral to assemble or disassemble transfers when source and destination have differing alignments. Okay, I understand that explanation, but is that a correct explanation?If my source and destination have the same alignment, can (or should) I assign the same port to both? Is there any advantage or disadvantage? Since a "channel" is devoted to a particular path and direction, I wouldn't think the unused port would be useful for anything els
I'm working on a device that requires requires 12 audio output channels and 10 input channels. I wish to do this over 16-slot TDM. Now, I'm concerned about whether this can be done with 32 bits per sample. The reference manual states in section 54.4.6 Frame synchronization "The audio frame length can be configured to up to 256 bit clock cycles". 256/16=16. Does this mean I can only do 16-bit audio with 16-slot TDM? Or did I misread.
I've STM32G474 using the HRTIMER to control a boost converter, each channel has it's own converter. This all works nicely with the deadtime, no issues. When I come to do a pulse skip, (set CMP3 to 0) the deadtime is still being inserted in the the Tx2 output even though Tx1 output is not being pulsed! Is this normal or have I missed something? I've tried a few things to not make the deadtime happen, like disabling the set and reset sources... the only thing that fixes the problem is to also set the falling deadtime to 0 and then subsequently resetting it back to the required value. Tx2 has no set or reset sources configured.
Hi,I would like to know where I can find the SPI controller version of the STM32G491.AN5543 lists features depending on the SPI controller version and says "To identify the version and the available feature set refer to the product reference manual and datasheet". However, I was not able to find this info in the RM or datasheet of the STM32G491 or anywhere else.
Hello,I’ve noticed a difference in behavior between STM32CubeMX configurations for STM32H7 and STM32N6 series.On STM32H7, when configuring CAN bit timing, the parameters such as Nominal Time Quantum, Nominal Time for one bit, and Nominal Baud Rate update dynamically based on the settings.On STM32N6 (using STM32CubeMX v6.16.0), these values remain constant. For example, even when using the official STM32 example with a nominal bit rate of 1 Mbit/s, CubeMX still shows a fixed value of 1000 bit/s and does not adjust the timing parameters.My question is:Is this a bug in STM32CubeMX v6.16.0 for STM32N6 series?Or is this a new feature specific to STM32N6 where the tool no longer recalculates these values?I’d appreciate clarification from ST or anyone who has encountered the same behavior.Thanks in advance!
Hi, I'm a beginner programming a NUCLEO-N657X0-Q. The LD5 is blinking and I can't get a connection to the board. Even with the demonstration code/project, it wouldn't work. In STM32CubeIDE I get the attached error message. As of yet, I never got to launch any program at all. Thank you for your help! Len
Hi,I want to know what software versions and licenses are part of the STM IDE v1.18.0. For Version v2.1.0 I have found these release Notes which list everything nicelyhttps://www.st.com/resource/en/release_note/rn0114-stm32cubeide-release-v200-stmicroelectronics.pdfOn the STMCubeIDE Download Page / Documentation / Release Notes only lists the most recent Release Note:https://www.st.com/en/development-tools/stm32cubeide.html?ecmp=tt9470_gl_link_feb2019&rt=rn&id=RN0114# How can I find this information for v1.18.0?
Hello, I am using a NUCLEO-H7A3ZI-Q to send and receive packets over serial. I have a varying payload size, so I am using: HAL_UARTEx_ReceiveToIdle_DMA(&huart3, rx_buffer, 4096); as this searches for an idle at the end of the frame to begin processing this data. To process this data and copy it into a look up table (LUT) capable of being 0-4096 bytes long I have this following script; which comprises two uint8_t into one uint16_t to be represented by a 12-bit DAC, hence the clipping if they exceed 0FFF (4095).This receives and writes perfectly up to 512 bytes of memory (256 uint16_t within the LUT), however above this all remaining values in the LUT are left unpopulated. uint16_t length = 0; void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t size){ if (lut != NULL) { HAL_DAC_Stop_DMA(&hdac1, DAC_CHANNEL_1); free (lut); lut = NULL; } if(rx_buffer[0] == 0XAA) { length = rx_buffer[2] | (rx_buffer[1] <<8); frame_rate = rx_buffer[3
Hello, I am having a issue with HAL_UARTEx_ReceiveToIdle_DMA on a NUCLEO-H7A3ZI-Q, when using the following code:uint8_t rx_buffer [4096]; HAL_UARTEx_ReceiveToIdle_DMA(&huart3, rx_buffer, sizeof(rx_buffer)); void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t size){ /*code*/ } My rx_buffer is only populating the first 512 bytes, with the remaining data remaining as 0.__HAL_DMA_GET_COUNTER(huart3.hdmarx);Provides the incorrect amount of data being passed over serial.I have used serial plotter and CoolTerm to try and send packets but both hit this 512 byte limit.rx_buffer not populated past 512 byteslength correctly calculated as 640 bytes long
Hello,I’m trying to add the JPEG encoder to be able to save images in JPEG format to the SD card.While debugging with LEDs, I noticed that MX_JPEG_Init blocks the program, whereas HPDMA is working correctly.I have added all the necessary files for JPEG, but it doesn’t seem to activate.Interestingly, when I disable MX_JPEG_Init, I can see the images on the screen connected to the board without any issue.I’m wondering if there is a configuration problem with the JPEG or if I’m missing something.For reference, I’m using the STM32N6 Discovery Kit (STM32N6DK750).Thanks for any advice!
I am using STM32N6570-Dk board. I want to perform edge-AI testing on this board. Trying to generate code with X-cube-AI. I am confused with FSBL and application mode, which one to choose? It is visible that FSBL is default for X-Cube-AI in STM32N6.My question is:1. What to choose FSBL or application mode or both while generating the code for X-Cube AI ( I want to do some edge AI based testing )?2. Only X-Cube AI in STM32IDE (working in .ioc file) is sufficient for edge AI programs or I need something more than that for this purpose?I am unable to find documentation related to edge AI use for this MCU, If you have one, kindly provide. Thanks & RegardsChanchal
I have developed a custom board for STM32F469NIH6 and is loosely based on STM32F469i-DISCO, it uses an external QSPI Flash memory type MT25QL128A as does the DISCO board. For this setup I am using ST supplied external loader MT25QL128A_STM32F469I-DK.stldr which works fine.We have a requirement for a processor with a video codec, so the logical upgrade route is to STM32F769NIH6 to be used with external QSPI flash MT25QL512A. Both of these devices are pin compatible with the above MCU and QSPI, so the plan is to use the same custom PCB.The problem comes in writing an external loader for this combination because.While ST have a loader MT25QL512A_STM32769I-EVAL.stldr, this loader is not working in our setup, probably because of alternative QSPI I/O configuration which would likely be easy to alter in the loader code, however the source code is not in the github repository https://github.com/STMicroelectronics/stm32-external-loaderIs it available elsewhere?UM0892 says that the ST loade
Split from Benchmark Validation in App does not match Arduino Uno R4 WiFi as this is a new question.thanks for the response @Andrew Neil If i'm not overstepping my bounds, given the requirements of an audio classifier (also need wifi support and display support), which ST board would you suggest. This is simply for prototyping purposes. Thank you in advance.Danny
I have an ST32CubeMX project for a STM32H7 mcu generated with STCubeMX 6.4 and using STM32Cube FW_H7 V1.9.1 where the project files are generated via cmake. Now I want to use STM32Cube FW_H7 V1.12.1, but apparently, in order to be able to generate the new files, I have to migrate the project to STM32CubeMX 6.16.1:The problem is that, once I click in "Migrate", it removes two important lines from my code:So, I went to CubeMX to check, and apparently, at a first glance, the field to configure ADC3 Prescaler is gone ( I do not have any other ADC on):Also, the clock configuration tab was showing a problem. I went to check and apparently ADC clock is not allowed to be more than 100 MHz anymore:Unfortunately, I can not slow PLL2P down, since it is used for other peripherals (e.g. SPI), but I could maybe change the clock source to PER_CK and then derive it from HSI to have it as 25 MHz ( 150 MHz + Prescaler of 6 ), although I do not know which other implications it could have.I looked up some
I am working on a custom board with STM32MP133A cpu and Kingston EMMC08G-ML36 EMMC. The board boots fine from the EMMC, however if the board resets due to kernel panic and/or watchdog timeout it fails to boot from EMMC and enters DFU mode (where it hangs indefinitely). It looks like that after unexpected reset EMMC stays in 8-bit bus width and boot-rom fails to load the TF-A. The current workaround is to set bus-width to 1 in both u-boot and linux device trees. Is this boot-rom behavior described somewhere?Is there any way to reliably reset bus-width from 8 to 1 in case of unexpected STM32MP133A reset? Or to get out of DFU mode after some timeout, although in this case bus-width still has to be reset to 1 somehow?
Hello,I'm currently working on a project using the STM32U5A5VJT6 processor, and I'm exploring the feasibility of implementing WireGuard in a bare-metal environment. I found one mention of WireGuard in this community post [link], however afaik it is an application for an OS based ST product. So I'm looking for more detailed insights.Is STM actively working on any initiatives to bring WireGuard support to processors like the STM32U5A5VJT6, especially for bare-metal implementations?The WireGuard protocol was primarily designed for OS-based systems with kernel support, which makes bare-metal implementation exceptionally challenging. Given the cryptographic and networking demands, has anyone made significant progress or come across alternative approaches that could support WireGuard (or similar VPN functionality) on an STM32?I encountered Mongoose’s library for networking on STM32, which offers some guidance on web server setups. Are there other resources or community-driven efforts that ad
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.