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
My Stm32 board led 6 and com CN1 led keep showing red colour led when plug in usb when at stlink mode. This make me can't debug or upload any code into the board. On the other hand, when the board connect vcc in exit mode it can function normally. Does this mean my laptop usb hub make the board short and I can't upload code into the board any more? Can anyone help me to solve this problem? Because I need this board to work back in urgent due to robocon competition is nearly in the corner.
Hi, I am trying to create an SMTP client application using LWIP to send/receive emails from my STM32H7 based processor board, I am using smtp_send_mail() to send emails, although this functions returns ERR_OK, i couldn't monitor the emails being sent. Please let me know, is there anything i am missing.
Bootloader only responding on PC10 and PC11, but not on PA2,PA3, how to select a particular UART port for bootloader?
I have a STM32F446 MCU. I want to use the two USB ports featured by the MCU and have a single Audio Device Class on each USB but once one is selected in the CubeMX, the other is greyed out.
I recently got into STM32. My goal is to use my 1 controller to simulate multiple keyboard on my Windows computer.Currently, I managed to get a setup that works for 1 keyboard (1 HID device) using the Custom HID device settings on the CubeIDE. I'm trying to progress into having multiple keyboards (multiple HID devices) and I'm having a really hard time figuring out what to do.From what Iv'e read on the forums, I understand that there are 2 option for what I'm trying to do:Composite USBHaving multiple HID interfaces on the same USB output.I'm mostly trying to do the second option, but I think either one would work for me.I'm really struggling with instruction on what to do, I found a few forum posts, but I couldn't really understand what to actually do, I don't really understand what I actually need to change in my code in order to have multiple HID interfaces in it.If anyone could give me some tips or resources it would be highly appreciated, thanks
Hello,I am working on a project with an STM32F746BGT6. I am supposed to read a binary file on an USB key. I have a code with USB OTG-FS working on STM32F4, but not with a F7. The variable "Appli_state" is never changed to "APPLICATION_READY" which unable the code to continue.So I tried a STM32 example on the discovery board STM32F746. This example is the MSC_Standalone USB Host Mass Storage (MSC) application.I connected the usb key on connector CN13, which is the connector for FS.I started the program and got the same problem as above. I tried with an USB key FAT32 and FAT16. The only steps that are executed correctly arelinking the usb drivermounting the usb key.As it is an example code from ST, i guess it is supposed to work. Does anyone had a similar problem?Thank you for any idea.Best regards.
See this link: https://learn.microsoft.com/en-us/azure/rtos/threadx-modules/chapter1Would like to explore the options of using this method to partition code.
salut tout le monde j'ai essayé sur la carte stm32f407VG en utilisant dp83848 PHY en mode RMii pour me connecter au réseau LAN via un câble ethernet mais j'ai quand même échoué, donc toute solution que j'utilise lwip comme middleware.
Hi, I'm sorry if this is the wrong place to ask.I've got several Nucleo F303ze boards collecting data in several locations and I want them to send said data to my web page to process it. To grant them internet access I would usually use a wi-fi module but some of my boards are located at places without Wi-fi connection.So to grant them Internet access I've thought of using some module with a SIM card from any provider in my country. Does ST provide such module or similar solution?Thank you.
Hi community.. I am trying to make it work the usb host in my new discovery board. I am not sure that the config done with stm32cubemx is correct.. I have followed this example here http://evenlund.blogspot.com/2016/10/usb-storage-with-stm32f4-discovery-and_58.htmli always get But i am not so sure about the cube mx config i made it...Can you please check it ?The idea is just to read afile from usb for the moment,, Thanks a lot
Description:In ThreadX, it is possible to create custom TraceX User Events with: tx_trace_user_event_insert()This feature is explained in this artice: Chapter 10 - Customer user events…here: https://learn.microsoft.com/en-us/azure/rtos/tracex/chapter10The article explains that these events can be customized by modifying the file “tracex_custom.trxc�? which is described as a “custom event configuration file“.The problem:However, since the TraceX UI is now installed through Microsoft Store, and the path to this file is in the installation path, it seems that Admin rights are needed to modify this file.How can I used a modified “tracex_custom.trxc�??TraceX version: 6.2.1.0
Because in this function it uses memory allocation, I want to set memory parameters static not dynamic
Hello Support Team,Have a wonderful day.We are selected Trustzone MCU STM32U585ZIT6Q for our product we have some queries regarding the certification Based on the attached user guide snapshot, we could understand this U5 series chip have a Class B library that supports IEC 61518 and was adopted to fulfil the IEC60730 requirement.Is that ok to proceed with UL1998/IEC60730 certification by integrating the ClassB STL library for the U5 series?Also, could you share the latest UL-compliant certificate for the STM32 U5 series?ThanksHiren R. Thumar
Hi,I need help!!!I'm working with STM32L47 and I'm trying to add the option to update the FW via DFU without toggling BOOT0.I tried to make the Stackpointer jump to the same address the BOOT0 as it's sent by the BOOT0 press (0x1FFF0000) but the only thing I get is a fast close on open of the USB port (as seen by Device manger of Windows) and then the Stackpointer is going back to address 0x08000000 and the application code is being executed.My sequence is as follows:Run main() as usual until CB_BootLoaderCheck()CB_BootLoaderCheck() checks for a dedicated magic word in flash and decides if to jump or not.If magic word does not exist, the application code runs normally.Via CLI I'm running DFU mode command which writes the magic word in flash and execute reset NVIC_SystemReset().After the reset, the magic word does exist and CB_JumpToBootLoader() is called and supposed to send the Stackpointer to the desire address (0x1FFF0000)int main(void) { /* USER CODE BEGIN 1 */ /* US
Following function are tied to the LWIP functions and i do not want to use any LWIP etc...How to bypass that ?void HAL_ETH_RxAllocateCallback(uint8_t **buff) { struct pbuf_custom *p = LWIP_MEMPOOL_ALLOC(RX_POOL); if (p) { /* Get the buff from the struct pbuf address. */ *buff = (uint8_t *)p + offsetof(RxBuff_t, buff); p->custom_free_function = pbuf_free_custom; /* Initialize the struct pbuf. * This must be performed whenever a buffer's allocated because it may be * changed by lwIP or the app, e.g., pbuf_free decrements ref. */ pbuf_alloced_custom(PBUF_RAW, 0, PBUF_REF, p, *buff, ETH_RX_BUFFER_SIZE); } else { RxAllocStatus = RX_ALLOC_ERROR; *buff = NULL; } } void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length) { struct pbuf **ppStart = (struct pbuf **)pStart; struct pbuf **ppEnd = (struct pbuf **)pEnd; struct pbuf *p = NULL; /* Get the struct pbuf from the buff address. */ p = (struct pbuf *)(buff - offsetof(RxBuff
I want to send Data through USB from STM32. I've written the following bare-metal code to do it. But my PC doesn't recognize USB device when plugged in.#include "stm32f10x.h" void USB_Endpoint_Configure(uint8_t endpoint, uint8_t type, uint8_t dir) { // Check the parameters. if (endpoint >= 16) { return; } // Set the endpoint type. *((volatile unsigned int *)0x40005C00 + endpoint * 4 + 0x00) = type; // Set the endpoint direction. *((volatile unsigned int *)0x40005C00 + endpoint * 4 + 0x01) = dir; // Set the endpoint max packet size. *((volatile unsigned int *)0x40005C00 + endpoint * 4 + 0x02) = 64; // Enable the endpoint. *((volatile unsigned int *)0x40005C00 + endpoint * 4 + 0x04) |= 0x00000001; } int USB_Endpoint_Write(uint8_t endpoint, const void *data, int size) { // Check if the endpoint is valid. if (endpoint >= 0x80 || endpoint >= 0xE0) { return -1; } // Check if the data is large enough to fill the
Hi I finaly got my EMMC/SD Card project running. I can read write to my EMMC with ~30 MB/s on a stm32F4. At the moment my USB is too slow. In the forum I read that first thing to do is to multiply MSC_MEDIA_PACKET by 2,4,8, .... THe problem is that as soon as I change the Value of MSC_MEDIA_PACKET windows no longer recognises the USB MSC. I used value MSC_MEDIA_PACKET = 256, 1024, 2048Non worked. I also increased the size of heap and stack. No success.Any idea why windows doesnt recognise my USB device with MSC_MEDIA_PACKET other that 512?
Hi all,I'm trying to create a simple webpage server on a NUCLEO-H723ZG. I understand some basics, but overall I'm pretty new to all of this. So I'm starting from the LwIP Server Netconn RTOS example. If I load the default example to the board, it works great. But, after trying everything I can think of, and looking all over the internet, I cannot seem to change the homepage to my own static HTML file. I've figured out how to use the MAKEFS scripts and all that, but, assuming it compiles without errors, the default homepage does not change. I've tried different options and saving the fsdata file to different directories, but nothing works.This is for a proof-of-concept for my company's latest project, and I don't need to be an LwIP expert quite yet (maybe later). So, simple question: starting from the default LwIP Server Netconn RTOS example, and running MAKEFS script on my HTML files, how do I get them into my project so they show up? That's it: just how do I switch to a different home
Hello everyone,I need help because i wanted to use USB VCP for communicating from my STM32 to an arduino via USB-Serial converter.I thought this MCU was good enough for that. But it seems to have a memory problem.After creating a new project and enabling the "Virtual Port Com" in "USB_DEVICE Mode and Configuration", I generate the code and compile, and get the following error:/home/luispl/st/stm32cubeide_1.12.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.linux64_1.0.200.202301161003/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: emwaver_usbtest_f042.elf section `._user_heap_stack' will not fit in region `RAM'/home/luispl/st/stm32cubeide_1.12.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.linux64_1.0.200.202301161003/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: region `RAM' overflowed by 376 bytescollect2: error: ld returned 1 exit statusmake: *** [makefile:
hello,I able to see the stm32 RAM as storage in pc. I want to transfer the files and buffer data to pc from stm32 RAM as storage. int8_t STORAGE_Read_FS(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len){ /* USER CODE BEGIN 6 */ memcpy(buf,&buffer1[blk_addr*STORAGE_BLK_SIZ],blk_len*STORAGE_BLK_SIZ); return (USBD_OK); /* USER CODE END 6 */}int8_t STORAGE_Write_FS(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len){ /* USER CODE BEGIN 7 */ memcpy(&buffer1[blk_addr*STORAGE_BLK_SIZ],buf,blk_len*STORAGE_BLK_SIZ); return (USBD_OK); /* USER CODE END 7 */}
Hello community,I am exploring STM32G0C1xC for use in our low-cost Data Acquisition system interfacing it with SD-Card for data storage application. I would like to know if someone has first-hand experience in implementing USB OTG-based transfer from MCU to Smartphones (That support USB OTG).Here is the datasheet.The issue is it is not clearly mentioned in the datasheet about the USB OTG support, whereas some other MCUs have clearly written descriptions of the USB OTG in the specifications.Any guidance and observation-based insights would be of great help, thanks in advance!
I've been working with an F7 processor, using RTOS with the FATFS and an SD card in 4bit mode on SDMMC1.STM32CubeIDE V1.8STM32CubeMX V6.4.0Within the sd_diskio.c file there is the following option to enable D-Cache maintenance when D-Cache is used:/* * when using cacheable memory region, it may be needed to maintain the cache * validity. Enable the define below to activate a cache maintenance at each * read and write operation. * Notice: This is applicable only for cortex M7 based platform. */ /* USER CODE BEGIN enableSDDmaCacheMaintenance */ #define ENABLE_SD_DMA_CACHE_MAINTENANCE 1 /* USER CODE END enableSDDmaCacheMaintenance */However, there seems to be a D-Cache clean missing within SD_read(), this is the generated code:/* USER CODE BEGIN beforeReadSection */ /* can be used to modify previous code / undefine following code / add new code */ /* USER CODE END beforeReadSection */ /** * @brief Reads Sector(s) * @param lun : not used * @param *buff: Data buffer to store read da
..
Hey folks,I am trying to record the audio on STM32H735 discovery kit, but the callback functions (BSP_AUDIO_IN_TransferComplete_CallBack) never been called. I also tried the BSP example for the board; however the audio recording demo is not working there too!Any help would be appreciated.
Hi I'm karthik ,now I'm working in stm32f746g board .I have try to ping static IP in stm32f746 board . So I can't able to Ping my IP address .then followed the bellow videohttps://www.youtube.com/watch?v=Wg3edgNUsTk&list=PLfIJKC1ud8ggZKVtytWAlOS63vifF5iJC&index=2But this tutorial using one board as STM32H745I So Comparing to my board is different Register so i have set my default allocation .But i can't able to ping my IP adress MY code is working fine no error . So i tried to ping the static ip address in cmd port Some error is come.this my error( "Request timed out")So any one give the solution and any reference code or video then you support.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.