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
I'm trying to use High speed USB HID to transfer bulk data from external SDRAM controlled via FMC.I have achieved the basic transfer function by modifying the USB description file and related functions. /******************** Descriptor of Custom HID endpoints ********************/ /* 27 */ 0x07, /* bLength: Endpoint Descriptor size */ USB_DESC_TYPE_ENDPOINT, /* bDescriptorType: */ CUSTOM_HID_EPIN_ADDR, /* bEndpointAddress: Endpoint Address (IN) */ 0x02, /* bmAttributes: Bulk endpoint */ 0
Heyho,has someone already tested the new HAL ethernet driver for F7 ?I have my F767 prototype up and running, raw lwIP with http server and PTP are working flawlessly.After having done lots of other driver and user interface via http / REST stuff, I finally have to get data streaming via ethernet (TX) running.The "old" HAL driver gave me a shock yesterday when I looked at it again after a few month:buffers are copied polling (really bad with TTSS on the TX side (getting PTP timestamp from hardware back into pbuf for PTP calculations) - which is mostly my fault because I added that)So I hope that the new ethernet driver is taking better care of these problems, or at least gives me a better source to copy/edit from.I really need the transmit rate close to 100M (I know that's not possible, but let the hardware get at least close to it, so that later on 50M will be no problem).... and off to check the new files...
I was looking for h/w to start development of a AzureRTOS GUIX app that also had the I/O including multiple A2D, GPIO, and serial communications. Based on a various ST Micro presentation and a review of the specs, I though the STM32H743I-EVAL2 might work, but I'm not sure how to get started?
Hello,At the moment I'm working on a project using the STM32F4 discovery board that combines CAN2 and USART2. I managed to get them both working separately, but when I combine them in the same problem I get weird output on the serial monitor. When I then try my old program to only test the UART connection it works fine. Any ideas on why the combination of CAN and UART isn't working?My code:int main(void) { HAL_Init(); /* Configure the system clock to 168 MHz */ SystemClock_Config(); UART2_Configuration(); /* Infinite loop */ while (1) { if(CAN_Polling() == HAL_OK) { char Message[] = "CAN message sent."; HAL_UART_Transmit(&UART_Handler, (uint8_t *)Message, strlen(Message), HAL_MAX_DELAY); } else { char Message[] = "CAN failed."; HAL_UART_Transmit(&UART_Handler, (uint8_t *)Message, strlen(Message), HAL_MAX_DELAY); } HAL_Delay(500); } } HAL_StatusTypeDef CAN_Polling(void) { CAN_FilterTypeDef sFilterConfig; /*##-1- Configu
Hello I am woking on STM32F779BI controllerI am working with sd card .I am getting size of text file using f_size(fp) , but how can we get size of folder(Directory)Best RegardsDipak Garasiya
CubeIDE NETXDUO configuration keep default#define PAYLOAD_SIZE 1536 #define NX_PACKET_POOL_SIZE ((PAULOAD_SIZE +sizeof(NX_PACKET))*40)
In the reference manual RM440 Rev7 that register is missing while the register is defined in the SAI_TypeDef. I only found a description in the F446 RM0390. Are they the same?
I set up an DMA spi transfer and I want to essentially remove the irq. I'm already in a IRQ and I'm staring a spi transfer and want to just wait for complete. but I can not find anywhere in the HAL code where SPI5_IRQHandler is called. I decided not to use the full HAL code and start wring we own version. I'm using the stm32h7 chip series . I was able to make this all work but I'm still curiose how the ISR's are called. I didnt see it in an c or S files but I can see it is being called.
In ethernet HAL driver stm32h7xx_hal_eth.c function void ETH_DMARxDescListInit include row: " WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (((uint32_t)(ETH_RX_DESC_CNT - 1))*sizeof(ETH_DMADescTypeDef)))));"This code adding value to heth->Init.RxDesc. But, RxDesc is pointer to 32bit and added shift is multiplicated for 4.Correct row must be:" WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc) + ((uint32_t)(ETH_RX_DESC_CNT - 1))*sizeof(ETH_DMADescTypeDef)));"
i used lvgl and stm32f469i-disco and i got many error Error: L6406E: No space in execution regions with .ANY selector matching. i turn off all the file system (stdio,win32,fatfs) because i have no external library (ex. dirent.h and unistd.h forlv_use_fs_stdio). what should i check or replace?
I want to create a power distribution system that can accept up to three supplied (AC/DC, USB, and Battery. At the end of VBUS will be the management system that will choose the highest voltage and use that as primary supply.Would like some suggestions on any changes my UCPD sink may require. I've used these guides as reference (SNK1M1, TCPP01-M12, USB, G434)I'm wanted to implement dead battery and want the TCPP to only disable after is gets 3.3V from VBUS (chose the LDO from SNK1M1). The MCU will be powered from VCC after power management. My thought is this will keep protection intact in case USB is plugged in when the system is already powered. here are my questions.TCPP01 section 6.6.3 mentions Sink Capacitance, but i see no other reference to it in this or any other guide or schematic. How is this calculatedTCPP01 section 6.6.6 mentions VBUS detect. Want to make sure this is only optional?TCPP01 section 6.6.4 mentions the value range of C1 C2, but the SNK1M1 didn't seem clear as t
The Question (since this is a little long): Is there any known interaction between the WWDG timer and the bootloader located in System Memory? Is there any known differences in the F405 revisions that could have an interaction between the WWDG and bootloader?Hello, I'm working on a product that receives updates via the DFU bootloader. I have two batches of the same board received from the same manufacturer, and one batch is behaving strangely as I attempt to use this method to jump to the bootloader.The code is based off of this tutorial, and works flawlessly on older batches of the board. However, on a new batch, instead of jumping to system memory for DFU upload, the board will simply reset from the WWDG IRQ. The overall program feeds the WWDG every couple milliseconds, but by the time the program calls the SysMemBootJump() function, it should have disabled the RCC timers and the WWDG interrupt. In order to demonstrate the issue, I'll attach a sample project I made in CubeIDE that pr
Hi, I want to use STM32 Nucleo example "STM32F072_MB1303_DRP_SRCING_DEVICE" on my board that include 1x STUSB1602 + 1x STM32F072CBU6 (48-UFQFPN).(the example works with STUSB1602 + STM32F072RB (LQFP64))-What will be the easiest way to port the example to my board??modify the example or creating a new project and coping the relevant example files?Thanks,Maor
..
The description for HAL_GetTickFreq says/** * @brief Return tick frequency. * @retval tick period in Hz */It returns 1 when the tick frequency is 1kHz. The period would be .001 seconds and the frequency would be 1000 Hz. Based on the typedef below, I'm not even sure what the units really are, but the description is clearly wrong.typedef enum{ HAL_TICK_FREQ_10HZ = 100U, HAL_TICK_FREQ_100HZ = 10U, HAL_TICK_FREQ_1KHZ = 1U, HAL_TICK_FREQ_DEFAULT = HAL_TICK_FREQ_1KHZ} HAL_TickFreqTypeDef;
I'm developing a device that works as a modbus slave over TCP/IP. For this application I'm using FreeRTOS with CMSIS-v1 and LwIP. The problem occurs sometimes when I disconnect the master (a PC with modbus poll), then the code stucks waiting for a semaphore (TxPktSemaphore) inside the function low_level_output() on ethernetif.cHere is the part of the code where the ejecution keeps waiting forever a semaphore (line 8).TxConfig.Length = p->tot_len; TxConfig.TxBuffer = Txbuffer; TxConfig.pData = p; pbuf_ref(p); HAL_ETH_Transmit_IT(&heth, &TxConfig); while(osSemaphoreWait(TxPktSemaphore, TIME_WAITING_FOR_INPUT)!=osOK) { } HAL_ETH_ReleaseTxPacket(&heth); return errval;In addition, I attach a wireshark capture when the master (10.8.51.2) request the end of the connection and the problem doesn´t occur: But when the problem occasionally occurs, there is a RST:Please consider in both captures that I have more than one connection at
i had USB Host MSC working on H743 (devE board) , read USB sticks 1...64 GB without problem;now, after try to make USB Audio Host on second (HS) usb port, which is not running until now (there is no working example by STM - and no plan to do this (!) ) , access to usb stick no more working; and i have no idea, why ...or what i did wrong.i installed SWV , to see more info, this is coming, when debug level on usb is set :obviously usb stick is enumerated, can read size and directory, but when read data (16KB) it hang up in some usb BOT loop or USB_busy state. anybody knows, what i should do now, to get it running again?+ maybe , howto get audio host running?
Hi,I'm using OTG HS, in device mode, as a CDC VCP. It works when "Internal IP DMA" is disabled. If I enable DMA, the USB device enumerates but CDC_Transmit_HS() no longer works.I saw the article on USB DMA with the STM32H7, and I tried similar things:-Disabled the D-Cache globally.-Edited my linker script to not use DTCM, by skipping past it like this:"RAM (xrw) : ORIGIN = 0x20010000, LENGTH = 192K"-I have confirmed that the buffer I am trying to transmit is word aligned (memory address is a multiple of 4.)-I am trying to transmit 20800 bytes, which is also a multiple of 4.-I also put "__DSB();" immediately before each call to "CDC_Transmit_HS()"Is there some other trick I need to use?I would like to use OTG HS with DMA because I need to transfer a lot of data. With DMA disabled, and D-Cache enabled, I am only able to transfer about 16MBps (128Mbps). That is achieved with a loop in main() that non-stop calls CDC_Transmit_HS() to transmit packets that ar
Hi ST team,I'm trying to upload a new code to the STM32F103 via CAN tx/rx. I set the device to boot mode, BOOT0 = 1 and BOOT1=0 (system memory). I sent a CAN frame via CAN tx/rx, but I didn't get any response from the STM32 CAN bootloader.Is it possible to do this? Is there a CAN bootloader in STM32F103RBT6?If not, please suggest me any other model of STM32 for this project.Thanks,Kasun
Hello,I want to transmit data between two boards using TCP. To do this, one will run a client and the other will run a server. Both of these implementations follow the provided examples. The server works fine, I can connect to it from Hercules and transfer data.The client implementation is causing me problems, as it can't seem to establish a connection to a TCP server. I can however ping it just fine. Both boards are assigned an IP via DHCP, but the address is always the same and matches with what I expect. Here is the code:static void tcpecho_client_thread(void const *arg) { struct netconn *xNetConn = NULL; err_t bind_err, connect_err; char* b_data = "OK"; // Data to be sent uint16_t b_len = sizeof ( b_data ); IP4_ADDR(&local_ip, IP_ADDR0_CLIENT, IP_ADDR1_CLIENT, IP_ADDR2_CLIENT, IP_ADDR3_CLIENT); IP4_ADDR(&pc_ip, IP_ADDR0_PC, IP_ADDR0_PC, IP_ADDR2_PC, IP_ADDR3_PC); xNetConn = netconn_new ( NETCONN_TCP ); if (xNetConn != NULL){ bind_err = n
Hi All,Kindly let me know how to customize standard ST bootloader and change the default UART pins, Currently bootloader working on UART1 and UART3, but i want bootloader on UART2Microcontroller Details -STM32F4
Hello, i have a STM32F407VET6 MCU and i have problems with UART3 and Interrupt Receive, it does not work.UART3 is connected with a Display, my MCU sends every Second a "PING" and the Display answers with "PONG", that works fine.Global Interrupt for UART3 is enabled, with Prio 1.With a Serialadapter, i see the "PING", and the "PONG" answer, but the Interrupt is not working/fired. What i do wrong? Is there a problem with RTOS?UART_HandleTypeDef huart3; uint8_t uartData[64]; /* Definitions for hmiTask */ osThreadId_t hmiTaskHandle; const osThreadAttr_t hmiTask_attributes = { .name = "hmiTask", .stack_size = 1024 * 4, .priority = (osPriority_t) osPriorityBelowNormal, }; void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { if(huart == &huart3) { HAL_UART_Receive_IT(&huart3, uartData, sizeof(uartData)); } } int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration---------------------------------------------
I'm using the STM32L010 chip and am trying to write a routine to allow me to get a delay of 10uS. But when I try to add this:/** * @brief This function provides a delay (in microseconds) * @param microseconds: delay in microseconds */_STATIC_INLINE void DWT_Delay_us(volatile uint32_t microseconds){ uint32_t clk_cycle_start = DWT->CYCCNT; /* Go to number of cycles for system */ microseconds *= (HAL_RCC_GetHCLKFreq() / 1000000); /* Delay till end */ while ((DWT->CYCCNT - clk_cycle_start) < microseconds);} to my header file I get this error:../Core/Inc/dwt_stm32_delay.h: In function 'DWT_Delay_us':../Core/Inc/dwt_stm32_delay.h:30:29: error: 'DWT' undeclared (first use in this function) 30 | uint32_t clk_cycle_start = DWT->CYCCNT;I guess I'm not INCLUDEing the proper header file. I added "#include "stm32l0xx_hal.h" but that didn't help.Any ideas?Thanks,Richard
May you people suggest some open source project based on STM32? may main goals are to contribute and learn.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.