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 everyone,In my project on STM32 Nucleo-64 with STM32F401RE MCU, I use a timer (TIM11) at 32 Hz in interrupt mode to get some data from sensors. Can I use the RTC (Real-Time Clock) instead of TIM11 to get these data at the same frequency?If yes, which are the advantages or disadvantages?
Hi all, I have issue with stm33f767zi and LWiP mqtt. I'm trying to send data over mqtt every 10ms. Data is 400 samples from 3 ADCs represented as cJSON. After sending a few packets Im getting hardfault on tcp_out(), but if I set interval to 100ms every thinks works just fine. Could you suggest me what should I check in my configuration?Thanks in advance
During the project, I need to create equipment that can be updated wirelessly using WiFi. So far, the MCU has been implemented to connect to the router. Is it possible to implement the ota upgrade with the cyw43439chip?
Hi,I'm looking for some suggestions for the implementation of a self-powered and DRD (Dual Role Data) system provided with USB Type-C connector, but without PD support.I found two different solutions:1) Using a configuration channels protection IC (TCPP02-M18 or TCPP03-M20 in which the sink path is left unconnected) to be used with any STM32 provided with USB and UCPD interfaces, e.g.STM32G0B1, and with X-CUBE-TCPP expansion support.2) Using a configuration channels controller IC (STUSB1600 in which the sink path is left unconnected) with any STM32 provided with USB only, without the UCPD constraint.I have two questions:1) Do you have some suggestion on which can be the preferred solution, also in terms of IC longevity? (TCPP are in the 10 years longevity program, the STUSB1600 isn't). Can both the TCPP be used for this application? I guess TCPP can be the preferred one since I can use it also for future developments with PD support.2) Using solution 1, in the project creation using Cu
Hi,I am trying to get DMA to work with memory as source and peripheral as dest (UART) and i am not using HAL (this is a learning exercise), but only so far i have managed to get a single character out and the transmission reports as completed (Transfer complete status is set in ISR register and CNDTR from configured value becomes 0).#define buff_size 6U uint8_t source_buff[buff_size] = {'h', 'e', 'l', 'l', '0', '\n'}; void DMAInit(void) { // Enable DMA1 RCC->AHBENR |= (1U << 0); // Channel configuration DMA1_Channel7->CCR &= ~(1U << 0); // disable // wait for DMA to disable while(DMA1_Channel7->CCR & (1U << 0)); // memory size set to 8 bits DMA1_Channel7->CCR &= ~(1U << 10); DMA1_Channel7->CCR &= ~(1U << 11); // peripheral size set to 8 bits DMA1_Channel7->CCR &= ~(1U << 8); DMA1_Channel7->CCR &= ~(1U << 9); // read from memory to peripheral, DIR = 1 DMA1_Channel7->CCR |= (1U << 4);
I'm learning to port FreeRTOS to my STM32F407, but I'm running into problems with HAL initializing TIM2.After HAL_OK the program is supposed to enable TIM2IRQ via NVIC_EnableIRQ(), but the operation of writing to NVIC->ISER doesn't seem to work.NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));So I followed this post and modified 'CMSIS\Include\core_cm4.h', but again it didn't work. uint32_t data; uint32_t index; if ((int32_t)(IRQn) >= 0) { __COMPILER_BARRIER(); index = ((uint32_t)IRQn) >> 5UL; data = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); NVIC->ISER[index] = data; __COMPILER_BARRIER(); }My debugger won't continue after this expression, any ideas?
Development environment: STM32F417ZG/keil uvision 5/FreeRTOSProblem description: During the normal working phase of my product, a global variable is suddenly found to have been modified accidentally. This variable was not modified by my normal code as there is only one place where the normal code is modified and I am sure enough it doesn't get triggered. So it could have been caused by a memory stepping, thread safety or some other exception.This is a very low probability problem, so it is difficult to reproduce the problem in keil's debug mode and use data breakpoint to locate the problematic code that modified this global variable.My question is: how can I locate which line in my project's source code caused the global variable to be modified during the normal working phase of the product.Does anyone have any good ideas on how to do this?
I've created a project with STM32F407xxx, and using as USBH_CDC with this MCU. STM is working fine but the problem is, the baud rate can not be edited. It is auto by default. How can I keep it fixed at a certain baud rate such as 9600 or 115200? I tried with GetLineCoding & SetLineCoding but it did not work. It is always in auto baud rate.
Posted on May 26, 2017 at 06:18 Hello, I am using STM32F411RET6 chip to access uSD card with SDIO 4bit. By default it uses polling mode to read/write data with SDIO, such asBSP_SD_ReadBlocks(). The problem is that I want to continuously write 128k bytes data to uSD at a time. Writing is often interrupted by other timers, which causes the failure of the writing. After timers are disabled, the writing is successful without problem. I guess DMA mode wouldn't be interrupted by the timers. In order to use DMA, i generate code using cubemx.MX_DMA_Init() has been defined and called at the beginning of main(). in hal_map.c, the DMA has been initialized. If I simply replace HAL_SD_WriteBlocks with HAL_SD_WriteBlocks_DMA, it doesn't work at all. How to enable to use the DMA? /** * Enable DMA controller clock */ void MX_DMA_Init(void) { /* DMA controller clock enable */ __DMA2_CLK_ENABLE(); /* DMA interrupt init */ HAL_NVIC_SetPriority(DMA2_Stream3_IRQn, 4, 0); HAL_NVI
How does STM32 dynamically allocate memory ?
Hello everyone,I'm currently facing an issue with migrating an ESP8266 project from EWARM IDE to CUBE IDE for use with the STM32F769I-DISCO board for WiFi connection.When attempting to open the project from the example selector in CUBE MX, I received an indication stating that this example is not supported by stm32CubeMX, indicating that the project is MX non-compatible. Consequently, my IDE options are restricted to EWARM/SW4STM32/MDK-ARM.Could you please provide guidance on how to resolve this issue and successfully transition the project to CUBE IDE?I appreciate your assistance with this matter.Thank you,
Hi there!I already configured LwIP package and make it work on a NUCLEO-H755ZIQ following @Adam BERLINGER gude in the Knowledge base section.Even if the communication is working, some configurations are to me totally cryptic...In particular, I would like to learn how to configure ETH and LWIP in a consistent and effective way, avoiding memory waste and ensuring stability.I have a lot of question and I would like to collect yours replies in a sort of practical guide for newbies...Below, my actual working ETH configuration: There, my LwIP configuration:Starting from these, on the ETH side:What is the descriptors size? (To locate the right memory amount, descriptor size shall be multiplied for the descriptors length, right?)Rx buffer length is a constant or could be changed? What other parameters will be affected from this?On the LwIP side (my nightmare):How several memory-related parameters should be calculated according to others ones?How much heap shall be allocated?Is t
Hello, I am a student. I want to use I2S through STM32L051K8U6N to complete the acquisition of the MP34DT04 sensor, but I have not found any information about libPDMFilter_CM4F_Keil.lib, keil library and IAR library similar to this. If it is convenient, can you tell me I also have the relevant libraries for the STM32f103c8t6 chip. Thank you for your support.
Hi!Using STM32F105 microcontroller.I've created a clear USB CDC project with STM32CubeMX (5.0.1).It works well when connected to Windows 7 host machine, Virtual com port is appearing on Device Manager.But when i connect to macbook I've got "HS01@14100000: AppleUSBHostPort::disconnect: persistent enumeration failures" in dmesg output (command: "sudo dmesg | grep enum").Using oscilloscope, I see several activitys on usb lines during about 5 seconds after device connected and then constant levels.Help, please!
when i connected usb connector in stm32h743zi, that time what function working usb connector and if i remove usb connector then what function going to usb connector ,give me that function i remove usb
Hello,how do I find out which development environment to compile the examples with? E.g. https://www.st.com/en/embedded-software/x-cube-crypto-v3.html Thanks in advance. - Martin
I'm using the STM32F767 MCU and Keil compiler. The Keil version is Fusa 16.2. When applying the STL library in the Keil compiler environment, a rom test failure occurs.STL version is 4.0, and it was applied as in the guide document, but STL_Lib responds from rom test to fail.The keil compiler is the version of fusa 16.2.After compiling the project, it seems to be CRC sorting using the file "STM32_Programmer_CLI.exe".I don't know where to fix it because the library file responds with an error.Q1) Request Keil compiler to check how to set upQ2) I looked up the posts in the community and they told me to sort the size to 8, which part of the setting should I change?Q3) If I can use the STL Lib version lower, is there a source for the STM32F7xx series? I don't think I can download it on the homepage except for V4.0.
I am working on a project for an OEM's proprietary board firmware package (developed/baked from scratch), which has been developed from scratch with reference to two OEM's proprietary board firmware packages (fully baked). Thus, we may call this as change/migration management project with customized development effort.Please note that the IDE is IAR EWARM. The problem is the build/compilation console exhibits 0 errors and 0 warnings, subject to elimination of errors and fixing of bugs. Further, on debugging using the OEM's debugger I received the following messages:"IAR Embedded Workbench X.XX.X (C:\Program Files\IAR Systems\Embedded Workbench X.0\arm\bin\armPROC.dll)Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench X.0\arm\config\debugger\OEM\OEM32Z3xx.dmacLoaded macro file: C:\Program Files\IAR Systems\Embedded Workbench X.0\arm\config\debugger\OEM\OEM32Z3xx_DBG.dmacConnected to OEM Debugger [SWD mode 1000 kHz] [Access port: 0] Firmware (Probe no: XXXXXXXXXXXXXX)Hard
BackgroundNUCLEO-H723ZG BoardFreeRTOS + LWIPUsing netcon with netbuf in its own task to receive packets as follows,IGMP Groups, receiving sACN packets (638 bytes per packet at 5us spacing), each group you join adds a packet, there is a 40ms gap between each burst/set of packets. So,No. Groups * 5us ------- 40ms gap ------- No Groups * 5us ------ 40ms gap ------In my receive task I confirm the packet is good and then DMA the needed data into a buffer, I’m using a pin in the routine to go high on entry and then low when processed.My Issue / AdviceI have the IGMP up and running and can join 14 groups, I’ve had this running for hours without issue, however when I try and add 15/16 groups the system hard faults.My assumptionI’m running out of spare pBuf for the incoming RX thus the hard fault, I have tried increasing the PBUF_POOL_SIZE from 16 to 20, however the system still hard faults. I suspect this is a memory access / allocation issue.So,How are the pBuf and netbuf sizes relatedThere a
I AM USING A STM32H743ZI CONTROLLER BOTH USB AND ETHERNET ON WORKING BUT SOME TIME I RUNNING ON ETHERNET DEVICE THAT IS WORK OK BUT I START WORK ON USB THAT TIME I CONNECT USB DEVICE NOT PROPER WORK ,SO I HAVE REQURED A FUCTION WHEN USB DIVICE CONNECT AUTOMATIC AND START A USB DEVICE,NOTE:GIVE ME A FUCTION IN USB_FS DEVICE DISCONNECT SO I CONNECT ETHERNET PROPRLY
Hi ST Community! Warning, this is about to be a long one :) I have tried following the LED on step by step, but for my board. In this instance, the LED I am flashing is LD2 on my board which is connected to pin D13, based on the schematic below (which I obtained from https://www.st.com/en/evaluation-tools/nucleo-f411re.html#cad-resources) I have used the AHB1 clock channel peripherals as dictated by the architecture in the datasheet of my boards chip. System architecture up close Full View Now, onto its reference manual (RM0383) I use the following Addresses Boundary addresses used for RCC and GPIOD Based on this data, my clock enable register has been set as 0x4002 3800 + 0x30 ==> 4002 3830To enable the peripheral for Port D the value 0x08 was written through an OR shift (see final code) With this data, my register of initialising port D is 0x4002 0C00 + 0x0 ==> 0x40020C00. Pin 13
I want to Integrate the cellular package with my NUCLEO-U5A5ZJ-Q board and integrate it with the sim7600 modem.I have downloaded the package from here.(https://www.st.com/en/embedded-software/x-cube-cellular.html#st-get-software)But I am not sure how to move further.Could you please help me with some inputs?
HI Guys,Sorry to bother you... Now I was working use STM32C0XX series chips, my development tools is IAR8.50, and find that IAR8.50 can't show STM32C0XX series chip, I had check some data: someone said should upgrade IAR FW, others said I should add STM32C0XX Lib config files into IAR development, but I can not find where I can download STM32C0XX config lib, so what should I do?
Hello ST experts I found the same problem as previous post https://community.st.com/t5/stm32-mcus-embedded-software/stm32f072xb-gpio-issue-usb-pins-do-not-work-as-gpio/m-p/151104#M8715 But for stm32u595, I can not find the similar register USB_CNTR.PDWN. Is there any way to set PA12 as GPIO input? Best RegardsYang
Hi!What is the serial number generation algorithm for the built in bootloader for STM32H745 controller?In F4 and F7 this was working:deviceserial[0] += deviceserial[2];IntToChar(deviceserial[0], (uint8_t*)&str[0], 8);IntToChar(deviceserial[1], (uint8_t*)&str[8], 4);But for H7 I get different one from the built in DFU:Example:UID0: 0x00200032UID1: 0x3438510EUID2: 0x31373439Built in ID: 200364500000Generated ID: 3157346B3438Probably can take a look the built in code of the disassembly but might be quicker asking here?Thanks,Benjamin
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.