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 am getting an unexpected error while flasing blinky code in stm32h747i_disco_m7(H7 Series).The code is built successfully but i am getting error while flasing. I have tried all possible solutions but eventually i failed so kindly assist me.I have attached the error which i am facing . Waiting for a prompt response.Thank you...
Hi everyone,I am using SPI1 on the STM32U575 to transmit data, and my issue is that between consecutive calls to the SPI transmission function, there is an extra long clock pulse instead of no clock pulse at all. This is my first time using the STM32U575, so I hope someone can help me resolve this issue.Below is the code and configuration:HAL_SPI_Transmit(&hspi1, tx_buf_1, 5, 200); // Byte 0 - 4HAL_SPI_Transmit(&hspi1, tx_buf_2, 2, 200); // Byte 5 - 6 Thanks.
Hello,I am currently designing a board with STM32H747AI MCU. May I ask how it is possible to run the RTOS on it and then program it via USB-C without using special internal components such as ST-Link MCU in order to save as much space as possible? Does the same process also apply to the STM32MP157C MPU?Thank you very much.Regards
I implemented IWDG reset having counter of 12 second and am refreshing it using HAL_IWDG_Refresh(&hiwdg) in while loop. Everything is working as expected. But now the issue is when I implement sleep mode. The processor will be in sleep and wakeup by interrupt. So if processor doesn't wakeup within 12 second then HAL_IWDG_Refresh will not be executed.
Dear All,I'm looking for self diagnostic feature in STM32F7 series for SIL-3 compatibility, kindly suggestion microcontroller which can self diagnosable crystal clock ,ECC protected sram and flash memory . and also let me know The HAL library is SIL-3 function safety complied.
Hello, I am trying to boot from the external flash memory that the nucleo-h755zi-q has(addres->0x09000000), but I am having some issues. The idea I was following is :1. Create a Bootloader project, in this project I configure the QuapSPI in the internal flash memory to memory mapped mode2. create the App project (with a basic toggleLed) changing the .ld flash direction to the 0x09000000. Once the project is created I get back to the Bootloader and in debug configurations I linked the Bootloader with the App, so when the Bootloader is debugged the App will too.3. In the Bootloader file I created a function called 'JumpToAplication' that tries to Jump to the app when the quadspi is done. Here is the code of the function ( I also tried using the commented code) :typedef void (*AppFunction)(void);void JumpToApplication(void) {AppFunction appEntryPoint = (AppFunction)APP_START_ADDRESS;//__disable_irq();//SCB->VTOR = APP_START_ADDRESS;appEntryPoint();}Nothing is working and I don´t kno
Hi, I'm currently working on a project that uses TrustZone with non-secure peripherals, but I'm having problems with non-secure interrupts.When I configure USART3 as a secure peripheral in my project, USART3_IRQHandler and GPDMA1_Channel0_IRQHandler interrupts are working fine (in Secure/stm32h5xx_it.c). However, when I configure USART3 as non-secure, these same interrupts don't fire now (now in NonSecure/stm32h5xx_it.c). I verified that the interrupts and DMA are enabled, and that they are included in the NVIC_NS. The USART3 seems to be initialized the right way because using HAL_UART_Transmit works in secure and non-secure modes. However HAL_UART_Transmit_IT and HAL_UART_Transmit_DMA work with USART3 as secure, but not as non-secure.To deepen my investigation, I wanted to see if the problem was with ALL non-secure interrupts. In a different project, I configured ThreadX as non-secure (using TIM1 as SYS) with the same USART3. The TIM1_IRQHandler is firing, but I get the
Hello, I divided memory of the stm32h747. we want to divide memory in c code. there is below which ld file code we are using now. If there is better things than bellow, please give answerr.. MEMORY{RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 512KFLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K /* Memory is divided. Actual start is 0x08000000 and actual length is 2048K */DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128KDMA_BUFF_SECTION (rwx) : ORIGIN = 0x30000000, LENGTH = 2KRAM_D2 (xrw) : ORIGIN = 0x30000000 + 2K, LENGTH = 286KRAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64KITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K} .DMA_UART_BUFF(NOLOAD) :{. = ALIGN(1);} > DMA_BUFF_SECTION #define DMA_RX_BUFF_LEN 1024#define DMA_TX_BUFF_LEN 1024__attribute__ ((section(".DMA_UART_BUFF"), used)) uint8_t dma_rx_buffer[DMA_RX_BUFF_LEN];__attribute__ ((section(".DMA_UART_BUFF"), used)) uint8_t dma_tx_buffer[DMA_TX_BUFF_LEN];
I have generated an pwm of 1khz from timer now I want to read adc reading for once for each cycle of pwm after 50 microsecond of rising edge how to do if anyone have code please send in stm 32 .
Hello Community,I am getting a hard fault at SystemClock_Config when executing the application after jumping from OpenBootloader. It is confirmed by single stepping through application. The bootloader uses HSI (16MHz) and PLL to operate at 72MHz and the application uses HSE (24MHz) and PLL to run at 170MHz. When the application clock is configured to use HSI and run at 170MHz it works fine.So what might be missing here?Any hints?
Hi STCommunity,I have a project with X-CUBE-FREERTOS and it worked fine, since I added WolfSSL the build goes wrong because it doesn't seem to recognize "time_t". (registration file attached)I hope someone can help me. Many thanks in advance
Hi, my company is pursuing a UL1998 (very similar to IEC 60730-1) Functional Safety Certification. In reading the ST Application Note (AN4435) I see in section 3.3 SRAM Tests, it says "Some ST Microcontrollers feature a built-in word protection with single-bit redundancy (hardware parity check) applied on CCM RAM or at least on a part of the SRAM." On our current project, we are using an STM32F429ZI MCU and I see it has 64kB of CCM, but am having trouble finding documentation for its use. In a handful of forums, I have seen them discuss how CCM is only accessible by the CPU (rather than also by DMA), but I cannot find anywhere else alluding to it having a built-in hardware parity check. I wanted to see if someone could point me to documentation on this or at least confirm that the CCM in the STM32F429ZI does have the hardware parity check, and if so, what happens if the hardware parity check fails on startup or during runtime.
I'm trying to build a project using FileX in standalone mode (without ThreadX dependecies). According to Microsoft's documentation the FX_STANDALONE_ENABLE flag must be defined in order to disable the use of ThreadX specifics (timers, semaphores etc.), but I can't seem to find this option in CubeMX when generating code. I've noticed that the documentation by Microsoft is deprecated in some areas (in regards to function names for instance), and am wondering if this flag might have been replaced by some other flag or if there is another way to run FileX in standalone mode?
Hi! I have followed the tutorial on Youtube.•STM32L4 training: 07.3 Advanced peripherals - Hands-on DFSDM(L476) Now I have data in playbuff, and I use uart to collect data by COM port. However, I want to inquire some parameter in this DFSDM result, such asI used the function : setparms(nchannels, sampwidth, framerate, nframes, comptype, compname)I have no idea about :1.The number of channels (nchannels)2.The framerate (framerate)3.The number of frames (nframes)Since I use python and import wave to change into wav file, ex: wav_file.setparams((1, 2, 8000, 0, 'NONE', 'not compressed')), the sound is terrible, hardly to realize the sound but merely can hear some melody. Can anyone help me what kind of format is it? Or other solution to change these data into wav by python? Here are my current devices: Micro-Controller: STM32L496GDISCO
Hi, I have made a custom bootloader. When I jump to application so very often (not always!) the systick in app does not generate interrupt. I checked the Systick - yes systick ticks and is running. For sure I added in main.c: NVIC_DisableIRQ(SysTick_IRQn);NVIC_ClearPendingIRQ(SysTick_IRQn);NVIC_EnableIRQ(SysTick_IRQn); Any idea please?
Hi there,I'm testing an option to recover from UsageFault Exception - caused by div 0. I enabled the exception and it does execute upon 0 div. I need to exit the exception code and keep the fimware execution.I clear the UsageFaultActive bit, by read update write, yet the exception code keep executing...How can I cause a recovery from the exception - what am I missing? Any help is most welcome...Lior.
Hi,We are developing a custom board which has nrf9160 interfaced to STM32U585 controller.We are using AT commands application(AT Client) provided by nordic.So we are exploring library or middleware package for STM32U585.Is there any specific library or middleware available for STM32U585?Thanks !!!!
Posted on October 14, 2015 at 05:17I am working on project which is generated by Cube and uses HAL drivers. I require to read states of a number of pins on a port. Currently I am doing like this: //read PC0 to PC7 to check for state (on or off) report.BUTTONS_0_7.BIT_0 = HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_0); report.BUTTONS_0_7.BIT_1 = HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_1); report.BUTTONS_0_7.BIT_2 = HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_2); report.BUTTONS_0_7.BIT_3 = HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_3); report.BUTTONS_0_7.BIT_4 = HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_4); report.BUTTONS_0_7.BIT_5 = HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_5); report.BUTTONS_0_7.BIT_6 = HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_6); report.BUTTONS_0_7.BIT_7 = HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_7);I did not find any code in HAL that allows reading a number of pins of a port simultaneously. Is there a way to read a given amount of pins from a port, or half of them or all of them?If th
Posted on December 06, 2017 at 10:13Hello,I used the STM32L073RZ and I used Stop mode for saving current.And my problem is when I measured the current consumption of this MCU, I found arround 3uA during only 3 minutes after starting the Stop mode and then arround 15uA until my system wake-up, as you can see on the next chart the Current consumption measure with X-NUCLEO-LPM01A at the increase of current :I already check the same result with an amperemeter.It is like some internal power supply just turn on, but my system is always in stop mode.I put the MCU in stop mode with the HAL driver function like that:/* Enable Power Control clock */ __HAL_RCC_PWR_CLK_ENABLE();/* Enable Ultra low power mode */ HAL_PWREx_EnableUltraLowPower();/* Enable the fast wake up from Ultra low power mode */ HAL_PWREx_EnableFastWakeUp(); HAL_SuspendTick(); //Request to enter STOP mode with regulator in low power mode HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); HAL_ResumeTi
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2023 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "dma.h" #include "usart.h" #include "usb_device.h" #include "gpio.h" void SystemClock_Config(void); uint8_t rx_data[6]; int main(void) { HAL_Init(); /* Configure the system clock */ SystemClock_Config(); /* I
Hi,I have a problem with SBSFU.I'm using STM32G0B1RE dev kit.But I have got STM32G071RB example. G071RB is example works fine in G0B1RE board.The problem occurs when I change Compile Symbol to STM32G0B1xx STM32CubeIde Properties > Settings > GCC Compiler > Symbol to STM32G0B1xxSBSFU failed to download the .sfu file on the second time after erasing the 32bytes header from example. It throws Flash error after during hearder signature verification.I need to change symbols to STM32G0B1XX to implement USB CDC code instead UART.TIA
I am using usb hal library. My problem is when the transfer (IN) is complete if the transfer is a multiple of 64 bytes, I don't get a callback on CDC_TransmitCplt_FS() otherwise I get a callback. At the end of the transmission, the transfer is correct and is normally done on the host side. In the function: USBD_CDC_DataIn() in usbd_cdc.c A test seems to create the problem: if ((pdev->ep_in[epnum & 0xFU].total_length > 0U) &&((pdev->ep_in[epnum & 0xFU].total_length % hpcd->IN_ep[epnum & 0xFU].maxpacket) == 0U)) the function does not call the TransmitCplt() callback in this case. I would like to know if it is normal not to call the TransmitCplt() function if the length of the transfer is a multiple of 64 bytes and how to process 64 bytes multiple length transfer_IN complete callback or another solution to process the end of transmission in all cases.
Due to supply chain shortages we designed a board with the STM32F765VIT6 chip.It appears that chip does not have ZephyrRTOS support.Could you please confirm the status of Zephyr support for this chip?
Is it possible to implement secure boot without using trust zone for stm32u585.without trust zone i want to use Boot lock, OTP, secure address like features.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.