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
Dear Community,I keep getting an error message when installing the latest STM32 virtual com port driver on both Windows 10 and Windows 11 - can anybody suggest a solution?Thanks,Sascha
I just read a post where @pavel suggested using Upwork or Fiverr to get some programming work done. These sites might be a big help to me if I can get a programming job done by someone else without a lot of overhead on my part. I'd appreciated any comments from anyone who has used these (or similar) services.Here are 2 tasks I'd be interested in getting done via Upwork or Fiverr and I'd also appreciate any comments on whether it might make sense to outsource these. I'm sure more details about the work package will be required but this gives the basic idea.1. Write a generic I2C driver for the STM32H7A3 MCU. The driver (or drivers) should use DMA or Interrupts in a non-blocking way or read/write where the transaction blocks until complete. The driver(s) should be able to read a defined number of bytes from a consecutive sequence of addresses, or a defined number of bytes from the same address (one of my devices works this way). I'll provide a STM32CubeMX proj
I generally prefer the STM Low Level drives and chose that driver family for most peripheral in CubeMX Project Manager->Advanced Settings->Driver Selector. There seem to be one disadvantage: the IRQHandlers are not generated as weak which I think happens with the CubeMX generated HAL IRQHandlers. So with the LL drivers, I have to add a line of code to the CubeMX generated stm32h7xx_it.c file. Like this: void USART1_IRQHandler(void) { /* USER CODE BEGIN USART1_IRQn 0 */ myUSART1_IRQHandler(); /* USER CODE END USART1_IRQn 0 */ /* USER CODE BEGIN USART1_IRQn 1 */ /* USER CODE END USART1_IRQn 1 */ } Is there a way to tell CubeMX to generate the IRQHandler stubs as weak?And what does the CubeMX Project Manager->Advanced Settings->Register CallBack disable/enable setting do? I've generated code with this enabled and disabled and don't see any obvious difference.Thanks
I'm trying to connect to a WPA-Enterprise network (EAP-TLS) with the STWINBX1 board. And in this context, I have several questions aboutabout using the mx_wifi driver.I'm basing my project on the Nx_WebServer and Nx_MQTT_Client examples from the STM32Hotspot repo.The mx_wifi driver (v2.3.4) seems to include functions and structures for connecting to an enterprise WPA network.However, when using them, it seems that the certificate is too large to be transmitted (2167 bytes for a limit of 1500).This limit is set in mx_wifi_conf.h by MX_WIFI_BUFFER_SIZE. Its value can be increasedby increasing that of MX_WIFI_MTU_SIZE, but this leads to runtime errors. Another solution could be to unable the bypass mode, but doing so leads to compilation errors in the mx_wifi.c file.Is there a middleware like nx_driver_emw3080.c that supports WPA-Enterprise authentication?Should bypass mode be removed for this use case?If not, should the MX_WIFI_MTU_SIZE value be modified? If so, what other changes need t
Hi,a new STM32H5 based design (Azure RTOS) needs two USB host ports. We want to use a hub.To give this a try I modified UX_Host_DualClass example from STM32H573I-DK /STM32Cube_FW_H5_V1.1.0 to run on my NUCLEO-STM32H563ZI board. I removed all the USBPD code and started the host stack manually. I installed theUSB_USER jumper AND STLK jumper to get a fixed VBUS output whilesupplying the board via the ST-Link interface. That's probably not theidea of the board, but it works for my test.Now HID devices and mass storage devices are detected correctly and demoworks as expected.Next I added hub class support to the demo via CubeMX.Any hub is now correctly detected: I print its VID/PID.But enummeration of any device behind the hub fails!In ux_host_stack_transfer_request.c: /* Send the command to the controller. */ status = hcd -> ux_hcd_entry_function(hcd, UX_HCD_TRANSFER_REQUEST, transfer_request);fails with status = UX_TRANSFER
I have STM32F103C8T6 development board (like this: https://www.rogerclark.net/wp-content/uploads/2014/11/STM32Mini.jpg) which can be programmed by USB interface. I programmed it several time before, but now I can't do this. When I connect it to the PC, I get a warning messege (pinned) and can't load firmware to the STM.
I have a new (to me) STM32H563 Nucleo board and I just need a bit of help with the new style DMA system. I haven't been able to find any reasonable examples for the H5 or U5 that have the new DMA controller, so I'm asking for help here.The end goal is to periodically pull data off of an external SPI mounted ADC using DMA, triggered by a timer.I have timer2 set up to generate a 1kHz output pulse. I wish to route TRGO from TIM2 to trigger a DMA transfer on an edge pushing, say, 3 bytes into SPI2 transmit data register to force the data out of the ADC.So far I have been able to get the timer going (actually I am going to use 2 synchronized timers, but I've stripped the sample project to just use TIM2). I have the SPI set up the way that I need, with hardware NSS, and a 20-bit transfer, and I can transmit using HAL_SPI_Transmit() and the appropriate wave form shows up on my oscilloscope. I've set up the DMA linked list as much as I've been able to figure it out and linked the list to the D
Hi all,I wonder if that's something that has been overlooked during a HAL code review (and could be improved in next releases)? Or can you suggest another way of tracing ALL HW registers writes in STM32 for educational/debugging purposes?For embedded SW professionals, when writing own code, it's sometimes useful to do some kind of reverse-engineering for available standard SW modules or libraries. That can be a valuable help when their own code is not working as expected.I wondered if there was an easy way to trace all HW registers accesses e.g. during the system startup and initialization. What I did (in a nutshell) was I instrumented SET_BIT(), CLEAR_BIT(), WRITE_REG(), CLEAR_REG(), MODIFY_REG() macros that are found in stm32l4xx.h (in case of my board) so that the macros were writing registers addresses and values in a global array. Just to illustrate the idea: #define WRITE_REG(REG, VAL) ((REG) = (VAL)); \ if (g_logOn) { \ g_logTable[g_index].op = (uint32_t) 'W'; \
I'm trying to communicate with an external device with a USB-C Device interface in CDC Serial class.I'm following the steps as shown in the videohttps://www.youtube.com/watch?v=V3sMN-ErKPw&list=PLnMKNibPkDnFFRBVD206EfnnHhQZI4Hxa&index=20However, in my debugging, I cannot access the 'userFunction();' function."void userFunction(void){static uint32_t i = 0;static uint8_t init_receive = 0;if(Appli_state == APPLICATION_READY){if(init_receive == 0){USBH_CDC_Receive(&hUsbHostFS, rx_buffer, 9);init_receive = 1;}if((HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_13) == GPIO_PIN_SET) && i>0XFFFF){USBH_CDC_Transmit (&hUsbHostFS, tx_buffer, 9);i=0;}i++;}}Appli_state is always at '0' (APPLICATION_IDLE).Can someone help me with this issue?I'm attaching files that might help with the analysisThanks in advance!
Hello!I'm working with NUCLEO-G0B1RE and X-NUCLEO-SNK1M1 boards. I've done the initial setup to work in USBPD and USB_HOST mode, Class Host Supporting ALL Classes in STM32CubeMX.I haven't modified the generated code, and while debugging the 'USBH_Start()' function, the code remains stuck in the 'HAL_GetTick()' function, specifically in the line 'while ((HAL_GetTick() - tickstart) < wait)'.Does anyone know why this is happening?Would it have something to do with the clock system (SysTick)?I've attached the '.ioc' file for review.
I call the following function:neai_classification(input_user_buffer, output_class_buffer, &id_class);When the program runs this function, it enters the following function:void HardFault_Handler(void) This is the first time to use, if you need other information to help determine the fault location please leave a message, thank you very much The software used is as follows:STM32CubeIDE 1.14.0NanoEdgeAIstudio 4.3.0 The following hardware is used:NUCLEO-STM32F746ZGT6
Hello Team, I am trying to configure ethernet as RMII mode without RTOS IN NUCLEO-H745 but unable to ping IP address in command prompt also disabled the interrupt. Are there any bugs in ethernet library files? In my code I am unable go inside while loop of MX_LWIP_Process(); it will struck in MX_LWIP_Init(); function. Is there any changes I need to do.With RTOS it's working PFA Best Regards,Gagan Gowda
ES0430 - Rev 8 - March 20232.7.9 An ADC instance may impact the accuracy of another ADC instance at specific conditionsHas anyone implemented this item listed in the Errata sheet for STM32G4 series for ADC section? It asks for:Ensure that conversions by different ADC instances do not occur concurrently. This can be achievedthrough trigger sequencing by the application software. STM32G4 Errata sheet
Hi all,I want to connect an STM32H573 device to a LAN8742A to create an Ethernet interface.Is there any board hardware guidelines available for this ?The LAN8742A is used in REF_CLK OUT mode (50 MHz clock output from the PHY routed to the RMII_REF_CLK input of the STM32).When looking at the datasheet of LAN8742A, page 110 of the datasheet TX, TXEN setup time to rising edge of REFCLKO is 7.5ns minimum. (Tsu)When looking at the datasheet of SMT32H753VI for rev V electrical characteristics Td(TXD) is 11ns maximum (transmit data valid delay time).Then for a 50MHz clock (20ns clock period), the maximum propagation delay of REF_CLK_OUT from LAN8742A to STM32 + maximum propagation delay of TX data from STM32 to LAN8742A should be lower than : 20ns - 11ns -7.5ns = 1.5ns.There is no information into STM32H753VI datasheet from RMII_REF_CLK rising edge and invalid TX data. This information is needed to compute minimum propagation delay of REF_CLK_OUT from LAN8742A to STM32 + minimum propagation d
Hello all,Can anyone provide example code - Enhanced secure key storage using stm32u585? Thanks in Advance,Surya S
I'm trying to use the USB host mode on my stm32F401RET6 developer board and i watched few tutorial videos. In those videos they acivated USB_HOST as HID(Human Interface Host class) and in platform settings there is something called Driver_VBUS_FS. IN tutroial videos they used STM32f407VG developer board and in user manual there is PC0 pin that controls the pump charge of Vbus (i think). But in STM32f401RET6 developer board there is no pin is mentioned as pump charge of Vbus. I read the datasheed, usermaual and pragramming manual but i saw nothing. I dont know is there such a pin in my board. If there is one can you guys tell me which one. Im new in this subject i dont know if Driver_VBUS_FS is important or not. I would appreciate any help.
I am using STM32H747I-DISCO board where the stack and heap memory allocated in SRAM , but I want to use external SDRAM as stack and heap memory, can any one please help me how to configure external SDRAM as main data memory instead of SRAM.
I am using STM32H747I-DISCO board, I want to use external SDRAM for bss and data region and I called the SDRAM initialization function inside the SystemInit() function and I tried with the debugger point it will go to hard fault when debugger point hit the SDRAM initialization function. and Checked the SDRAM initialization by read and write it is working fine, please anyone suggest how to use external SDRAM for bss and data memory.
I have spent over a week trying to get the USBX CDC ACM virtual com port to work on a STM32F7 family nucleo-144 board. I'm using an STM32F767 as a representative processor. I've tried multiple examples and approaches with no success. The device enumerates correctly and the Windows 10 driver says it loads successfully. But the terminal program times out when trying to connect.Here is my most current approach. I took the STM32H723 Nucleo USBX CDC ACM example and modified it to loop input from the USB virtual com port back to the USB virtual com port. It works great. I made the USBX code portable to a STM32F767 Nucleo board project with adding the correct conditional compilation to adapt to some different USBX versions and the full speed interface on the F767 versus the H723. The F767 project was started from the USB HID Example. The HID example seemed to work. Project was modified to be make it compile and run with the CubeMX generated code. See comment in CubeMX g
Hi, I got a Nucleo F103RB, and I am running the very same software I run on my Nucleo F7ZI, and I am getting this weird hard fault that always. I do not enable RTC, but right before the fault happens, the ICSR register tells there is a pending interrupt, number 3, that is the RTC:I am inside an SVC Handler. I haven't enabled the RTC timer. I have tried to disable it, have also tried handle the interrupt, with no success. Am I being deceived by the debugger? Any help is much appreciated,Thank you.
Hi together,after working more deeply into the link status register handling of Ethernet PHYs i did notice that the Link Status bit in the Basic Status Register (BSR) is Latched Low. That is also the reason why we need to read it twice. The ST driver just uses the value (ignoring the intermediate value).This Latch mechanism means that we can detect an intermediate link down (link down and up again).Now I'm thinking about how to handle this situation properly:Any network parameter like Duplex mode or status changed need a call to HAL_ETH_SetMACConfig.As of HAL code i need to call HAL_ETH_Stop_IT prior calling HAL_ETH_SetMACConfig and HAL_ETH_Start_IT. So an intermediate link down will maybe drop already received data or at least interrupt a already (re-)established connection.The intermediate link down in general will need a netif_set_link_down() and a netif_set_link_up which re-trigger things like DHCP, AutoIP, gratuitous ARP, ... When we have very short intermediate link dow
Hello!I am working with the STM32H747i-Disco board, my aim is to create ethernet connectivity between the board and the PC, as a first step to send a ping from the PC to the STM32H747i-Disco and get a response. My cubeMX version is 6.2.1, the H7 firmware repository is version 1.9.0.first, i have made the nessecery HW modifications to the STM32H747i-Disco board in order to connect the proper ethernet pins to the MCU. (SB8 closed, SB21 open, R87 open, SB17 closed).i have defined a cubemx project according to the instructions in this link: https://community.st.com/s/article/How-to-create-project-for-STM32H7-with-Ethernet-and-LwIP-stack-working . with two exclusions:The ethernet is defined in RMII mode (since MII isnt possible on the STM32H747i-Disco). Clock source is HSI (and not HSE) - but still with 400 MHz for the M7 cortex (the ethernet is connected to the M7). I Also tried defining teh HSE option, it didnt change the outcome.i configured the PC ethernet connection to a static IP (192
I'm building up an app on the STM32L4R9-Discovery board that needs a lot of IO: UARTs, USARTs, I2C, SPI,RTC, FatFS on the SD Card and others. I'm pretty new to the STMCubeIDE and C/C++ world so I've build up several test apps that start for the Discovery board based on examples from the HAL library. Now I'm trying to combine my SD card example with my RTC example. They work find separately but when I try to put them together I get a HAL_Timeout error in the RTC_EnterInitMode method in the STM32L4xx_hal_rtc.c file. This happens with the STMCubeIDE and in VisualGDB.HAL_StatusTypeDef RTC_EnterInitMode(RTC_HandleTypeDef *hrtc) { uint32_t tickstart; HAL_StatusTypeDef status = HAL_OK; /* Check if the Initialization mode is set */ #if defined(STM32L412xx) || defined(STM32L422xx) || defined (STM32L4P5xx) || defined (STM32L4Q5xx) if ((hrtc->Instance->ICSR & RTC_ICSR_INITF) == 0U) { /* Set the Initialization mode */ SET_BIT(hrtc->Instance->ICSR, RTC_ICSR_INIT);
Hello, I have been working on eth creating a web page. I want to know if I should use php to connect to the database. (My database is on the website of the company I work for that collects sensor data.) I've tried it and it doesn't work. I tried using javascript but it didn't work. I would like to connect to a database using web development. Instead of using C language
Hi there,I am trying to interface to a s25fl128s EEPROM device. I understand that there is built in support for this SPI interface for STMCubeIDE. Can someone please point me in the right direction.In my search for a driver for the EEPROM I cam across this linkhttps://github.com/STMicroelectronics/stm32-s25fl128s/tree/mainWhat software pack includes this driver? What do I need to include/install for this driver support.Thanks in advance.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.