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 Team,I am unable to connect STM32H745 DISC board to STM programmer to erase the code, Also in STM cube ide software unable flash code, can you confirm how to check the read protection.PLEASE find attachment encloser. Best Regards,Gagan Gowda
Hi, I have a circuit in which I want to check every cycle if a measured voltage is over a limit value and in that case disable the measure over one of four DUTs forcing to LOW the state of some pins. The problem is that in the main loop I have command line that set the state of the pin sometimes to high and sometimes to low and I would to find a way to block the state of a pin and do not change his state until the end of the program. I thought to use the IF but I have 4 DUTs to check and control separately.
HiI want to download file from HTTP using httpc_get_fileIs there any example how to use it?I don't know what to put in each variable.err_t httpc_get_file(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_connection_t *settings, altcp_recv_fn recv_fn, void* callback_arg, httpc_state_t **connection)PSIf you have any other working way to download file from http, I will like to know...Thanks,Lior
Hi,I managed to implement a dual VCOM composite device for an STM32H7. In principal the communication works, if both COM ports are actively used/open. One port is used for sending commands and receiving responses. The other one sends out unsolicited trace data and can be opened/closed arbitrarily.The problem arises once I close the trace VCOM. It seems like after callinguint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len) { uint8_t result = USBD_OK; /* USER CODE BEGIN 7 */ USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData; if (hcdc->TxState != 0){ return USBD_BUSY; } USBD_CDC_SetTxBuffer(&hUsbDeviceFS, Buf, Len); result = USBD_CDC_TransmitPacket(&hUsbDeviceFS); /* USER CODE END 7 */ return result; }hcdc->TxState stays true, which also stalls the communication on the other port. The code here was copied from a code example for an STM32H7 eval board, I think.Only when the trace port is re-opened (in a generic terminal application)stati
I am using STM32G474RCT6 controller, here I don't have system bootloader for FDCAN, So for firmware upgrade can I receive firmware application through FDCAN communication protocol and do a UART_Transmit() to load the new application into the flash. As I have system bootloader for UART available for my controller.
Posted on May 26, 2017 at 10:59I am developing a UVC Host FULL Speed Driver in Kit STM32F4 Discovery .I brought up Webcam and it streaming data.But when I receive data from Isochronos Endpoint My source :USBH_IsocReceiveData(phost,imgBuffer,EpOutSize,pipe_out_uvc); uint32_t time_count = phost->Timer;while (1){ URB_Status = USBH_LL_GetURBState(phost,pipe_out_uvc); if (USBH_URB_DONE == URB_Status && phost->Timer-time_count > tbInterval_stream){ time_count = phost->Timer; uint32_t Xfer_len =USBH_LL_GetLastXferSize (phost, pipe_out_uvc); if(Xfer_len){ USBH_UsrLog('[DEBUG]==========>header size : %d',*imgBuffer); } }}I received event USBH_URB_DONE but Xfer_len always equal 0 and nothing in imgBuffer
Hiin some older posts I read the combination of FreeRTOS and USN CDC high speed (ULPI) is not working. Is that correct? Thx
Hi,The more I am reading LWIP documentation, the more I get confused.The entire LWIP codebase is scattered with #ifdefs making it look like a minefield and nightmare regarding maintainability. At least that's what I feel, maybe it is because I have not worked with LWIP before.I see @Piranha citing clearly documented issues regarding CubeH7 package and multi threading regarding LWIP.So, I have taken some interest to implement the code, the best possible way possible by me, based on LWIP documentation. But the more I look into it, I get even more confused.To begin with, https://www.nongnu.org/lwip/2_1_x/multithreading.html"How to get threading done right"Did a search within the CubeH7 package regarding "LWIP_MARK_TCPIP_THREAD"Searching 42199 files for "LWIP_MARK_TCPIP_THREAD" (case sensitive)0 matches@Amel NASRI @Imen DAHMEN After a few night outs, I have a splitting headache trying to sort things out. It appears as though the Cube H7 package is not really stable as far as Ether
I have spent the past two days trying to get the X-Cube-DPower middleware added to an STM32CubeIDE project but it won't compile. Does someone have a reference on how to add that to an STM32CubeIDE project?When I try to compile the code, it gives me an error revealing that the "app_dpower.c" file has an unterminated comment, which it does (see below).I have run out of options. Are people using an alternate digital power library for the DSMPS design? /********************************************************************************* @file app_X-CUBE-DPower.c* @author STMicroelectronics
hi all,i have a sensor and i am have a library for arduino i want to convert .c and .h file that is suits to stm32wb55rgv6 can any one suggest that how to do this
Hi, I'm working on enabling ETH on STM32H563. I tried to create a FW to do basic ping/ICMP in order to test the interface along with the PHY/switch chip. I found whenever I start the DMA by calling HAL_ETH_Transmit, it always returns HAL_ERROR due to timeout. I checked the status register, ETH_DMADSR and found TPS0 is set to 0x6, which indicates descriptor is not available or buffer underrun. I checked the descriptor and buffer with GDB and found nothing suspicious. Is there anything I should check? Thank you.
(STM32F103C8)My program continuously sends UART messages with regular blocking calls like this: HAL_UART_Transmit(&huart1, buf, size, timeout); The result on my logic analyzer normally looks like: I also handle interrupts coming from HAL_SPI_TxRxCpltCallback at 1kHz. When this coincides with a UART transmission, the result looks like this:The SPI interrupt causes a slight delay in UART transmission, but it never seems to corrupt the transmitted data by getting "in between" the bits of each byte and messing up the timing. I ran a test for many hours and everything was fine. Is this behavior something I can depend on to always be true? If so, I would imagine that to accomplish this the UART is disabling interrupts during the time it is transferring each byte? I have a bunch of other timer interrupt driven code that is quite time-sensitive, just trying to understand if the UART will affect that.
I am currently working on a project in which my board is a lightweight version of a larger, more expensive unit. The other unit uses code where endpoint 0x81/0x02 are used for interrupt type. The endpoints for 0x83/0x04 are used for bulk USB. I only need to access bulk USB.I have built the following device descriptor for my device: /* USB MYDEV device Configuration Descriptor */ __ALIGN_BEGIN static uint8_t USBD_MYDEV_CfgDesc[USB_MYDEV_CONFIG_DESC_SIZ] __ALIGN_END = { 0x09, /* bLength: Configuration Descriptor size */ USB_DESC_TYPE_CONFIGURATION, /* bDescriptorType: Configuration */ USB_MYDEV_CONFIG_DESC_SIZ, /* wTotalLength: Bytes returned */ 0x00, 0x01, /*bNumInterfaces: 1 interface*/ 0x01, /*bConfigurationValue: Configuration value*/ 0x02, /*iConfiguration: Index of string descriptor describing the configuration*/ 0x80, /*bmAttributes: bus powered and Supports Remote Wakeup */ 0x32, /*MaxPower 100 mA: this current is used for detecting Vbus*/
Hi! I want to run the Open bootloader example of H573ID-K board but the example is not working for me. I want to bootload a simple IO toggle example via UART. I changed the flash address to FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 2016Kand #define VECT_TAB_OFFSET 0x8000U as shown in the example videos. And I load the image .bin file via CubeProgrammer after Uart is connected.However, there is nothing happening.When I change the UART to ST-LINK and repeat the process, IO LED is actually toggling. Is there anything I am missing to set up the Open Bootloader? I just use the open bootloader from the example selector for H5 board from CubeIDE.Thanks for any help!!!
Dear STM Support Team,I am currently working on a project using the STM32H747I-Discovery Kit and have encountered an issue during system initialization. After integrating code from the STemWin_HelloWorld example and successfully compiling, the HAL_Init() function returns HAL_ERROR.Upon debugging, I have found that the common_system_clock variable is being set to zero when returning from the following block of code: #if defined(RCC_D1CFGR_D1CPRE) common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU); #else // Other conditionals or relevant code #endif HAL_RCC_GetSysClockFreq() correctly returns a value that corresponds to 64MHz, so the issue seems to arise during the prescaler application. This leads to a situation where common_system_clock becomes zero, which should not be the case.I have double-checked the clock configurations, prescaler settings, and the relevant RC
Please explain how to get the NMEA data from the module. Is it works similar to Ublox modules? simply transmitting the data through the UART port or how?@Tesla DeLorean @Saurabh.Rawat
Hi all,I setup DMA normal mode, on RS485 port where I receive more or less 1 byte per second.Also, I have DMA normal mode on a debug serial port.I want to send back on rs485 the characters I receive on that port.What I observe is that if I add the following printf(), that redirects output to debug UART, in HAL_UARTEx_RxEventCallback()printf( "errCode=%i\r\n", retCode );everyting works fine, with TeraTerm software, I can see the characters I input in RS485 window displayed correctly.BUT, if I remove the printf(), when I press keys in rs485 window the cursor only moves one space to the right not showing any character.Also, if I set a breakpoint at the begiining of HAL_UARTEx_RxEventCallback(), it only gets called once on the first character I type in rs485 putty window and the sending back of the character received is ok, but then on subsequent pressing of keys HAL_UARTEx_RxEventCallback() is never called and nothing is shown in TeraTerm window.I'm using STM32G070RBTx, STM32CubeIDE v. 1.
Hi,everytime after updating "STM32CbbeIDE", I can't start debugging because I must manually go to the PATH variable and replace the old/existing path to the "arm-none-eabi-gdb.exe" with the new one. For example, the existing path was "com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.1.202309131626\tools\bin" and it should be replaced by "C:\ST\STM32CubeIDE_1.6.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235\tools\bin".I tried to find a variable in the Path variables lists but I can't find one which returns the path to the current "arm-none-eabi-gdb.exe". I appreciate any suggestion and / or workaround.Best Regards
hi I'm using stm32f439 ARM controller for my development here im calculating checksum by accessing my code memory starting from 0x08000000 to up to 2Mb data and EXORING for my code checksum. but when i calculate the data from .HEX its not same, so some source get to know that .HEX file contains boot code data too so how to differentiate boot code data and my code data in .HEX file.@stm32f439thank you suguresh M
In order to access the QSPI flash, I suspend the Touchgfx task from another thread.The other thread has highest priority. Today the function hang somewhere, maybe at this place: (void) osThreadSuspend( Task_TouchGFXHandle ); while ( osThreadIsSuspended(Task_TouchGFXHandle) != osOK) { osDelay(1); } My question: Is it guaranteed that osThreadIsSuspended delivers osOK once after osThreadSuspend and thus no endless loop can occur? Otherwise I would build in a counter and reset in case of a hang.
I have code that's meant to put an STM32L552xx microcontroller into bootloader mode after reset, so I can connect it to CubeProgrammer afterwards. I tested the code and while it does appear to be doing something, it isn't showing up in the device manager in any sort of update mode, nor can CubeProgrammer find it under the USB tab.I'm still looking into causes, but I wanted to check to make sure that this wasn't a simple case of me misunderstanding the instructions from AN2606, table 2 (I'm using Bootloader Pattern 12, trustzone disabled and boot0 pin pulled low).Code for starting the bootloader from user code is below:void prepareForUpdate() { uint32_t boot_addr = 0x017F200; FLASH_OBProgramInitTypeDef ob_cfg; HAL_FLASHEx_OBGetConfig(&ob_cfg); ob_cfg.OptionType = OPTIONBYTE_USER; ob_cfg.USERType = OB_USER_nSWBOOT0; ob_cfg.USERConfig = OB_nBOOT0_SET; ob_cfg.BootAddrConfig = OB_BOOTADDR_NS0; ob_cfg.BootAddr = boot_addr; HAL_FLASH_Unlock(); HAL_FLASH_OB_Unlock()
Hello , Import example code from package en.stm32cubeh5-v1-1-0\STM32Cube_FW_H5_V1.1.0\Projects\NUCLEO-H503RB\Applications\USBX\Ux_Device_CDC_ACMand Run the example using STMcubemx IDE Gives hard fault error when call function ux_dcd_stm32_initialize((ULONG)USB_DRD_FS, (ULONG)&hpcd_USB_DRD_FS);
Does the Bootloader programme of STM32F4 series support multiple devices to be download at the same time?
Hi all,I'm facing an issue that has already been discussed several times in this and others forum, I attempted all the proposed solutions I could find but without success.I want to read the characters user inputs via Tera Term and store them in a buffer, when 10 characters are entered or user press 'Enter' key, the received characters are sent out to the serial port.This should go on forever, again, after 10 characters or 'Enter' key input from user the received characters are sent out to the serial port.I'm using STM32G070RBTx, STM32CubeIDE v. 1.13.2 , this is my code: /* 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
I am working withe the STM32F373 SDADC on the STM32F373_EVAL board.When selecting the internal reference voltage (hsdadc1.Init.ReferenceVoltage = SDADC_VREF_VREFINT1) ,the function HAL_SDADC_Init() will get stuck at while((hsdadc->Instance->ISR & SDADC_ISR_STABIP) != 0UL).Any suggestion how to solve this?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.