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
It might as well be a dumb question, but is it in any way possible to connect and communicate with a Octo SPI slave with the dual Quad-SPI interface available on the STM32H753ZI?Thanks and best!Sam.
I would like to share the result of my efforts to run STM32H723VET6 and DP83848 together.https://community.st.com/s/article/How-to-create-project-for-STM32H7-with-Ethernet-and-LwIP-stack-workingI made the following changes in the settings here.Since 0x30040000 address is not defined on my processor, I have configured the MPU, ethernet and lwip memory settings to start at 0x30000000.Since there is nothing that can be done for DP83848, I created the project by selecting the PHY settings LAN8742.first i tried the code of a couple of people who set the LAN8742 settings but they didn't work.then an absurd idea came to my mind. Replacing LAN8742 codes with codes generated for STM32F4 and DP83848.STM32F4 uses the HAL library and several definitions to communicate with ETH PHY instead of the stupid and difficult to modify library.With a little effort, I obtained the ethernetif.c file below.I wonder why I had to create an STM32F4 project in order to use ethernet in STM32H7.
Hi, I'm having issues getting self-signed certificates to work with NetXDuo Secure.I started with the MQTT Secure Example which uses a mosquitto.org certificate and that works fine. However if I try to replace the mosquitto certificate with my own generated using OpenSSL, it's not accepted and nx_secure_x509_certificate_initialize returns invalid. Digging further into the source code, the actual error is in _nx_secure_x509_extract_oid_data which returns NX_SECURE_X509_FOUND_NON_ZERO_PADDING when extracting the RSA Bitstream.Comparing my own certificates with the mosquitto.org one doesn't give any obvious clues and I don't know enough about the structure of binary DER encoded certificates to delve any deeper at the moment.Does anyone have a 'known good' set of OpenSSL commands which generates a certificate which will parse successfully in NetXDuo please?
"I am attempting to connect the NUCLEO-H503RB board and program it through the command line on Ubuntu. I have installed the latest STLink driver from GitHub and built it. However, I am encountering an issue where, upon trying to program the flash memory, an 'unknown device' error is displayed. I have verified my chip ID as 474 using stm32cProgrammer. My goal is to achieve successful programming using the STLink terminal command line.
I would like to remotely update the firmware of my STM32WLE5. I can transfer new binary file from the server to the STM's SRAM using my custom link only, which means I cannot utilize other native update procedures provided by STM, such as UART. However, I'm unsure about what steps to take with the data once it's in the SRAM.Does anyone know how to update the firmware using the data stored in the SRAM?Thank you for any help.
Team,i'm trying to store data - by use of HAL lib - during Hardware,Memory.. and so on Fault Interrupt routine. Idea is to write some data at the very end of flash - allowable area. So, the code is tested druing normal operation. However, placed in Hard Fault ISR its stooped/ failed during erase inside function HAL_FLASHEx_Erase(addr,bank) precisley at line __HAL_LOCK(&pFlash);I was trying to figure it our on my own, however seems i'm not able to clear the Flash SR register bits - or IDE is not refresing correctly - doubtful. FLASH->SR ^= 0x3FF; //or SR=0x0 // clears error bits in SR regFLASH->CR ^= 0x8404; // clears mer1 mer 2 and bker bitInitializing erase procedure sets WPRERR bit anyway and after erase, errors are set back. Result is, flash bank is not erased nor data stored. Im woring on STM32G474Can anyone support me ?
HiI have a project running for the last 2 years: STM32H7, CubeMX for setup.I have 6 ADC channels on ADC3, running in "Regular, non-continous conversion". This works.But now I want to run the application from the external QSPI FLASH. This works almost OK, but the ADC sampling fails: It only samples the first channel in the sequence of 6 channels. The next is never started.I have made no changes to the GPIO setup, except some unused pins, which are configured as analog inputs pr. default in the HAL init. This does not work with the QSPI FLASH interface, because it somehow changes the memory mapping setup in the (bbot)loader. So I just remove the init of the unused pins like this in gpio.c:/*Configure GPIO pins : PA0 PA3 PA4 PA5PA6 PA8 */GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_8;GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;GPIO_InitStruct.Pull = GPIO_NOPULL;// HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);/*Configure GPIO pins : PB0 PB1 PB2 PB10PB11 P
Hi,LWIP: what is the difference between udp_send() and udp_sendto()?What are the use cases for each? The LWIP_RAW_CLIENT ECHO uses udp_send() but also uses udp_connect. Whereas udp_sendto() does not need to connect?Does anyone have example? Thanks
when i run if "(HAL_UART_Init(&huart8) != HAL_OK)" get blocked this code which part of code could wrong (RCC? SystemClock_Config?) ?(In stmcube ide no hay error en principio).static void MX_USART8_UART_Init(void){/* USER CODE BEGIN USART1_Init 0 *//* USER CODE END USART1_Init 0 *//* USER CODE BEGIN USART1_Init 1 *//* USER CODE END USART1_Init 1 */huart8.Instance = UART8;huart8.Init.BaudRate = 115200;huart8.Init.WordLength = UART_WORDLENGTH_8B;huart8.Init.StopBits = UART_STOPBITS_1;huart8.Init.Parity = UART_PARITY_NONE;huart8.Init.Mode = UART_MODE_TX_RX;huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;huart8.Init.OverSampling = UART_OVERSAMPLING_16;huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;if (HAL_UART_Init(&huart8) != HAL_OK){Error_Handler();}
hello, i have a problem. When I make my LWIP configurations and try to ping my development board over the computer, I see a different address, not the IP address I set for my card. What is the reason of this? Do you have an idea?When I ping the IP address of the computer's ethernet port, I can successfully get a response.
Hi,It tooke me several days to found that there is wrong handling of setup packet with data in HAL driver.On windows I'm sending setup packet like this: uint32_t data = 0xAABBCCDD; libusb_control_transfer(mDeviceHandle, LIBUSB_ENDPOINT_OUT | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE, 0xAA, 0, 0, &data, 4, 0); Later in hal driver in PCD_EP_ISR_Handler function there is check for status bits: wEPVal = PCD_GET_ENDPOINT(hpcd->Instance, PCD_ENDP0); if ((wEPVal & USB_EP_SETUP) != 0U) { ... } else if ((wEPVal & USB_EP_CTR_RX) != 0U) { ... } Which leads to:receiving setup packet without datareceving data without setup fields Additionally in stm32l4xx_ll_usb.c driver in USB_EPStartXfer functionThere is handling for IN endpoint (call to USB_WritePMA) but there is no handling for OUT endpoint - no call toUSB_ReadPMA
Hello, im inquiring after thinking about it for a few days.please help me.this is my dev environment CMSIS_V2TouchGFX designer : 4.22CubeMX : 6.9.0CubeIDE : 1.13.1DevKIT : Stm32H750B-DKi want to do a ping test on this boardi ran it with reference to this example, but it doesn't work.(https://github.com/GrzHeller/STM32H750B-DK_TouchGFX_FreeRTOS_MQTT_Example)i don't know what the problem is.Please help me Thank you
Hello all, I am new to embedded programming and I am practicing embedded program and trying out new things. Recently I was trying to create a new text file on my SD card by referring this video posted by ST :- https://www.youtube.com/watch?v=I9KDN1o6924The problem that I am facing is that my code gets stuck in the error handler. I debugged my code and I noticed that it jumps into the error handler after executing this particular line: if(f_mkfs((TCHAR const*)SDPath, FM_ANY, 0, rtext, sizeof(rtext)) != FR_OK){ Error_Handler(); } ...... (From the video)I tried disabling the DMA but still it won't work. For some instance, when I drag and drop the .bin file directly into the Controller's driver to flash the program onto the memory chip, that is when I can see that the code is able to write some data into the .txt file, but still the code is not capable of creating a new .txt file and write the data into it. The code won't execute at all if I
Hi.I am trying to implement RTC smooth calibration on STM32F446 MCU based board. Did look at the example "Real Time Clock (RTC) software expansion for STM32Cube (AN4759)" where smooth calibration is implemented using two timers. The first one counts up to 32 1Hz input pulses and the second one counts number of LSE ticks during that time. Counts are then used to speed up or slow down RTC.Example uses STM32L476RG Nucleo board which has TIM2 TIM2_ETR connected to LSE. Which means that TI1FP2 can be used as TRGI as up count (CK_PSC) to be able to count LSE ticks.But STM32F446 does not have such timer. Its TIM5 can have LSE as input on channel 4, but it can not be used as an input to TRGI. Only channel 1 and 2 can be inputs to TRGI mux.Does anyone know a solution/idea for this?Should/could it be done in a different way?Another way would probably be to use a reference clock (50-60Hz), but I only have 1Hz. Would that work maybe?Thank you very much for any comment.
Been trying to debug this issue and so far I haven't come up with an idea on why the system reboots due to a SW reset. (It acts like I have a watchdog enabled since it will reboot on any HAL_Delay loop) (Reset reason is 0x1400 0000)Been wondering if the CPU is even supporting the Dual Boot feature since I see the 1M part doesn't even show the dual boot bit in CubeProgramer while the 2M part does. But both seem to have the issue with the SW reset. Some info about the CPU settings I have BOOT_ADD0 set to 0x2000.Dual bank and dual boot are both set to 0 while the rest of the option bits are left at default. The protection level is left at default.Also attached is a cube file that I have used to to create the issue.
Hello, I'm trying to use 12 vl53l1x(ToF) sensors with the stmf407vgt6 custom card. In addition, this board has a 5A 2 channel motor driver. I think the i2c data is getting noise during the motor start cycle. I tried to reduce the noise with filters (FIR, IIR etc.) but I haven't been able to do it yet. How can i fix this problem?
Hi,I'm playing with the LwIP stack on an STM32H723 Nucleo. I did everything regarding the variable placement, MPU config in the ram that needed to set up LwIP. With static IP it works just fine. I could ping it and I could implement an UDP server example. After it I thought I try the DHCP. The problem I do not get an IP from the DHCP server. The port on PC is set to have DHCP (tried on multiple PC) and what I see in WireShark is that the nucleo boradcasts DHCP Discover packets, but never gets DHCP Offer packets. And it is the same on multiple PCs, so I suspect something is wrong on the nulceo side. Is there any idea how to track the issue? In the "gnetif" main variable the IP, gateway, subnet is set to zero, no IP assigned to the device.
Hi.I have few questions regarding SDIO and SD card write performance.I am using STM32F446 MCU and a simple application using polling SDIO that writes (appends) 32 blocks (16KB) of data to the SD card every 20ms. I do not use filesystem, just writing RAW bytes. Application increases block address offset for 32 before every call to multi block write.Problem is, that sometimes multi block write fails - times out. It is rare and does not look to have any pattern - looks random.It times out in a block data writing loop because SDIO_STA_TXFIFOHE becomes 0 during transfer. So, it may write few blocks and then it is stuck until it times out.Data transfer timeout in DTIMER is set to 0xFFFFFFFF.I have few questions if there is anyone with more experience with SD cards:1. Since I do RAW writes, should writing duration be more or less constant? (around 3MB/s)2. Why would SDIO HW and/or SD card not be ready to receive new words in FIFO once transfer is already in progress?3. What would be the best
Our main board uses two STM32's: an STM32L5 which does most of the processing, and a STM32G071 which is used strictly as a USBPD port controller for two ports. The L5 can assert / deassert the G0's BOOT0 pin, in order for the G0 to enter bootloader mode for firmware updates. However, in testing, the G0 always seems to come out of reset in the Main Flash memory boot area. Below is the circuit we have implemented: I can confirm the STM32G0 BOOT0 pin goes high and low as expected. I can also confirm the L5 can reset the G0 as expected. For the G0 Option Bytes, I have BOOT_LOCK=0, nBOOT1=1, and nBOOT_SEL=0. My test procedure is as follows:- L5 asserts the G0 BOOT0 pin high- L5 puts the G0 into reset (NRST pin goes low)- L5 takes the G0 out of reset (NRST pin high) However, the G0 always seems to come out of reset into the main flash memory area. What am I doing wrong here? I believe I am following the Boot modes of the G0 properly:  
In the comment to the functions it says (stm32f4xx_hal_smbus.c) * @PAram DevAddress Target device address The device 7 bits address value * in datasheet must be shifted to the left before calling the interface I suspect this was copy & pasted from the I2C driver. When not shifting the address the driver works.
I have the STM32H73x.svd from then STMCubeH7 pack version 1.9.0 but it is far from compete/correct.Some examplesAHB3 clock enable /reset registers do not have any of the OCTOSPI items in there, but has a QSPI entry.Similar some timer enables/reset are in the same case (23 and 24 specifically) the Flash ACR register field for Latency is the incorrect length (3 when it should be 4)
Hi All,Cube MX version - 6.9.0Software Package version - 1.3.0I am using STM32U575i-EV evolution board and trying to run the Ux_Host_MSC example code.I generated the code using STM32 Cube Mx using example selector option, I generated the code for IAR.As per the below readme file./STM32Cube/Example/Ux_Host_MSC/readme.htmlI have configured or connected below jumpers.JP25 : UCPD_5V JumperJP6 (UCPD_SRC) : Please on this jumper UCPD_SNK02 is mentioned on board.JP14 and JP15 : both are connected to 1-2.after flashing the code I am hitting the hard fault, could you please let me know which are the settings I might need to do if I generate the code using cubemx. currently I have not done any modification through cubemx.
Hello, Please add an empty function on HAL for other MCU's what doesn't have that functions.For example HAL_ICHACHE_Enable() for F1 series. This feature can help to easy porting to other series of MCUs.Thanks.
I am working on a project where I need to synchronize a PWM signal generated by an STM32 microcontroller with an external signal. To achieve accurate synchronization, I believe I need to implement a drifting correction algorithm. I am seeking guidance on how to achieve this with the STM32 microcontroller. Can anyone suggest an algorithm or approach to achieve this synchronization and drifting correction effectively? Anyone have any code examples or code snippets that demonstrate synchronization with an external signal and drifting correction using the STM32 microcontroller? Are there any open-source libraries or resources available that can help me achieve this synchronization?Thank you for your help and guidance in advance! I appreciate any insights or experiences you can share to assist me in accomplishing this synchronization and drifting correction task with the STM32 microcontroller.
I am trying to implement the BLE stack (WB5 series) on an RTOS. I work with stm32wb5mm-dk evaluation board. I have a problem with the callback functions that are not being called in the new implementation. In an ideal world it would work like this : after the initalisation and starting the main function , TlUserEvtReceived needs to be called to handle the present events IPCC is there because wb5 has 2 cores.Sure enough the rtos handles the interrupts now. but tbh I can't tell whether they work fine or not.Status of the project: it is running( runs the sequencer) without calling the ble stack ( NB: the initiliazation is done correctly ).what could be missing. what should I check? how can I solve this issue? Thank you for your help
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.