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 using a custom board, and use the optee device tree generated by STM32CUBEMX and full UART log. Panic at core/kernel/dt_driver.c:904 <probe_dt_drivers>. How to solve this problem?
Hello Everyone,I'm quite new with this kind of coding.I'm editing two dual core projects written for Nucleo WL55JC1, Node2 and Node1. Node2 allready implements the reading from adc and now i have to implement into Node1. I would like that the "adc.c" file was the same in the two projects so i checked the .ioc file from Node2 and I configured the .ioc of the Node1 in the same way doing some changes (Node2 has to read from 3 sensors, Node1 just from one).Now, the two adc.c files are basically the same but the one in the Node1 implements the code RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; ---------------------------- /** Initializes the peripherals clocks */ PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_ADC; PeriphClkInitStruct.AdcClockSelection = RCC_ADCCLKSOURCE_HSI; if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) { Error_Handler(); }and the one in the Node2 don't. For what I understand it regards the adc clock so i checked the Node2's .io
Hello @all, I've downloaded ST25DVCryptoDemo for iOS from here, in order to take a look into the demo code for a new project.Once I've tried to build the Demo app I've got a big amount of errors. In fact the console gave me this message "too many errors emitted, stopping now"Could someone please help me to fix those issues and make everything works properly?I've also download the ST25SDK but, when I've took a look the Readme file I saw that the SDK can be used for Android app and PC app (not iOS app)
Hello.I am using a custom image sensor board controlled by an STM32H7 MCU.The image sensor is AR0134, and the I2C peripheral clock source for the MCU is set to 100 MHz (standard I2C bus speed is configured via timing registers).There is one strange problem when the image sensor board is connected to the main control board (with the STM32H7 mounted).1. I built a total of 30 identical MCU control boards.2. The same firmware is programmed into all boards.3. About 11 of these boards show problems when configuring the AR0134 registers over I2C.- The MCU configures the sensor by writing to its registers over I2C.- During testing, the same image sensor board is reused; only the MCU control board is swapped.- With the same firmware and the same sensor board, some MCU boards configure the registers correctly, but on the problematic boards, when the registers are written and then read back, the values are all 0.- Occasionally, on these problematic boards, if the power is turned off for a long t
Hello,are there any example parameters available to drive a stepper motor fast in current mode? I am using the EVLPOWERSTEP01 evaluation board with different stepper motors, e.g. Oriental PK267JDA (3.4V, 2.8A, 1.2Ohm) and Nanotec ST6018K2008 (4.8V, 2.0A, 2.4Ohm). Every motor stalls at 9 rev/sec. I used the settings related to UM1829 and played with all parameter values. Without any progress. How to speed up to e.g. 60 rev/sec?I attached my default parameters from the SPINFamily tool.Thanks in advance,Stephan
When using Zephyr, commands like west debug require ST tools (e.g. ST-LINK_gdbserver) to be installed and available on the PATH. I believe this currently requires STM32CubeCLT to be installed. However, I'd like to avoid installing STM32CubeCLT since it's deprecated in favor of the new bundle manager that is installed with the VS Code extension.I'd like to request the ability to install & use the bundle manager by itself (outside of the VS Code environment) to install packages like stlink-gdbserver into a custom location on my machine. The goal would be to add these tools to my path for development. I'd also like to be able to use the bundle manager to install tools into a CI environment (e.g. for use in GitHub actions).Note: this question is similar to https://community.st.com/t5/stm32cubeide-for-visual-studio/cli-tools-of-new-stm32cube-for-visual-studio-code-extension/m-p/831932/highlight/true#M1028 however the accepted solution in that answer requires ins
Hello ST Community, We are developing a product based on STM32MP151 which has 2 (WKUP) GPIOs connected to wake our battery-powered product from sleep or shutdown. Can somebody please let us know how we can detect which GPIO triggered the wakeup in linux userspace? We have to execute specific functions in our C application based on which GPIO triggered wakeup of our STM32MP151 based product. We are using latest openstlinux distribution package and we are open to creating a kernel module if that's required, but need some basic guidance on where to look at. Please note: We also use "rtcwake" to wakeup our product at regular intervals. Our product needs both GPIO and RTC wakeup sources. Best Regards, Ayush Sharma
This is a pretty basic question but I would like a bit of clarity if possible.If a GPIO pin is configured for the fsbl code can it also be used in the Appli code?If so how would you go about defining it in the Appli code? There doesn't seem to be an option to use a GPIO pin in both fsbl and Appli in STM32CubeMX or do you have to configure it manually in the Appli code?
Dear Sir/Madam, We are currently using CubeMX version 6.1.4 alongside CubeIDE version 1.18.1 to generate code for the M33 microcontroller. However, we have encountered an issue where the clock configuration functions are not being generated as part of the code.We kindly request your guidance on resolving this matter. Please let us know if further details are required.Thank you for your assistance.Best regards
I am currently designing a circuit using the LD1117S50CTR.In the recommended circuit in the datasheet, Cin = 100 nF and Cout = 10 µF are specified.For an LDO, I believe Cout is critical, while Cin is not as important.Therefore, I am considering using 10 µF ceramic capacitors for both Cin and Cout.Is there any issue with using a Cin value larger than the recommended 100 nF?
Our company has a chip that outputs data via DCMI, though it does not employ a standard DCMI interface. It lacks a horizontal synchronisation signal, possessing only a vertical synchronisation signal. Could you advise which chips are capable of receiving such data? If available, please provide specific chip models and concrete code examples. Edited by ST moderator: This post has been translated from Chinese to comply with the ST Community guidelines.
Hello Everybody,Here are the software and boards in this case:1. MC workbench 6.3.22.STEVAL-IHM039V1/STEVAL-CTM009V1I am using an I-PMSM motor with the ST development boards (STEVAL-IHM039V1 / STEVAL-CTM009V1). In open-loop mode, the motor spins smoothly and quietly. However, when I switch to normal mode—which uses the Hall speed sensors and ICS current sensors—two issues arise:The motor consistently produces a high-frequency noise.At low speeds (e.g., 500 RPM), there is a noticeable lack of torque; the motor cannot sustain rotation when I manually apply light resistance by hand.Could you please help identify the main cause of this problem?Thank you for your help.
Hello Everybody,Here are the software and boards in this case:1. MC workbench 6.3.22. NUCLEO-F401RE/X-NUCLEO-IHM08M13.?B-G431B-ESC1I have an I-PMSM motor, and I use two boards (one is?NUCLEO-F401RE/X-NUCLEO-IHM08M1, and the other is?B-G431B-ESC1) to run the?ST Motor Profile for detecting the motor parameters. However, the motor parameters in the two test results differ significantly. For example, the result from Board 1 (NUCLEO-F401RE/X-NUCLEO-IHM08M1) is shown in picture 1, and the result from Board 2 (B-G431B-ESC1) is shown in picture 2. We can see that the motor phase resistance is 0.23 ohms, the phase inductance is 0.62 mH, and the back EMF constant is 9.32 in picture 1. And we can see that the motor phase resistance is 0.16 ohms, the phase inductance is 0.43 mH, and the back EMF constant is 10.42 in picture 2.Which result should I trust? Thanks!
I have a project of making a point -2-point communication using lorawan protocol with the chip called AI-thinker Ra-09h that have an STM32WLE5 MCU . The problem is i dont have any knowledge in this field and i dont know how to deal with this module
I am working on a simple mp3 player project and have spent a few days on the Spirit library, as offered by ST.This comes in a binary (.a) form only lib_mp3decoder_cortex_m4_v2.2.0.a and has apparently been built for soft floats, using some weird mode where they drive the FPU directly - the "VFP reggister arguments" thing. My project uses the FPU for a lot of stuff, and since you apparently cannot mix these floating modes at link time, I get these errorsSearching online finds a 2021 reply from ST on same topic, where ST say the Spirit company no longer exists so they can't help. But the website is still there, so I emailed them. I got a reply, surprisingly:They don't support users, so I need to contact ST, to which I replied that I am not a car manufacturer, and I am happy to give them some money for a cortex-m4 lib which is actually usable :)Lots of people have been around this. I have a hardware float compiler setting but this mp3 lib uses something different. One poster suggests
I’m working on a project with the Nucleo-L476RG. I want to perform a measurement, then put the microcontroller into Sleep Mode for 2 seconds, after which it should be woken up by the RTC clock.I followed the tutorial:How to configure the RTC to wake up the STM32 from Low Power modesUnfortunately, Sleep Mode is entered but not exited properly.Down below are my project settings: In my measurement function, I call a custom sleep() function.void start_measurement(hx711_t *hx711){ hx711->processed_reading = get_weight(active_hx711, 10); menu_refresh(); pack_data(hx711); if (HAL_UART_Transmit_DMA(&huart2, (uint8_t *)( active_hx711->tx_buffer), HX711_TX_BUFFER_SIZE) == HAL_OK){ active_hx711->measurement_count = 0U; active_hx711->tx_in_progress = 1U; } sleep(); }there's the call of the sleep function:void HAL_RTCEx_WakeUpTimerEventCallback(RTC_HandleTypeDef *hrtc) { //HAL_ResumeTick(); printf("Inside the HAL_RTCEx_WakeUpTimerEventCallback function")
ULPM for the MIPI CSI interface of VD55G1 is not clearly described.Errata (es0643) section "QVGA at 480 fps" say that we should put MIPI in ULPM. Why does this affect timing?WRITE_REG8 STREAM_STATICS_OIF_ULPM 'h01 # MIPI in ULPMIs this a MIPI setting (continuous/discontinuous)? Additionally, a register write is referred to that is not documented anywhere in the datasheet or integration guide.WRITE_REG8 CHANNEL_STATS_ROI_REDUCE_FACTOR 'h10 # 16 lines removed to the stats ROIWhat is this register? The address is not even known.
Hi ST Team, I am using STM32H7S78-DK development board.I have read and tested following article:https://wiki.st.com/stm32mcu/wiki/Security:STiRoT_for_STM32H7Shttps://wiki.st.com/stm32mcu/wiki/Security:OEMiRoT_OEMuRoT_for_STM32H7Shttps://wiki.st.com/stm32mcu/wiki/Security:How_to_start_with_STiRoT_OEMuRoT_on_STM32H7SI need some help on my project.In How_to_start_with_STiRoT_OEMuRoT_on_STM32H7S wiki page, I got the correct result following "1.5 Full regression" section. But for the "3.1 Debug Opening procedure" section, I got error message after clicking "Execute". The life cycle after clicking discover is "ST_LIFECYCLE_CLOSED (Debug opened)". Any method to fix this error?10:31:36 : STM32CubeProgrammer API v2.20.0 | Windows-64Bits 10:37:49 : Start Debug Authentication Sequence 10:37:49 : SDMOpen : 624 : open : SDM API v1.0 10:37:49 : SDMOpen : 625 : open : SDM Library version v1.2.0 10:37:49 : open_comms : 513 : open : Asserting target reset 10:37:49 : open_com
Hi everyone, I was trying to port TFM + TFM_SB on my STMU575ZI-Q Nucleo following this guide: https://www.st.com/resource/en/user_manual/um2851-getting-started-with-stm32cubeu5-tfm-application-stmicroelectronics.pdf and I've managed to flash secure bootloader and TFM. I've managed to do the regression of the MCU setting the option bytes. When I finally lunched TFM_UPDATE.sh script, logs appeared on tera term as expected, but in the end it got stuck in TFM BOOT log. So I disconnected the board and tried to repeat the process, cleaning and building again the TFM SB image, TFM Appl image etc... But When I tried to mass erase the system flash, an error has occurred: DEV TARGET NOT HALTED. When I reset the board and I observe tera term logs, I can see the following:[INF] Flash operation: Op=0x0, Area=0x0, Address=0x0[INF] Starting bootloader[INF] Checking BL2 NV area[INF] Checking BL2 NV area header[INF] Checking BL2 NV Counter consistency[INF] Consistent BL2 NV Counter 3 = 0x1000000[INF] C
HelloI am developing on the STM32H7B3-DK using X-CUBE-SBSFU v2.7.0 with IAR compiler version 9.70. During the build, I encountered the following critical error:Fatal error[Li004]: file "STM32CryptographicV3.1.3_CM7_IARv8.a" is not an object or archive fileIt appears that the provided static library (STM32CryptographicV3.1.3_CM7_IARv8.a) was built with IAR v8.x and is incompatible with IAR v9.70, preventing successful linking. The static library is present in STM32CubeExpansion_SBSFU_V2.7.0\Middlewares\ST\STM32_Cryptographic\Fw_Crypto\STM32H7A3\LibCould you please advise:Is there an official version of the STM32 Cryptographic static library compatible with IAR v9.x for STM32H7B3?If not, what is the recommended procedure to rebuild or obtain a compatible library for use with IAR v9 ?Thank you for your support. @STackPointer64 @Jocelyn RICARD @Fred
Hello,I have already read the AN4758 application note and I still have a few questions regarding PCROP.I have a project for end-users where the main application provides functions (API) that users can call to develop their own code. I was originally planning to provide these functions as a static library, but since PCROP is very useful and secure, I would prefer to protect my API using PCROP instead of distributing a library with unnecessary header files.In my application, the region 0x08000000 to 0x0805DFFF contains my API code. I plan to flash this code first and then protect this area with PCROP.Here are my questions:If the end-user creates an empty project and I only provide the header files, can they still debug their own application even though the API code region is PCROP-protected?Since a PCROP-protected area cannot be read or written, is there any way to update my API code later? I have a CAN bootloader, but this region will be protected by PCROP.(I am using STM32G474RET6 with
Hi,I am using STM32H56x with OEMiROT_Boot example project, currently the swap method of the OEMiROT_Boot is "MCUBOOT_SWAP_USING_SCRATCH", can I change it to MCUBOOT_SWAP_USING_MOVE?Is there any security concern use MCUBOOT_SWAP_USING_MOVE?Regards,Snaku
I've been playing around with the TrustZone Enabled on the STM32H573 board and using this tutorial:https://wiki.st.com/stm32mcu/wiki/Security:How_to_start_with_OEMiRoT_on_STM32H573_and_563%E2%80%93TrustZone_enabledI had no trouble executing the tutorial, using the Debug Authentication, or changing the permission levels to attach the IAR Debugger to put breakpoints in the main functions of the Non Secure or Secure Applications.However, my group uses the STM32 Cube IDE, and I've been having trouble doing the equivalent using that tool. I know where to enable and set up the Debug Authentication, but I'm having trouble attaching to the running target, hitting the reset button (as instructed in the above tutorial), and having the program stop at the breakpoint I have enabled in the main function of the Secure Application (before it jumps to Non Secure Init) and displaying the associated source code. I have built all the projects (OEMiROT Boot, OEMiROT_Appli_TrustZone_Secure, and
I am trying to setup FreeRTOS for the new STM32N6 Nucleo board. Running into the following error `GCC/ARM_CM55_NTZ/non_secure/port.c:1814: undefined reference to `__privileged_sram_start__'`.Based on https://github.com/STMicroelectronics/x-cube-freertos/blob/main/Projects/NUCLEO-N657X0-Q/Applications/FreeRTOS_MPU/README.md#notes, it looks like I am missing some linker files. The example itself has it defined at https://github.com/STMicroelectronics/x-cube-freertos/blob/main/Projects/NUCLEO-N657X0-Q/Applications/FreeRTOS_MPU/EWARM/stm32n657xx_axisram2_fsbl.icf#L80 . But looks to be using EWARM whereas I am using CubeIDE. How can I define/find these linker files needed for the privileged calls?
Hi, I am working on proof of concept project with B-L4S51-IOT1A Discovery board with STM32 micro on board and many useful sensors for fast development, I am wishing to learn in the on board wireless sensors i.e. BlueNRG-M0 and Wifi. I want to load and run BLE examples but current versions of X-CUBE-BLE1 do not provide any working examples. Request to ST to provide working examples for Discovery Kit and BlueNRG-M0. Thanks
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.