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
Hi,Is there a proper guide or documentation for x-cube-cellular? I want to test if I can send or receive data to a remote server and I am struggling to use the package API. In UM2426 it says "X-CUBE-CELLULAR Application Programming Interface available as file EmbSw_application_programming_interface_Cellular_Package.chm in X-CUBECELLULAR Expansion Package", but I couldn't find the file. Any help is appreciated.
Hello everyone,I would like to know if there are any examples of how to use I3C with DMA and Linked List for data transmission and reception while acting as a target with STM32H series. The examples with DMA always require a fixed transfer size.I am looking for a reference for variable-length transfers to use in a CMIS system.Thank you!
I've flashed the board with the X-CUBE-Audio-Kit LiveTune firmware and then used the CLI in the LiveTune web app to set the sample rate to option 6: 06:Mic:onboard: Out: 48KHz 2Ch In: 48KHz 2Ch-1Mic Duration:1ms: ID_02480248onb01FFFFFF When I playback audio on my Mac, audio is coming out but it is playing back as if there is a tremolo effect on the audio. It's cutting in and out in volume probably 2 to 3 times per second. Is there something in the configuration I'm supposed to change to fix this? I've loaded up the pop equalizer LiveTune configuration. I have attached both the firmware and the .livetune file. Any thoughts from anyone?
Hi,Just installed X-CUBE-AI package 10.0.0 and observed that documentation is missing:
MX_GPIO_Init(); MX_SPI2_Init(); MX_USART2_UART_Init(); MX_FATFS_Init(); /* USER CODE BEGIN 2 */ W25Qxxx_Init(); fres = f_mount(&fs,"0:",1); if(fres == FR_OK) { v=9; fres = f_open(&fp, "info.txt", FA_OPEN_ALWAYS|FA_WRITE); } else { v=2; } trying to use spi flash using fatfs .but occur hardfault handler when calling fopen . i am not sure whether it is from fopen or not.
Hi, I'm Lucy. I've come across a difficulty that I can't solve. I was hoping you could help me see what the problem is. One of my programs uses IAP. The APP program starts at 0x8020000. After the APP program worked properly for a while, the APP program would not run. So I read the content of the non-running FLASH and compared it with the content of the normal running FLASH. I checked the code and there is no operation of FLSH, what else could cause this? Edit: This post has been translated from Chinese to comply with the ST Community guidelines.
Hello,I'm working on a low-power application using the STM32L073 microcontroller and aiming to achieve a current consumption of around 3.5 µA in Stop mode. Here are the steps I've followed so far:Power Connections: I'm powering the microcontroller directly via VDD with a voltage of 3.3V.Nucleo Board Configuration: I have removed the JP5 connection on my Nucleo-L073 board along with the CN2 jumper connections.Despite my efforts, the current consumption I'm observing ranges between 260 µA to 280 µA, which is significantly higher than my target.Here are the crucial parts of the code I've used to measure the current consumption: #include "main.h" // Function prototypes void SystemClock_Config(void); static void MX_GPIO_Init(void); void HW_EnterStopMode(void); void Error_Handler(void); // Function prototype for Error_Handler int main(void) { HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); // Main loop while (1) { // Enter Stop mode HW_EnterStopMode(); } } void HW_En
Hello Community!Recently i have started working on USB MSC using RTOS. Im using USB HOST Library version 3.5.2 and latest version of CubeMx.When im generating the code by selecting FreeRTOS CMSIS V2 and pulging my USB drive to CN13 connector then the Appli_state is always staying at APPLICATION_START state and not not going to APPLICATION_READY state.but on other hand if im selecting FreeRTOS CMSIS V1 instead of V2 with keeping same configuration then USB Appli_state is changing imidiatly to APPLICATION_READY state when USB is getting connected to CN13 connetor.Here im using STM32F746 NUCLEO board. if anyone knows what is the issue please reply.Thank you!
Hi I am using the STM32F7 MCU to use a usb. I can get the USB connected however, when I try to run debug, the application hard faults, and I can't trace the error. I was hoping to get a reference to a tutorial from STM regarding reading/writing to USB. I have the pinout configuration correct. I am using USB_OTG_FS Host Only, Mass Storage Host Class. In FATFS I adjusted the parameters USE_LFN to be enabled with static working buffer on the BSS, I disabled FS_REENTRANT.
i'm trying to learn about ST USB LIBRARY AND CLASSES . i tried to run an example on my stm32h7a3ZI-Q board but i didn't succeed . i tried the HID class to make the board act like a mouse . i really copied the MOOC tutorial video step by step and the code was compiled with 0 error but when i run it ,nothing happen when i press the blue button( i checked it in an other led blinking project and the button is working fine) . so i tried the keyboard tutorial from the mooc tutorial also but the serial monitor didnt show anything . i checked the internet and it appears the board lacks a VCP so i tried to run a project with the CDC class to simulate a VCP to link the board with the serial monitor but also it didn't show anything despite code was clean from any error and im pretty sure i used the right functions(CDC_TRANSMIT_HS) . i used CN1 if this helps . so is there any guide? . i really didnt now where i went wrong . i didn't find any article that guides me to run a
I am using the STM32H7B3I-DK and trying to read and write from an SD card using SDMMC1 with TouchGFX running (also FreeRTOS). I have solved a NO_FILESYSTEM ERROR described here. While this allowed me to mount, open, and write to a file, I still get NO_FILESYSTEM Error on reads from the card. Additionally I have noticed the following line is a defining line that allows the SDCARD to mount, open, and write; however, it also leads to my display flickering in many areas when updating. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;Can someone help me understand what may be going on here regarding the read Error and how the MPU settings are causing the flicker? The following is my MPU Code and regions defined in linker file:void MPU_Config(void) { MPU_Region_InitTypeDef MPU_InitStruct = {0}; /* Disables the MPU */ HAL_MPU_Disable(); /** Initializes and configures the Region and the memory to be protected */ MPU_InitStruct.Enable = M
I've setup a custom USB device with multiple interfaces on custom hardware using a ULPI. The USB code is derived from the code generated by CubeMX.On interface 0 I have endpoint 1 in and outOn interface 1 I have endpoint 2 in and outOn interface 2 I have endpoint 3 in and outFrom the PC, I wrote a very simple program that can send and receive a single packet. I can send and receive data on interface 0 (ep1). I can also send data from PC to device to on interface 1 (ep2), but I cannot receive data. Interface 2 has not yet been implemented. Transmit and receive buffers are set as follows in usbd_conf.c: HAL_PCDEx_SetRxFiFo(&hpcd_USB_OTG_HS, 0x200);HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_HS, 0, 0x20);HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_HS, 1, 0x80);HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_HS, 2, 0x80);HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_HS, 3, 0x80); In my custom device class I open all three pairs of EP's exactly the same way. I'm missing something though. My presumpti
Hello, everybody! I'm relatively new to STM32 microcontrollers and have a moderate knowledge of C programming and a fair understanding of electronics.Over the past few months, I've been learning to properly set up STM32F4 series MCUs, specifically the F401RET6U (Nucleo board) and the F411CEU6 (Black Pill board), using bare-metal approach. I've spent considerable time watching tutorial videos and reading online guides to help me get started.I'm now at a point where I can set up the clock and read from and write to GPIOs.From what I understand, setting up peripherals involves configuring the correct values in the appropriate registers in the right order.I would like to learn how to use embedded flash memory to store information that needs to be retained after a power loss. So far, I've struggled to find a guide or tutorial that I can fully understand. Could someone please assist me with this or point me in the right direction?Thank you very much, and have a blessed week, everyone!
Hi, I’m working with an STM32G0 MCU and utilizing the USBPD and USB_DEVICE Middleware packages.In my application, I need to detect if the connected device is running iOS. Since all Apple devices have the Vendor ID (VID) set to 0x5AC, I plan to use this as a distinguishing factor. However, I’m unable to locate where and how to retrieve this VID within the STM32 software framework. Is there a specific function or method available in the Middleware or USB stack that allows me to access the VID of a connected device? If not, could you guide me on where to look or how to implement this functionality?Thank you!
Hi,Is there any BSP available for DP83826 PHY to communicate with STM32F746 MCU?The mode choosen in hardware is RMII. DP83826 mode choosen is Basic. I have tried Driver_PHY DP83848 BSP on CUBE IDE, but the is no communcation.Help me how to configure DP83826 in cube IDE and to build communcation. Thanks!
Hello,I'm working on a project where I'm using an STM32H7R3L8H6H and an MX25UW25645G. It isn't possible to get the Flash working on XSPI2 when using the ExtMemLoader generated by STM32CubeMX. I checked the example in the firmware package and found the following errors in it:In the STM32CubeMX XSPI2 configuration, "Parameter Settings" is the "Memory Size" with 32GBit selected.The "__FLASH_SIZE" in the linker file "STM32H7S3L8HX_ROMxspi2_app.ld" is set to 0x08000000.Since the NUCLEO_STM32H7S3L8 board is using the MX25UW25645G chip, those settings are incorrect.They should be 256GBit instead of 32GBit and 0x02000000 instead of 008000000.Where can I find the source code for the "MX25UW25645G_NUCLEO-H7S3L8.stldr" which is shipped with the STM32CubeProgrammer? It looks like this loader is working, but I want to use my own loader for my project. Unfortunately, there is not one working example anywhere that uses the MX25UW25645G, even if this chip is used by STM on their NUCLEO board. It
Hello,I am seeking help trying to understand and hopefully fix. I am writing data to a 32 channel SPI DAC. I am writing 3 bytes to each channel. To write to all channels and update simultaneously i trigger a LDA line after all 32 channels have been written to. what I see is large delays between 3 byte transmissions. I am using DMA and interupts.The SPI port is set at 24MHZ and micro at 75MHZ using the PLL HSI. The 3 bytes transfer fine at 24Mhz. This takes approx 950nS. I then see a 2.5uS delay before the next 3 bytes are sent. This kills the overall time taken to something that breaches my spec. Full 32 channels taking approx. 105mS. I want it closer to 32ms. I'm sure I am overlooking something, but it has currently stumped me and my project is starting to slip. Any help much appreciated./**************** SPI DMA setup *******************/ void InitSPI3 ( void ) { GPIO_InitTypeDef GPIO_InitStructure; SPI_InitTypeDef SPI_InitStruct; RCC_APB1PeriphClockCmd(RCC_APB1Periph_SPI3, ENABLE)
Originally tagged-on to this old thread. Split to new thread for better visibility.Hello,I seem to have a similar problem, besides, that DMA is disabled.I have an STM32H503RB (NUCLEO-H503RB) trying to read out some I2C slave devices. It actually works only for one of the devices. This tells me, that the I2C bus is somehow working correctly.But for the remaining three IC (Temperature, GPIO & ADC), there is no way for me to even send the register address.Right after the Device address, the communication ends. See the attached file. This is the communication to an MCP9801T temperature sensor (device address [W] = 0x92).I actually don't understand the reason, why this happens.f=100kHzWhat I did:- changing pull-ups: same behaviour for 4.7kOhm & 3.0 kOhm- soldering the device on an otherwise empty PCB: only the 100nF, the pull-ups and the MCP9801T is there.- I2C-Deinit as well as I2C-Init.The source code is as simple as that: while (1) { data[0]=0x00; data[1]=0x01;
resource: https://github.com/ArduCAM/Arducam_MegaI need to integrate Arducam camera using STM32L4xx, but i cannot found the library, the resource i was found is using SPL instead of HAL. Someone please help me to resolve this issue
Since upgrading from STM32Cube MCU Package for STM32L4 from 1.17.1 to 1.17.2 (or 1.18.0), when disabling the PLL, HAL_RCC_OscConfig() will fail with HAL_TIMEOUT.I reconfigure the oscillators and PLL to run at 4 different speeds, depending on mode: 2MHz MSI (idle), 16MHz HSI (startup), and either 48MHz or 72MHz HSE (run) depending on state. The PLL is only enabled in run mode.The issue appears to be that HAL_RCC_OscConfig() will stop the clock feeding the PLL before the PLL is disabled. When that happens, PLLRDY does not change after setting PLLON to 0. This results in what is shown below, where PLLON is 0, PLLRDY remains 1, and HAL_RCC_OscConfig() fails with HAL_TIMEOUT.The work-around I have in place is to call __HAL_RCC_PLL_DISABLE() before calling HAL_RCC_OscConfig() where the PLL will being disabled. I am not sure what exactly changed in the HAL to trigger this problem. There are changes in 1.17.2 in the section of code that disables the PLL.The fix wo
Hello,Good morning. We have developed a CAN based Custom Bootloader and now we would like to use STM32CubeProgrammer and STLINK-V3SET and update our application software through CAN based custom Bootloader. The Custom Bootloader software CAN configuration is shown below for our ready reference. Now we could detect the STLINK-V3SET device and selected the CAN configuration as given below. When try to connect this STLINK-V3SET, we are getting the error "BRG_CAN_ERR".We would see that 3.3V and ground is connected to STLINK-V3SET.Also we could see that 120 ohms across the CAN Hi and CAN LoSTLINK-V3SET is connected with 4 wires (Vcc, Ground, CAN Hi and CAN Lo) and Jumper J7 is Closed to use CAN through CN5.Here is the error screenshots for your ready reference. # The Voltage is showing 0.00V. What does it mean to us? Do we need to 3.3V during this connection establishment?# CAN_VCC shall be provided with 5V or 3.3V please?Please note that we don't want
While trying to implement the stm32h7s_workshop I'm always getting hard faults.Seems straight forward. I checked to see that the external FLASH verifies against the appli.elf and I made sure to debug with the boot 1st then the appli.Here's what I see in the CubeProgrammerCould this be due to an alignment issue? The fault comes just at the point where it is going to jump to the appli
@Saket_Om This solved the privileged calls but Im hitting the next obstacle with `undefined reference to `MPU_xTaskCreate'`.Im creating a task using `xTaskCreate` which gets redefined at https://github.com/STMicroelectronics/x-cube-freertos/blob/b0f4a6681bd37b483076db2e8171239db9dacbb1/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h#L100. From what I gather, this `MPU_xTaskCreate` is defined at https://github.com/STMicroelectronics/x-cube-freertos/blob/b0f4a6681bd37b483076db2e8171239db9dacbb1/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h I have added the `include` folder into my GCC compiler path so not sure why it would not be able to find the `MPU_xTaskCreate`?
Dear Community, I have an reocurring issue with STM32G4 series processors: I am programming via UART from another embedded system. Via this system, I can set Boot0 pin and NRST as well as communicate via UART.When the STM is flashed via CubeProg on another port, I can enter the bootloader mode, send magic byte and receive ACK.Then I can proceed to do a mass erase. I can see via CubeProg, that the mass erase is successful.However, I can neither continue to write nor get back into the bootloader mode via the same pin toggeling succesfully. While I can see from the external pin states, that bootloader mode is loaded, I do not get any ACK on the magic byte anymore.Even a power cycle does not change the outcome.As soon as I flash again via CubeProg, I can enter and leave the bootloader mode sucessfully again using BOOT0 and NRST.All Option Bytes are default, and also no read or write protection set up.I am at a loss here, any suggestions on how this behaviour could be debugged?
Fixed typo in board nameHi everyone,I’m currently working with the STEVAL-PROTEUS1 board and need some assistance. Does anyone know how to download the default or preloaded hex file from the board? Any guidance or step-by-step instructions would be greatly appreciated!Thanks in advance for your help!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.