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
Hello everyone,I am currently working with the BLE_AT_CLIENT example on the B-U585-IOT02A and have previously updated the integrated STM32WB5M according to the instructions in readme.md. The start screen of the example appears correctly (screenshot: BLE.png).However, a problem occurs which, according to this article https://mind.be/blog/using-the-bluetooth-stack-on-the-b-u585i-iot02a-board/ should occur immediately at start-up and independently of a BLE connection:The command TX: AT+BLE_SVC=1 does not appear for me.Normally, this command should be sent automatically immediately after TX: AT. However, only TX: AT is displayed on my device, and then nothing else happens.Question for the community:Is anyone familiar with this behaviour or know what could be causing the example to stop at initialisation and prevent AT+BLE_SVC=1 from being sent in the first place?I would be very grateful for any tips on diagnosis or possible pitfalls.Many thanks!
Hello, Does ST have a tentative roadmap for supporting the STM32N6 series in the X-Cube-MCSDK?
Hello! I've been fighting with the MP13 for a couple months now in trying to enable reading/writing to the NAND, as well as configuring ethernet and keep running into issues with being unable to update the necessary registers for this. When writing to the extended truztone protection registers, no change is made. The clock's enabled, so that shouldn't be it. Within the reference manual, it states "ETZPC registers are write-secure (that is, read accesses are allowed by secure and non-secure domains, write accesses are allowed by the secure domain only". I've yet to figure out how to be in the "secure" domain to update these bits so I can actually use most of the features of this board without using Digi's yocto builds.Any thoughts/advice on the above?
HiDeleted all my first attempts, wanted a new clean start.Then imported the "Templates" part of the ST provided "stm32cubec0-v1-4-0" examples.But it won't run nor build (greyed out).It says "The selection cannot be launched, and there are no recent lauches" (See attached)I've been looking through to make one but with no luck.The built in Help is not providing anything.
HiI am implementing the ECDSA-P256 signing for a payload.I have checked the example code https://github.com/STMicroelectronics/STM32CubeU3/tree/main/Projects/NUCLEO-U385RG-Q/Examples/CCB/CCB_Protected_ECDSA_SignatureThe example code shows that the software has an access to the private-key. Would it be possible to generate a private key using RNG which software/processor can not see and which can be used by the CCB to compute a signature. The same key can be used to get public-key. can I use this API HAL_CCB_ECDSA_GenerateWrapPrivateKey(). Would this key be persistence across reboot or do I need to store the wrapped key?
Hi,I'm using a custom STSPINF0 based board and successfully profiled my motor. Using motor pilot, I have obtained a start-up profile which I've also implemented in Motor Control Workbench (6.3.1) as shown below: I've interfaced STSPINF0 with nRF52832 over USART and I'm able to execute commands & receive data successfully.But, motor runs and stalls with Fault_over/ Duration type fault when I execute MC_StartMotor1(). I think using this command my start-up parameters are not executed.I want to know does Motor Workbench stored my start-up parameters in the firmware/ STM Cube IDE? If so, how I can start my motor using that stored start-up parameters?Otherwise, please guide me how can I manually implement & execute my above start-up parameters in forms of following commands before executing MC_StartMotor1() over USART:* - MC_ProgramSpeedRampMotor1()* - MC_ProgramTorqueRampMotor1()* - MC_SetCurrentReferenceMotor1() Thanks
Hi teams,CPU: STM32U0Current RDP level: Level 1OEM1 RDP lock: Enabled.I had set the 128bit OEM1 key to the OEM key registers [FLASH_OEM1KEYWyR ]accordingly, and the written OEM1 key values was verified using their CRC values by reading OEM1KEYCRC register.Now I am trying to make the regression from level 1 to level 0 according to the user manual description [section: 3.5.1 FLASH read protection (RDP)]. But the operation was failed using my source code. Which is attached below#define STM32U0_DBGMCU_BASE 0x40015800 // Accessible to the software via the APB access port AP0#define STM32U0_DBGMCU_DBG_AUTH_HOST (STM32U0_DBGMCU_BASE + 0x100) // Debug authentication mailbox host register Could you please clarify the following doubts,1. The unlock sequence says, debug access port 1 has to be used for programming the 128-bit OEM1 key in the DBGMCU_DBG_AUTH_HOST register,but when I checked the DBGMCU_DBG_AUTH_HOST register base, it sa
I know this sounds super nitpicky, but the app icon on macOS is not sized per Apple's human interface guidelines.Can you fix the app icon on macOS so it looks like all other macOS apps?Thanks!
__LL_ADC_CALC_VREFANALOG_VOLTAGE macro presumes that VREFINT calibration value is from a 16-bit ADC. However, for STM32H723, the value I see (1522) is from 12-bit ADC conversion. So this macro returns incorrect value. On STM32H747, it works as expected (the value is 24074 which corresponds to 16-bit ADC value). I have not found any information about conversion width in the reference manual nor in the datasheet.#define __LL_ADC_CALC_VREFANALOG_VOLTAGE(__VREFINT_ADC_DATA__,\ __ADC_RESOLUTION__) \ (((uint32_t)(*VREFINT_CAL_ADDR) * VREFINT_CAL_VREF) \ / __LL_ADC_CONVERT_DATA_RESOLUTION((__VREFINT_ADC_DATA__), \ (__ADC_RESOLUTION__), \ LL_ADC_RESOLUTION_16B) \ )
Hello, Can I say that "IDLE" is equivalent to "RTO with 8-10 bits (depending on framing)"?Or are there some other subtle differences? My goal is to transfer received data with DMA and start interpretation of the data when nothing is received on the line which, in my application's world, is equivalent to an end of frame. ThanksJulien
Hi, I'm using the boatd ihmi08. I would like to control the motor in closed loop as a target rotor angle. Is it possible in 6 steps or is the focus much better?
Hi,We have the X-NUCLEO-67W61M1 (for ST67W) attached to a custom STM32U5-board. Disappointingly we just found out the whole architecture of X-CUBE-ST67W61 seems to rely on FreeRTOS while our app architecture is based on ThreadX…A light weight bare metal approach would be highly appreciated when starting up simple testing with e.g AT-commands! Then we want to use ThreadX for an HTTP server among other things.Any recommendations on potential work arounds using the X-CUBE-ST67W61 without switching to FreeRTOS?Thanks in advance
Hello,let say that STM32H753 mCU has connected VBUS (via resistor divider to be sure that voltage on VBUS detection pin (PA9) would never exceed AMR), D-, D+ and GND lines with PC, before mCU core is supplied. At the moment when mCU core is then connected to power supply, would enumeration starts normally as it should or fact that USB module of mCU was connected to PC before core parts of mCU were supplied could bring problems?Thanks!
I'm starting a bare-metal firmware that will display basic graphics on a LTDC connected LCD screen. For the moment I'm using a STM32H53-EVAL2 board (rev E I think) Right now I write a fix image in the frame buffer. The image is correctly displayed except it's kind of blinking. Since the image never changes I suspect it is due to the setup of the LTDC interface or LCD screen. I based my software on STM32CubeH7 source code example (LTDC_Paint application). Do you know: - the screen model on the eval board ( I couldn't find the model in the STM32H753-EVAL2 reference manual) - what configuration parameter could cause the "blinking" of a fixed image ? Thank you
Hello! I'm now using a STM32F469 to drive a screen with MIPI-DSI Interface. I need to send the initial codes with low power command transmission, and then drive the screen in video mode. I think LPDT it is supported by this MCU, but I'm not sure how to use it. Could anyone give me some advice or instructions?
Hello,I am trying to get the OEMiROT example projects running on STM32H563 from "STM32CubeH5\Projects\NUCLEO-H563ZI\Applications\ROT" and this page : https://wiki.st.com/stm32mcu/wiki/Security:How_to_start_with_OEMiRoT_on_STM32H573_and_563%E2%80%93TrustZone_enabled Provisioning works well, unfortunately, I'm blocked on the firmware update step through the internal bootloader. After the message 'Start download with STM32CubeProgrammer through supported interfaces (USART/SPI/I2C/USB)', when I connect CubeProgrammer with uart connection, the bootloader seems to work correctly as I received:Chip ID:0x484 Bootloader protocol version : 4.0Then, CubeProgrammer freezes for 2 mins and the device is disconnected with this message log: 09:54:32 : Error: RDP is set to level 1 or target is held under reset, try using Read UnProtect (-rdu) command in order to remove the Read Out Protection. 09:54:32 : UPLOADING OPTION BYTES DATA ... 09:54:32 : Bank : 0x00 09:54:32 : Address : 0x4
Hello, when I was using this chip, STM32F427ZGT6, it could print data, but the delay was incorrect. After 5 seconds, it was only a few milliseconds. Due to the inaccurate delay, the timing sequence became disordered
I used MC_SDK_6.3.2 to generate a motor control program, but found that sometimes the motherboard crashes. Debugging found that the following code has problems. May I ask why this is? Is it a hardware bug?//The problematic code is here, and the program will enter a dead loop: while (LL_ADC_IsActiveFlag_EOCS(RCM_handle_array[handle]->regADC) == 0u) { /* Nothing to do */ }The complete code is as follows:uint16_t RCM_ExecRegularConv (RegConv_t *regConv) { uint16_t retVal; uint8_t handle = regConv->convHandle; LL_ADC_REG_SetSequencerRanks(RCM_handle_array[handle]->regADC, LL_ADC_REG_RANK_1, __LL_ADC_DECIMAL_NB_TO_CHANNEL(RCM_handle_array[handle]->channel)); (void)LL_ADC_REG_ReadConversionData12L(RCM_handle_array[handle]->regADC); /* Bit banding access equivalent to LL_ADC_REG_StartConversionSWStart */ BB_REG_BIT_SET(&RCM_handle_array[handle]->regADC->CR2, ADC_CR2_SWSTART_Pos); /* Wait until end of regular conversion */ while (LL_ADC_IsActiveFlag_EOCS(
Apologies for cross post, I couldn't find a way to delete the other post or how to change which board to post it to.I'm trying to set up the Utility Sequencer to run an acquisition task followed by an signal processing task, see code snippets below.When I look at the serial monitor, I see the start acquisition task message but then it hangs waiting for EVENT0So even though I've set EVENT0 in Custom_APP_Init() it looks to me that the event is not in fact set.What am I missing here?I commented out the SetTask line as I realized I hadn't finished setting up before the sequencer sets off but now no tasks get set, so I dont get the start acquisition task message any more. #define EVENT0 1<<30 #define EVENT1 1<<31 void Custom_APP_Init(void) { /* USER CODE BEGIN CUSTOM_APP_Init */ UTIL_SEQ_RegTask(1<<CFG_TASK_SENSOR_UPDATE_ID, UTIL_SEQ_RFU, sensor_update); UTIL_SEQ_RegTask(2<<CFG_TASK_FFT_ID, UTIL_SEQ_RFU, do_fft); U
Changelog Version 2.0.0 V2.0.0 implies a breaking change: CMake project generation has been moved from VS Code to STM32CubeMX v6.11.0 (and later). VS Code solution no longer has dependency on STM32CubeIDE (.cproject-files) VS Code solution no longer relies on STM32CubeIDE provided toolchains and debugger tools VS Code solution no longer has dependency on vcpkg, Added support to import STM32CubeMX v6.11.0 CMake projects and bootstrap edit/compile/debug in VS Code Added support to create empty projects Depends on STM32CubeCLT v1.15.0 for empty project creation, build and debug tools Documentation update: The User Guide has increased coverage Better OS platform support https://marketplace.visualstudio.com/items?itemName=stmicroelectronics.stm32-vscode-extension
Hello,I have a small problem here. When I run a clean in git, the directories .vscode, .settings, and build are deleted. If the project needs to be rebuilt, the Setup STM32Cude project function has to be executed manually, and the board/device has to be specified manually again. This is very error-prone. Is there a way to start this project setup from CMake or from CMakePresets.json?For example, if no compiler was found?In CMake, the correct settings are already known.
I've burned a significant amount of time tracking down an issue, so I thought I would share in the hope of helping others and maybe improving ST's provided newlib locks.(This is probably in the wrong place, please move it as required.)I'm using the ThreadSafe files (stm32_lock.h & newlib_lock_glue.c) generated by CubeMX 6.6.1 to make newlib thread safe.I'm utilising Strategy 4: "Allow lock usage from interrupts. Implemented using FreeRTOS locks." (because I'm using FreeRTOS but also the ST USB device library which by default calls malloc from an ISR).Strategy 4 implements newlib's __retarget_lock_etc suite of hooks to lock critical sections inside newlib.To test how robust this solution is I created 3 (exact number not critical, but I had 3 LEDs for debugging...) threads which all repeatedly malloc() and free() in infinite loops.To my dismay it would not be long before a crash/instability occurred.Often the particular "canary" to be killed would be STM32_LOCK_ASSERT_VALID_NESTING_L
Hi. How can I build the Demo FW initially running on NUCLEO-H563ZI ?The is a number of projects in Cube under STM32Cube_FW_H5_V1.5.0\Projects\NUCLEO-H563ZI but it is not clear which one is the factory used to initially program the board. Thanks.
You may encounter an issue when developing for the STM32 microcontroller using STM32 development boards where a pin that is configured for reading on a General Purpose Input/Output (GPIO) reports a high state even when it is not physically connected to any circuit. Pins are not expected to output neither high or low when left floating. This can lead to significant difficulties when developing for the target. In my specific use case, this behavior resulted in an LED flashing when the jumper was not bridged, leading to confusion and misinterpretation of the system's status. It took me more than a week to understand what was happening because debugging step by step using the STMCubeIDE always resulted in the expected functionality. I believe such an issue can arise due to floating inputs and/or electrical noise, mainly if the board is sitting on an isolator.To fix this please make sure to implement pull-up or pull-down resistors in your design to ensure that the GPIO pin h
I've been beating my head for a while trying to use OpenOCD to download my program to the chip, and I'm getting error messages which cite a write algorithm error (errors attached below). I'm not really too sure what I'm doing wrong, and would greatly appreciate any help and insight with resolving this!TL;DR. I'm getting errors likeError: flash write algorithm aborted by target Error: error executing stm32l4 flash write algorithm Error: flash write failed = 00000088 Error: block write failed Error: error writing to flash at address 0x08000000 at offset 0x00000000in the Console log from OpenOCD.I've reproduced the error using OpenOCD with STM32CubeIDE as follows where I set up a fresh project, demonstrate that using ST-LINK (ST-LINK GDB SERVER) works, and finally demonstrate that using OpenOCD fails.I create a new project withFile > New > STM32 ProjectAnd go to "Board Selector", then select the "Commercial Part Number" to NUCLEO-U575ZI-Q.I press "Next >", then fill out the
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.