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've been programming with a STM32F407G, but the USB VBUS doesn't work. It is not recognized by my computer. It connects and disconnects. I changed the micro USB cable, I updated the firmware of the board, I tried to connect the board in another computer, I also bought another board to check it, but It has the same problem.I also want to say that the other USB connection works perfectly, that's why I could upgrade the firmware, but I do need to use the other one.
Attached is the test code for the tcp socket loop test. I have seen very high failures up to 26 failures out of 40 tcp socket create/connect attempts.
Hi,I have a B-L475e-IOT01A1 board. I have been trying to learn FreeRTOS with this board. I am using STM32CubeIDE v1.12.1. When I simply load an application onto the board, it appears to load properly. However, when I try to run my code through the debugger, I encounter all manner of problems:interrupts don't happenthe debugger doesn't return when I try to step over functionsbreakpoints that have been set and should be reached, aren'tI was wondering if this is an indication that I've damaged my board, or if this indicates some other problem.Thanks,Jason Mazzotta
my host interaction with STM32G431C8T6 SPI bootloader are functioning for a lot of jobs such as RW, but not for the whole-chip CRC. Here is the Logic analyzer captured data:Host=>BL, BL=>Host5A, A5A1,A55E,A5 cmd to run whole chip CRC00,A5......00,A500,79 BL confirms the cmdno difference with or without 1sec delay here08,A5 send 4 byte addr and chksum00,A500,A500,A508,A500,A5 for ever, precisely speak, host keeps polling for 5 secs, and didn't even receive NACKI follow AN4286 to design the host code. After going through STM knowledge base and existing furum threads, I hope someone could share some guidance with me. Thanks a lot.
Hi,i have a STM32U585 MB1551C board running with a custom software.I have a tinyusb stack up and running. The device successfully appears as a vcom port on a windows pc.But unfortunately after some time, round about 10-20sec., I get another USB_RST interrupt which causes a disconnect.Anyone an idea why this happens ? Kind regards
Hi.We are developing a product that will use USB on an STM controller. I found several posts stating that ST offers small companies to get a PID under the ST USB Vendor ID.Is this possible - how do we apply and what does it cost?We would like not to purchase our own PID/VID - at least not yet since we are a small startup company - it seems to me that a lot of products are using some "default" ST PID/VIDs which I guess works - but it is not very nice.
Hello Community!I am in the process of developing a cost-effective Data Acquisition System aimed at collecting vibration data from machinery. The primary intent is to offer an affordable solution while maintaining reliability, particularly for industrial applications.Bluetooth Low Energy (BLE) was an initial consideration for data transmission, however, due to cost constraints, it may not be the most feasible solution for this project. As an alternative, I am contemplating a USB-based solution where a smartphone (with USB OTG support) interfaces with the machine's sensor data, with a Terminal Emulator App functioning as the main user interface. This approach, I believe, could significantly reduce the Bill of Materials (BoM) and overall development cost. MCU: STM32G0C1 series.I am reaching out to the community in the hope that anyone with firsthand experience implementing a USB-based virtual communication solution could share their insights. Specifically, I am interested in understandin
I wish this thread could be a community documentaiton to analyze and understand LwIP RAW echoclient example provided in firmware packages. It would be nice to open new threads for each example.First question regarding this example: in tcp_echoclient_recv why the code tries to send remaining data if remote socket was detected as closed? It makes no sense to me. Any clue? /* if we receive an empty tcp frame from server => close connection */ if (p == NULL) { /* remote host closed connection */ es->state = ES_CLOSING; if(es->p_tx == NULL) { /* we're done sending, close connection */ tcp_echoclient_connection_close(tpcb, es); } else { /* send remaining data*/ tcp_echoclient_send(tpcb, es); } ret_err = ERR_OK; }Thanks
I have board with STM32F4 Microcontrollers. I am using USART and STM Bootloader in order to flash one of these chips. Is there anywhere recommended procedure to go for?
Hello,I'm currently working on a project using the STM32F723 Discovery kit and USB as a Virtual Com Port (VCP) in CDC mode. I'm encountering an issue related to DMA and USB_OTG_HS when using the CubeMX configuration with the "Enable internal IP DMA" flag enabled.The problem I'm facing is that when the "Enable internal IP DMA" flag is enabled in CubeMX, the application can echo the received data from the USB CDC RX buffer for only about three times. After that, it fails to send any data out over the CDC_OUT endpoint. Upon debugging, I found that the CDC_Transmit_HS function always returns USBD_BUSY, indicating that the transmission is still ongoing.I have verified that without enabling the "Enable internal IP DMA" flag, the application works fine and can echo the received data without any issues. However, I would like to take advantage of DMA for better performance and efficiency.Here are some additional details about my setup:STM32F723 Discovery kitCubeMX configuration:USB_OTG_HS perip
I want to use the USB interface of STM32H735VGH6 to develop the functions of USB audio and HID composite devices.I have a question, is the latest version of the driver supporting USB audio and HID composite device functionality? If supported,please let us know how to implement it.Thank you。
I have learn something from internet they are saying use aws iot sdk for embedded c . let me know in this library how to copy in keil vision my project and how to add certificate details we can add of our aws iot credential into this library. help me solve my isssues
Hi! I am trying to implement a composite device (two VCPs) on my stm3f4 board, as I need to transmit data simultaneously to the pc. I see that I have enough endpoints to do so but have no idea where to start from. Do you have any clear examples please? The ones I found online where not clear enough for me :grinning_face_with_sweat: Thank you!
Using STM32CubeMX v6.8.1. Target is STM32H573. Syntax error in "Clock Configuration":Initializing: STM32H573RITx LogicalParser: syntax error detected in expression for RCC original expression: ((VCOInputFreq_Value >1000000|(VCOInputFreq_Value=1000000)) & (VCOInputFreq_Value < 2000000)) & PLLUsed=1 parser evaluation: ((1.2E7 >1000000|(1.2E7=1000000)) & (1.2E7 < 2000000)) & 1.0=1
The function HAL_TIM_OnePulse_Start() only operates on channels 1 and 2.The comment inside it says:"in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2; if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output; whatever the combination, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be enabled together".Nothing in the reference manual says anything about this limitation. I'm trying to use this function to generate a single pulse on channel 3, and I don't understand why the HAL API doesn't allow this.I'm using the latest FW package FW_F0 V1.11.4 for the STM32F0xx chip series, but I've seen identical code for the FW package for the STM32H7xx series chips.
Hi,Defining a host of an HID wired mouse, on an stm32f4 MCU works great.Trying to use a wireless mouse doesn't work at all.The wireless mouse comes in a pair with a keyboard. Pressing a button on the wireless keyboard works well but clicking/moving the mouse provides no result.Did someone encounter a similar issue?Thanks guys!
Hello,I got the NUCLEO-H723ZG board to save ADC data fast enough. I don't have any experience with ETH. So I wanted to begin simply. I tried to use some tutorials and examples but the board doesn't respond to pings.I tried:1- The "LwIP_UDP_Echo_Server" example on STM32CubeIDE2- https://community.st.com/s/article/How-to-create-project-for-STM32H7-with-Ethernet-and-LwIP-stack-working3- https://controllerstech.com/stm32-ethernet-1-connection/None of them worked. What should I do? I just want to get ADC data.
Good morning, I'm trying to run the b_u585i_iot02a_ntz stm35U5 project from X-Cube AWS, but I get errors while running it. I Should chose the Flash_ntz file in the "run configurations" but I only see the Flash_ntz.launch which is not the bin file so my running code is not working. Are there any configurations in the "run configurations" windows I should do ? I watched a video about that , read all the README file and I still not progress. I need your help because I'm on since 4 days
Hi, We have an PD source application on our custom board with STM32G071GBU6N. We use STM32 MX to genereate a PD source application (PD Core 4.1, device 3.4.1) following steps on STM32StepByStep:Getting_started_with_USB-Power_Delivery_SourceAfter filling missing bits(Voltage monitoring and vbus switch and other DPM bits). we can make sink and source to enter a explicit power contract. but the PD stack will issue a PD hardreset every 14 seconds without any CAD events. After few days of debugging, we finally resolve the issue by replacing PD stack library (USBPDCORE_PD3_FULL_CM0PLUS_wc32.a) from STM32 MX (4.1) with x-cube-tcpp_v4.0.0 (4.0) one.Any sugguestions of starting our software project from STM32 generated one or from x-cube-tcpp_v4.0.0?RegardsSteven
I'm a newbie to STM32 programming, but have 25+ years in desktop development.I've created a PCB with a STM32F042F6 mcu (based on a working design). I added pins for a SWD port and I have an LED connected to PortB1.I've used STM32CudeIDE to create a simple program to blink the LED every 500mSec.I've connected using the black_magic probe and can get the LED to blink in debug modeStartup code for the debug configuration isset mem inaccessible-by-default off target extended-remote /dev/ttyACM0 monitor tpwr enable shell sleep 5 monitor swdp_scan attach 1Anyway this bit works.My question is, how do I get this to work in the release mode. If I power cycle the target board the program does not restart automatically.I also connected via GDB (without the STM32 IDE) and while I can connect and load the elf file, after "run" the GDB console remains unresponsive to further commands.
..
Posted on May 30, 2018 at 12:08Hi everyone,We are using the STM32F427.We have devices that need to work synchronously.So we decided to use PTP but we have no experience in this matter.I have reviewed the AN3411 document to learn how to use PTP.But I do not fully understand and I can't implement it.I could not find the project mentioned in this file.I also could not find the PTP libraries.(ptpd-1.0.0 & ptpd-2.0.0).We are currently using our devices as a tcp server.We don't use RTOS.Any help would be great.#an3411 #ieee-1588 #ptp #stm32f427
Several years ago we started a project using an F429 main and 8 F413 slaves, communicating over an SPI bus. In 2020 we stopped the project because of too many problems with ST-provided drivers/stacks, especially Ethernet/lwip and USB, and very poor FreeRTOS support. Lots of Ethernet driver problems, and the USB CDC stack had a nasty habit of losing packets. Fixing all the bugs was going to cost us more than building our application - way too much expense, time, and aggravation.A couple of things have progressed since then:1) I know a lot of work has gone into improving the Ethernet drivers. On the lwip mailing list, the number of painful pleas for help from suffering STM32 users has gone down a bit (maybe not for the H7).2) tinyUSB has progressed considerably; we're using for another project and so far, so good. It still doesn't support OTG, but there's a workable patch.I'm asking the community if folks are successfully using STMF4, in FreeRTOS applications, including:a) lwip with STM
Using the B-L462E cellular board with Azure NetX MQTT code to connect to, publish and subscribe topics on my own mosquitto server. How can I reconnect to MQTT after the server restarts? Code is attached. When the mosquitto server is shut down, the code loops, failing to connect via this call nxd_mqtt_client_login_set(&mqtt_client,MQTTNAME, STRLEN(MQTTNAME),MQTTPASS, STRLEN(MQTTPASS)). After failing, nxd_mqtt_client_disconnect(&mqtt_client); and nxd_mqtt_client_delete(&mqtt_client); are executed. I expect the client to disconnect the old socket and reconnect with a new socket but it does not work. The board/app must be reset/rebooted to again connect.
In a current PCB design, SWD debugging is very erratic. Stepping through the code line-by-line works fine, but executing multiple lines will sometimes result in an apparent crash with a call stack like0x08061300xfffffff9which doesn't make any sense for a few reasons:If this were actually a hard fault, the hard fault handler would execute.The location of the hard fault hander is in tact in the vector table, and the handler itself is in memory. There has not been any corruption. I can see it in the disassembler.The location that is pointed to by the last stack entry is outside the range of the code footprint in RAM/FLASH.So I thought maybe SWD comms are sketchy, but I tried slowing them right down to 140 kb/s and they aren't any more reliable.Has anyone seen this behaviour?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.