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
The Escape key was mapped to 0x00 in the USB HID code, I added it and it works fine but I'm curious to know why it was absent? Bug/oversight, another method used for Escape key detection? #ifdef QWERTY_KEYBOARD static const uint8_t HID_KEYBRD_Key[] = { '\0', '`', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', '\0', '\r', '\t', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\\', '\0', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\'', '\0', '\n', '\0', '\0', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', '\0', '\0', '\0', '\0', '\0', ' ', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\r', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '7', '4', '1', '\0', '/', '8', '5', '2', '0', '*', '9', '6', '3', '.', '-', '+', '\0', '\n', '\0', '\e', '\0', '\0', '\0', '\0', /* Modification - changed \0 to \e for Escape key detection */ '\0', '\0', '\0', '\0
Hi,Backgorund: I am struggling with getting DHCP to work through a W5500 ethernet controller, and have been searching for working examples with limited luck. The SPI connection works fine, and my router can (usually) see the W5500, including the MAC address. DHCP works, at least partially, because my device gets an IP address from the router. However, I cannot connect to the controller from a piece of software. (I get network error 10060)So – I have been spending some days trying to find a working DHCP example, so I might be able to figure out what I am doing wrong. And I just thought that I found one. A complete CubeIDE project for an STM32F103 by @SGatt.1, designed for a W5500. Thanks.However, when I try to build it, I get weird errors from the... linker? e:\program files\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: e:/program files/stm32cubeide_1.12.1/s
I have a USB MSC device project from CubeMX working with STM32L452 and I need to integrate that with FreeRTOS so that the device and the USB MSC are both able to access the storage, What is the best place to "split" the USB MSC driver stack in order to have FreeRTOS manage access to the storage?
Hello, Im trying to get a USB PD 3.0 connection betwe en an ST X-Nucleo-DRP1M1() and an power bank or wall adapter.If i ask for the source to give its capabilties, and set up an 5, 9,12, 15 or 20V Vbus voltage the nucleo says it has an capability mismatch. Also it says it can only handle an maximum operating current of 440mA. But i cant find that number anywhere. My SNK_PDO list is as following: USBPD_PDO_SRC_FIXED_SET_VOLTAGE(5000U) | /* Voltage in mVUSBPD_PDO_SRC_FIXED_SET_MAX_CURRENT(3000U) | /* Max current in mAUSBPD_PDO_SRC_FIXED_PEAKCURRENT_EQUAL | /* Peak Current info /* Common definitions applicable to all PDOs, defined only in PDO 1 */USBPD_PDO_SRC_FIXED_UNCHUNK_NOT_SUPPORTED | /* Unchunked Extended MessagesUSBPD_PDO_SRC_FIXED_DRD_SUPPORTED | /* Dual-Role DataUSBPD_PDO_SRC_FIXED_USBCOMM_NOT_SUPPORTED | /* USB CommunicationsUSBPD_PDO_SRC_FIXED_EXT_POWER_NOT_AVAILABLE | /* External PowerUSBPD_PDO_SRC_FIXED_USBSUSPEND_NOT_SUPPORTED | /* USB Suspend SupportedUSBPD_P
From the beginning, I have been using EWARM to build the external loader. However, when following the provided steps for the QSPI flash type, I couldn't fully adapt to them. So, I imported a GitHub file, changed only the dev_inf.c, and generated the ST-LDR file, but it resulted in partial data showing as 0xFFFFFFFF. Now, I need to properly generate the loader. Should I continue using EWARM, or should I switch to generating it in CubeIDE? If it's in CubeIDE, where can I find the linker file for it? How to implement and use your own external flash l... - STMicroelectronics Community
Hallo, this is my code. I create a directory, and then a file in this directory. If, in another point of the code, I check if the file is present or not, I can read/write it correctly and so on. Instead, if I stop the execution of the program, when I restart it, I don't find the file above, only the directory. Any suggestion please? I'm struggling with it... fxRes = fx_media_open( &disk1, "FS", fx_stm32_levelx_nor_driver, (VOID *)LX_NOR_OSPI_DRIVER_ID, (VOID *) fx_nor_ospi_media_memory, sizeof(fx_nor_ospi_media_memory)); if (FX_SUCCESS != fxRes) { return; } if (!FolderExists(&disk1, (char*)"/DATA")) { fxRes=_fx_directory_create(&disk1, (char*)"/DATA"); if (FX_SUCCESS != fxRes) { return; } } if (!FileExists(&disk1, (char*)"/DATA/file.txt")) { fxRes=_fx_file_create(&disk1, (char*)"/DATA/file.txt"); if (FX_SUCCESS != fxRes) { return; } } fx_media_flush(&disk1); fx_media_close(&disk1);
I know that the library X-CUBE-AUDIO is not compatible with H7 series (only F4 and F7 is supported), but it can be very useful on the H7 mcu, too.Is there any way to make it run on the H747 cpu on M7 core?I want to use mainly SVC (SmartVolume) functionality, but CDC, SCR236, GAM, SDR.Are there any way to run any of these functionalities on H7 cpu?
Hi,I am trying to install the X-CUBE-CLASSB 3.0.0 library in my custom board with the dual core STM32H745. I have put the library in the CM7 core but it only works if I debug the program. When I turn off and turn on again, the program does not work. I don't know what to do because it works rigth when I debug it.I have tried to disable the watchdogs by commenting USE_INDEPENDENT_WDOG and USE_WINDOW_WDOG. I have also uncomented IGNORE_COMPLEMENTARY_CORE_STATUS to ignore CM4.The only example ST provides is for STM32H747. It is very similar to STM32H745 but not the same. I am using the startup file .s of the example for STM32H747. Do I need to change anything in this file?Does anyone have any idea what the problem could be?Thanks in advance,David
Hello,I am working on a project using an STM32F469 microcontroller, and I'm trying to interface a W25N01GV NAND flash memory over QSPI. I’m currently facing issues during the format phase while using FileX with LevelX NAND driver.following is the configuration used while formatting: /* Format the NAND flash as FAT */ status = fx_media_format(&nand_flash_disk, fx_stm32_levelx_nand_driver, /* Driver entry */ (VOID *)CUSTOM_DRIVER_ID, /* NAND disk memory pointer */ media_memory, /* Media buffer pointer */ sizeof(media_memory), /* Media buffer size */ "NAND_FLASH_DISK", /* Volume Name */ 1, /* Number of FATs */ 32, /* Directory Entries */ 0, /* Hidden sectors */ 65536, /* Total sectors */ 2048, /* Sector size */ 1, /* Sectors per cluster */ 1, /* Heads */ 1); /* Sectors per track */ 1) The QSPI initialization seems to work fine, and I can read the flash ID: EFAA21 successfully.2) When attempting to format the NAND flash using fx_me
Hi guysI try to iclude the CMSIS files into a project with a STM32F334. I followed this article (https://community.st.com/t5/stm32-mcus/how-to-integrate-cmsis-dsp-libraries-on-a-stm32-project/ta-p/666790 ) but failed.The first difference is, that I do not have a folder "PrivateInclude" to copy from, so I just continued with the other two folders I found, "Include" and "Source".After adding the two paths in project settings - without adding any code for sure - I get some thousands of compiler errors. The first error messages are "unknown type name 'uint16_t' ". As we know, uint16_t is a type in standard integer library, I already included it successfully.So I assume there still something missing...but what? And how to get?Just to be sure, I want to use the controller functions, but I would like to have a general manual to solve such problems in the future (and maybe many other too).
Hi all,I am using UART4 in STM32F205 connected to an external device with an RS485-Transceiver (sn65hvd75).When I transmit data (HAL_UART_Transmit_IT) I set the TXEN pin high in RS485-Transceiver and when I get a callback using HAL_UART_TxCpltCallback, I reset the TXEN pin to receive the data, It works fine in lower baudrates(9600), but at higher baudrate(115200) the response from external device gets corrupted because the TXEN has not been resetted before we start receiving data.Does anyone know whether there is delay in HAL_UART_TxCpltCallback or is there any other way to make sure the transmit is complete (to reset the TXEN pin)?
Hi all, for the past few days i've been struggling to make this jump work as it refuses to communicate after the jump is initiated.Below you can find the code i'm using to try and make the jump, perhaps the order how things are de-initialised and initialised is to blame but i tried to follow the order as per the diagram in the AN2606 doc.As a boot patter i've selected the highlighted pattern in the screenshot below:The communication diagram can be simplified to the following:RECEIVERSENDERSTM32U585 ( USART2)ESP32-S3 (USART1) Here's the function that supposedly should perform the jump into bootloader form application (this code runs on the STM32U585CIU6): UART_HandleTypeDef huart2; void jumpToBootloader() { void (*SysMemBootJump)(void); volatile uint32_t addr = 0x0BF90000; HAL_RCC_DeInit(); SysTick->CTRL = 0; SysTick->LOAD = 0; SysTick->VAL = 0; __disable_irq(); HAL_DeInit(); // Enable the USART2 clock __HAL_RCC_USART2_CLK_ENABLE(); // Enab
Missing tag on STM32CubeF1 "release v1.8.6" commit on githubhttps://github.com/STMicroelectronics/STM32CubeF1
HiI have made a custom PCB based on STM32H723VGT MCU and KSZ8863RLL with interface RMII. I have followed the Hardware Design Guide for the KSZ8863. Including 100 Ohm impedance from RJ45 to PHY and 50 Ohm impedance from PHY to STM32. Length matching is also done with meanders. Without any configuration from CubeMx I am expecting some activity on the LEDS when I plug a ethernet cable in the RJ45 connector.Are there anyone with experience with the KSZ8863 3-port switch, that have any suggestions? I have added a picture of the schematic. The crossed is not implemented on the board, so please ignore those.Any help is much appreciated!Friendly regards, David
Just reading through the wikipages:https://wiki.st.com/stm32mcu/wiki/Introduction_to_Azure_RTOS_with_STM32and chapter 2.2 refers to:User is granted production, provided the development is performed on an MCU that is listed officially by MicrosoftIs this a valid requirement anymore, as my understanding is that Microsoft has transferred the Azure RTOS to Eclipse foundation (ref: https://threadx.io/) and it's nowadays called Eclipse ThreadX. Major wikipage update for someone? Azure RTOS is all over the place, including the pictures...
Hello: I use STM32CubeIDE 1.16.0 to develop an OTA feature in STM32H7A3ZIT6: The firmware should be programed at flash address 0x08000000,and run in ram, it will receive the whole update image in temporary memory and then program into the flash at the same start address 0x08000000,is it possible in this way? Any detailed examples or documents are appreciated, thanks.Bill
HAL_RCCEx_GetPLL2ClockFreq() computes the frequency of the three outputs of PLL2. When PLL2 is in Fractional N mode it reports wildly inaccurate frequencies which can affect the setup of other peripherals like the SPI/I2S port.The problem is that the PLL2 code seems to have been ported from another PLL without correcting bit positions. The pll2fracen variable contains the value of the RCC_PLLCFGR_PLL2FRACEN and is used to multiply another value by 0 or 1, but it has not been shifted down to bit position 0, so the multiplication ends up scaling incorrectly.line 2986 of stm32h5xx_hal_rcc_ex.c reads as pll2fracen = RCC->PLL2CFGR & RCC_PLL2CFGR_PLL2FRACEN;but should be pll2fracen = (RCC->PLL2CFGR & RCC_PLL2CFGR_PLL2FRACEN) >> RCC_PLL2CFGR_PLL2FRACEN_Pos;Hope that helps.EricPS - this bug report is almost identical to one I submitted against the H7 HAL about 5 years ago! Seems that this problem is getting copied around without getting fixed. See it here:https://
Hi,I am working on a project which will require a connectionless CTE to be added to the advertisement. From what I understand, there are not currently any examples of a configured CTE beacon. What would be the best example project to modify to create a connectionless CTE beacon? Are there any examples anywhere floating around that I am unaware of? Or could someone point me in the right dire
Posted on February 26, 2017 at 07:10 Hi Everyone, I'm trying to read from the USB keyboard with a custom board STM32F205RCT6 MCU. I am using USB FS host (host only) with HAL library.but it just works with some keyboards! Other keyboards are detected by host but can not read data. Can any one help me? My Code: int main(void) { /* STM32F4xx HAL library initialization: - Configure the Flash prefetch, instruction and Data caches - Configure the Systick to generate an interrupt each 1 msec - Set NVIC Group Priority to 4 - Global MSP (MCU Support Package) initialization */ HAL_Init(); /* Configure the system clock to 120 MHz */ SystemClock_Config(); /* Init Host Library */ USBH_Init(&hUSBHost, USBH_UserProcess, 0); /* Add Supported Class */ USBH_RegisterClass(&hUSBHost, USBH_HID_CLASS); /* Start Host Process */ USBH_Start(&hUSBHost); /* Run
Hi,I'm using a STM32L452 and launching the bootloader in System Memory by setting the Boot0 pin to high and resetting. This launches the bootloader successfully.I'm using UART1 on PA9 and PA10.However, when trying to write the flash using the STM32_Programmer_CLI.exe it shows a NACK and the program exits. Here's the command I'm using, see log attached: "C:\ProgramFiles\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=COM11 -w="C:\FW.hex" Command line output is as follows: ------------------------------------------------------------------- STM32CubeProgrammer v2.15.0 ------------------------------------------------------------------- Warning: Wrong connect parameter: -w=C:\FW.hex Serial Port COM11 is successfully opened. Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off Activating device: OK Board : -- Chip ID: 0x462 BootLoader protocol version: 3.1 Response
Referencing attached project files 'H562VGT6.ioc' and 'Project.ioc'The 'H562VGT6.ioc' file is firmware for an ApplicationThe 'Project.ioc' file is firmware for board DiagnosticsBoth projects are for the same model boardThe issues is when I flash a new STM32H562 chip for the first time with project 'H562VGT6' the application fails to run even after a power cycle.Once the STM32H562 is flashed using the diagnostics project and then reflashed using the application code all runs fineBoth projects appear to be configured the same, any thoughts?
Hi, After successful coding, I suddenly stumbled on this error. I'm simply running this code: HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); MX_I2C1_Init(); MX_USART2_UART_Init(); And at the point of MX_USART2_UART_Init(); it crashes and goes to 0xfffffffe. Any guesses why? It seems like as soon as it tries to do something with the GPIO, it instantly crashes. First it seemed like my linker file offset was wrong, and after changing it worked again, but the next day it was just stuck again. Any guesses?Edit: It's time related. A 10ms delay makes it crash instantly after the delay
Hi , Recently, I`m using STM32H7 MCU to implement Ethernet Application. I have try TCP Client Echo from example code and it works. Then I want to try with MQTT and it always gets fault. And using mqtt_client_connect function, it will return ERR_RTE (Routing Problem) I have doing the works like, - Ping from PC to my board, so it seems well connection.- Set the static IP for connection port. - Open the 1883 port from firewall. - Set the MQTT broker and test at local PC with static IP Address. So I think is there something I miss. Setting? or Connection? I`m a beginner on internet knowledge. Appreciate any help!
Hello everyone,I'm working with an STM32H750B-DK board featuring the STM32H750XB MCU, and it currently has two "MT25QL512ABB8ESF" flash ICs configured in Dual-Mode QSPI.I would like to switch to using just one flash IC in standard QSPI mode. Could anyone advise on the necessary changes to configure for a single flash setup?Thanks in advance!Following is the existing QSPI init code. static void MX_QUADSPI_Init(void) { /* USER CODE BEGIN QUADSPI_Init 0 */ BSP_QSPI_Init_t qspi_initParams; /* USER CODE END QUADSPI_Init 0 */ /* USER CODE BEGIN QUADSPI_Init 1 */ /* USER CODE END QUADSPI_Init 1 */ /* QUADSPI parameter configuration*/ hqspi.Instance = QUADSPI; hqspi.Init.ClockPrescaler = 3; hqspi.Init.FifoThreshold = 1; hqspi.Init.SampleShifting = QSPI_SAMPLE_SHIFTING_NONE; hqspi.Init.FlashSize = 26; hqspi.Init.ChipSelectHighTime = QSPI_CS_HIGH_TIME_4_CYCLE; hqspi.Init.ClockMode = QSPI_CLOCK_MODE_0; hqspi.Init.DualFlash = QSPI_DUALFLASH_ENABLE; if (HAL_QSPI_Init(&a
I'm using STM32H743 in my project.If anyone knows how to disable D-cache, please help!D-cache really interferes with my work - I'm tired of fighting it!SCB_DisableDCache() - leads to nothing.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.