Developer support experience survey - We value your feedback
Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.
Most recent activity
Hello,I used two nucleo-H723ZG boards to try the PSSI_Transmit_Receive_DMA example code in the STM32Cube\Repository\STM32Cube_FW_H7_V1.11.1\Projects\NUCLEO-H723ZG\Examples\PSSI directory, the LEDs on both boards do not flash as expected (master board, the LED2 stayed on all the time, and the 3 LEDs on the slave board never turned on). I followed the instructions in the readme.txt to setup the boards and build the example software. The only issue that I found in the readme.txt is the identification of PC8 pin wrong, instead as stated "CN12 PIN10", it shall be CN12 PIN3 for the STM32H723 MCU.Any suggestions to get the example code running on the two boards? Thank you in advance. Patrick
I am trying to make a sleep function that accepts a uint16_t argumentin microsecond.I wanted to use DWT->CYCCNT, but it seems the counter remains frozen.Obviously, I read the DWT_CTRL_CYCCNTENA_Pos from ->CTRL and the bit is set, therefore enabled.I must be missing something
I have a large (moderately, perhaps) C++ project generated under CubeMX, using FreeRTOS, written in C++, and using tasks. I've been having problems getting the variables in the task to relate back to the C++ class that initialized and created that task.I have a solution and some theories why, as well as a few things that don't work.More in the next post, since I'd rather work in the standard reply format.
I will do a hand gesture recognition system using CMSIS-NN on arm cortex project for one ofmy grad courses. I will use a sample project which is Image Recognition on Arm Cortex M with CMSIS-NN. However, the camera module that is STM32F4DIS-CAM camera module is obsolete. For this reason, I am not sure what to use as a camera module. Couldyou please give me some advice about it?
I noticed the CYCCNT register is accessible from multiple header files.That register is defined as part of the DWT_Type structure.That structure definition is repeated in many header files:core_armv8mbl.h, core_armv8mml.h, core_armv81mml.h, core_cm3.h, core_cm4.h, core_cm7.h, core_cm23.h, core_cm33.h, , core_cm35.h, , core_sc300.hMy actual MCU is the STM32U575xx and I would like to know which one of those header file to include. Also, I am new on this community and I am unsure that I applied the proper label for this question. Please let me know if there is a more appropriate label. Note: I would like to use this register in order to measure time in 100`s of microsecond. I know it could be done using timers. Does it make sense to measure time that way?
Hey. Is it possible to execute code from external memory using only single- or dual-SPI mode? I have a PCB here with a STM32H730 CPU, but on the flash memory, WP/SIO2 and RESET/SIO3 are connected, so no Quad-SPI possible. :frowning_face:In these official references concerning XiP I only find Quad-SPI or Dual-Quad(=Octo)-SPI mentioned:- AN5188- AN4760 section 6.2- https://www.youtube.com/watch?v=YFIvJVsvIsE&list=PLnMKNibPkDnHIrq5BICcFhLsmJFI_ytvE&index=2Thank You!
Hi, I am operating the Timer 1 in One Pulse Slave mode.Yet I want to trigger the timer using software, without other timers, ect, ect. Is this possible ? Thank you.
I found that the external loader of "STM32CubeProgrammer" includes "W25Q128JVEIQ_STM32F746G-DISCO.stldr" and "W25Q128JVEIQ_STM32F7508-DK.stldr", but please tell me where I can download the source code of these two external loaders? Because I want to modify it according to the pins of the STM32 development board and add it to my project.
I have tried following the examples in the reference manual and online, but am having issues!This is on STM32F030C8T6, on a custom PCB and connected to debugger over SWD: void readProtect_lvl1(void){ //read protection is in effect on next power cycle while ((FLASH->SR & FLASH_SR_BSY) != 0) {} //wait for any ongoing flash operation to complete if ((FLASH->CR & FLASH_CR_LOCK) != 0) { FLASH->KEYR = 0x45670123UL; //magic number removes control register lock FLASH->KEYR = 0xCDEF89ABUL; //magic number removes control register lock } while ((FLASH->SR & FLASH_SR_BSY) != 0) {} //wait for flash operation to complete if ((FLASH->CR & FLASH_CR_OPTWRE) == 0) { FLASH->OPTKEYR = 0x45670123UL; //magic number sets option byte write access FLASH->OPTKEYR = 0xCDEF89ABUL; //magic number sets option byte write access } FLASH->CR |= FLASH_CR_OPTER; // must erase option byte first FLASH->CR |= FLASH_CR_STRT; //start flash again w
Hello,I am trying to implement USB host hid class library with stm32F756zg mcu to interface the usb keyboard. I have implemented the uart also to sent the pressed key on the uart to identify it.There is one issue i am observing that it is not sending any key pressed on the uart. The USB keyboard is enumerated but it is stuck in the if (USBH_LL_GetURBState(phost, HID_Handle->InPipe) == USBH_URB_STALL) and does not call the callback function when key is pressed.I have tried the patch (HID_Handle->state = HID_SYNC; instead of the HID_Handle->state = HID_IDLE;) suggested in the forums but it is not working.Please suggest what is the issue in the USB host library and how to get the usb keyboard working with STMF7 MCU. I have tried the same USB host example with STM32F429ZI mcu and the same USB host hid class library is working with this mcu and key is detected and sent on uart.
Attempting to get USB CDC running on the CM4 core of a stock Nucleo-H745zi-q board. USB_CoreReset() times out waiting for a soft reset. Any help would be greatly appreciated.Timeout is in stm32h7xx_ll_usb.c, lines 1456-1469:/* Core Soft Reset */ count = 0U; USBx->GRSTCTL |= USB_OTG_GRSTCTL_CSRST; do { count++; if (count > 200000U) { return HAL_TIMEOUT; } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST);USB clock is RC48Project built with CubeMX V6.6.1, CubeIDE V1.10.1, Firmware FW_H7 V1.10.0 I moved the USB from the CM4 core to the CM7, and this issue does not occur.
As in the title, i need to take the data coming from velodyne lidar vlp-16 through ethernet cable and save it to some usb pendrive or hard drive. I am using stm32f767zi. Data will be coming at about 20Mbit/s and i do not need to do anything with it, just save it. However, i am having trouble finding anything similar to this, and as i am a begginer i have no idea how to really start doing this, so i would very much apprecieate any help on the subject.
Hello,After having purchased a B-L462E-CELL1 eval kit with pre-provisioned Truphone eSIM and having followed the UM2743 eSIM activation steps, I still don't see the eSIM marked as activated on the Truphone IoT Dashboard after one day.Truphone support contacted, but no efficient help as of now.Do you have any returns about such user experience concerning B-L462E-CELL1 and Truphone ?
Hi ST Team,I'm using ST's openbootloader using i2c protocol. But facing following issues while implementing using stm32cubeprogrammer and ST-Link V3set:1. After reset the user application is not running2. Not able to flash new firmware after 1st time flashing(Checked the binaries: Previosly flashed firmaware binary is at that location)Please help to solve the mentioned issue.
hello,trying to write to a ST25DV tag mailbox, via I2C with DMA.The chip has a mailbox of 256 bytes.I use the function:HAL_I2C_Mem_Write_DMA When I try to write data of size 256 bytes, only 255 is written and the last one is written to 0.Writing 255 bytes works fine. Writing without DMA fixes the issue: HAL_I2C_Mem_Write
Dear Team,I am interfacing Nucleo-h743zi2 board with LCM display(GUI) through UART using Interrupt method.I can transmit the data to LCM and it is displaying properly on the LCM display.Now I am trying to send the commands from LCM display to STM controller. I tried to press the button for many times on LCM display and observed sometimes it is triggering and sometimes not triggered). I think there is a problem with synchronisation for receiving from LCM display to STM controller. I can see the events are triggered sometimes in debugging steps.I tried to change the system clock to different values but it did not worked. Also I tried to increase the delays, decreasing delays at different places did not worked.I tried to copy the receiving buffer into the other buffer and cleared the buffer. But this also does not worked.Please find the below Receive function for your reference: extern uint8_t data_u[100];uint8 j, max; uint8 ReadSerialByte( uint8 *data){&n
Hello,i am trying to interface 1.8 inch SPI TFT Display 128 x 160 to the STM32F103C8 using SPI2.https://www.az-delivery.de/products/1-8-zoll-spi-tft-displaySPI1 is used for LoRa, i thought to connect TFT too to SPI1 using addresses but i am affraid to influence theLoRa.The library which i am using is from this website:https://controllerstech.com/st7735-1-8-tft-display-with-stm32/A year earlier i tried to interface LoRa to STM32F103C8 using SPI2 but without success.Is it a general problem in STM32F103C8 using SPI2?Any help is appreciated.
Hello, I am trying to control two Motor Drivers (TMC5041) through SPI communication using STM32F103. The compiler uses IAR. I am trying to communicate with two SPI Masters, but perhaps due to an initial configuration issue, only one SPI is controlled, so I am posting this to ask for help. The current progress was controllable when each SPI2 and SPI3 were controlled one by one. For example, control is possible when TMC5041 Motor Driver 1 is controlled without defining SPI2. Controllable when controlling TMC5041 Motor Driver 2 without defining SPI3 Therefore, it is judged that there is no problem with the communication protocol with each TMC5041. Here, when I try to use two SPIs 2 and 3 together, I am experiencing the problem that only one of the two SPIs can communicate and one is not communicating. In the process of specifying the initial configuration of two SPIs and sending and reading the data specified for each SPI, one SPI was able to write and read witho
Hello to everyone,I have crereated my own STM32L452 board with battery power supply.It dosent run as expected. Sometimes I need to discharge caps and sometimes this is not helping. When it works and I connect nreset to groung and release it stops working, I need to powewr off and repeat mentioned process. I can flashe the code but have a problem with online debbuging (ususaly I louse connection). Somtimes it stops working when the process reaches to delays. When it works in DP port voltaghe level is low and when it not working this pin is high. I have disconnected NRESET pin from board and this is not helping.I have attaced the footprint of my board (mcu part).What to do ?
Sleep testing, How do I configure my GPIO pins to absolutely be surenone of them are supplying any power ?I wish to turn the all "off".And if there is a quick way to do it via CubeMx , so I won't miss any ? Thanks
Hi everyone , can anyone please help me in the issue which i am facing, any help will be much appreciated, i am using the sample projects in the website will be attaching the link -https://docs.rakwireless.com/Product-Categories/WisDuo/RAK3172-Module/Low-Level-Development/#rak3172-on-stm32cubeide-with-stm32wl-sdk-v1-0-0 In the sample projects to open the project i always have to follow the below link completely even if many parts i am not using which is (Projects\NUCLEO-WL55JC\Applications\LoRaWAN) even then i have use in the same way which is (C:\Users\Dell\Desktop\Projects\NUCLEO-WL55JC\Applications\LoRaWAN\LoRaWAN_End_Node) or else i will receive an error in cube ide which is (make: *** No rule to make target 'C:/Users/Dell/Utilities/trace/adv_trace/stm32_adv_trace.c', needed by 'Utilities/stm32_adv_trace.o'. Stop.) even if i include the path in MCU GCC compiler it still gives me the above error.
I am testing the development board STM32U5A9J-DK with THIS and trying to run the GPIO Toggle example program. But during the build process I get the error fatal error: stm32u5xx.h: No such file or directory.I am using CubeIDE version 1.14.1.How to fix this problem?
Hi everyone!Is there anyone who deployed a custom u-boot bootloader developed for evaluation board STM32H7B3I-DK platform with FAT32 driver enabled?Best regards,Francesco
The logic in functions HAL_SAI_Abort() and HAL_SAI_DMAStop() is flawed because the sequence of actions is wrong. A proper sequence is:Disable the SAI and wait for it to be actually disabled.Stop the DMA.Flush the SAI FIFO.In the current implementation the function SAI_Disable() is called after stopping the DMA. This causes a SAI underrun and a data glitch at the end of stream. The bug seems to be present for all series with SAI peripheral.Also the two functions do almost the same and the code is also almost the same, which is an example of a bad and bloated design.
In LwIP examples for NUCLEO-H723ZG, in the linker, I think that there is an incorrect range of RAM_D2 memory.For example here: MEMORY { ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K ROM (rx) : ORIGIN = 0x08000000, LENGTH = 1024K RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K }SRAM available from 0x30000000 has 32 kB availablefrom the reference manual:Or am I missing something? I am writing here before creating an issue on GitHub as I am not sure I am not misreading something. I think they took it from the STM32H74x/H75x devices as those have this amount of memory.The example works correctly as the addresses used are hard-coded in the application, but the size should be correct either way.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.