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
Please give a reference link on Stm32f429 how to interface with HP printer Usb printer class
I'm developing my first STM ethernet application and want to use it's built in MAC, from my understanding any 10/100 ETH PHY with MII or RMII should work but there's such a big list of those on market, ST Disco boards I found use LAN8740, which is expensive and somewhat hard to obtain, some tutorials I saw used LAN8720, KSZ8xxx. My main concern is if there is a big difference I'm missing out or will any of these products work same? Any experienced dev input would be appreciated on which of these IC-s is more recommended over the others.#Edit: I was planning on using F107 for it but now memory has become a concern, if anyone has a general idea of how much memory ethernet libraries usually take up, I'd love to know it.
Hi, I was able to operate the wired keyboard, and wired mouse, according to example videos.I am trying to adapt the library code to read data sent by the device, but HOST is restarting the connection every time the device sends from a different interface.The device sends data from alternating interfaces (according to the button that was pressed) but I can only receive data from the first interface. (Mini Keyboard with Touchpad). Below some data obtained from a computer.Is it possible to receive data from the second interface without having to modify the STM32CubeIDE library?The same problem occurs with mouse, unlike wired mouse, the wireless mouse has two interfaces, and without this option to read data from the second interface, it is not possible to use the wireless mouse. (Logitech M185)Thank you.(Mini Keyboard with Touchpad - Windows 10) Endpoint 0x81: Interface 1, endpoint 0x82: interface 2
Using the STM32L4S5 Discovery Kit board (B-L4S5I-IOT01A), I have gone through the sample CMAKE getting started projects from Microsoft as well as tested the STM32Cube IDE sample projects. Both packages appear to be developed by ST. The CMKAKE version actually sends data to Azure IoT Central from the sensors. The IDE samples only simulates data. With STM32Cube IDE, I was able to create a simple Azure RTOS project to send Hello World for standard output. Re-creating the sample projects for the Discovery Kit to connect to Azure IoT Central and send temp data from the HTS221 is unclear. The IDE samples don't have .IOC files to understand what components where added.Is the STMicroelectronics.X-CUBE-MEMS1 parts the correct board parts to add to the project? I attempted to add them, but the HTS221 driver looks a little different than the HTS221 driver from the CMAKE example.What component contains the WiFi driver for the board?How is the Azure RTOS SDK added to the project? Is there a softwar
I am implementing ethernet on bare metal STM32F746-DISCO board. I configured rmii, set the PHY interface and "happily" receiving packaged on the DMA buffer. Problem is that sending doesnt work. Before setting TX descriptor for first package, DMA_SR for TPS is = b110 (Suspended).First package: TX descriptor OWN status is cleared, I set the buffer size and set the first/last flag in the status word of the descriptor and after that give control to DMA by setting OWN bit.DMATDLAR is pointing to the TXDesc.also DMACHTDR and DMACHTBAR looks OK.then I set DMATPDR to 0x1 (it says set to any value) to trigger DMA check for new descriptor.DMASR never get changed: TS, TBUS or TPS. Seems like its still waiting for something from cpu?TX Descriptor never got returned to the CPU (DMA doesnt clear the OWN bit).I checked example project LwIP for verification that the board is OK, and it works fine, so something in my code is not correct.
I designed a custom board with FT4232 and EWB-STERLING MODULE.the module contains stm32f4x MCU, I struggled how to programming the MCU with OpenOCD and JTAG with (FT4232HI try to help with LAIRD but no one knows how to help me and refers me to ST.please help me I don't know how to proceed, I found something about programming but it is only the ESP32 chip.
I need to know the timing constraints for bootloading (over UART). How long must \RESET be held low to reset? How long must BOOT0 remain high after \RESET is released? I need this for the STM32L4P5, the STM32F423, and the STM32G031. I apologize in advance, since it is certainly published somewhere, but I couldn't find it.
Hi,our porject use TZEN =1;A custom Bootlaoder (secure app) is executed at begin and after we call a non secure Application.The non secure Application as already been tested/validated with TZEN = 0.This application use GPDAM channel 10 ro read data from ADC4.With TZEN = 1 , HAL_ADC_Start_DMA is not wroking.I Put GPDMA register config arround __HAL_DMA_ENABLEDMA return USEF error.Does anyone has an idea of why it fail?SRAM 1-2-3 are configure as non secure (application can read/write inside it).All peripheral are configured as non secure from BootloaderHAL_GTZC_TZSC_ConfigPeriphAttributes(GTZC_PERIPH_ALL, GTZC_TZSC_PERIPH_NSEC|GTZC_TZSC_PERIPH_NPRIV)This is DMA node configuration :pNodeConfig.NodeType = DMA_GPDMA_LINEAR_NODE; pNodeConfig.Init.Request = GPDMA1_REQUEST_ADC4; pNodeConfig.Init.BlkHWRequest = DMA_BREQ_SINGLE_BURST; pNodeConfig.Init.Direction = DMA_PERIPH_TO_MEMORY; pNodeConfig.Init.SrcInc = DMA_SINC_FIXED; pNodeConfig.Init.DestInc = DMA_DINC_INCREMENTED; pNodeConfig.In
I am using STM32F103VGT chip and custom PCB with USB, graphics LCD (FSMC mode), RTC, CRC, ADC, TIM2, TIM4 and UART3 (DMA/IRQ).When I added SDIO, one data line (poling, IRQ or DMA) and FATFS, I noticed, that after mounting, reading and writing to SD card the UART3 is dead. No transmit and no receive. (I was using UART for debug purposes and was completely stuck for whole day that SD is bad. But I found it is working- files are created, read).RTC, timers are firing, LCD display is showing new info. But the UART3 is not responding.I increased heap and stack, minimized fatfs, but UART3 is still dead. Is is possible, that cubemx, HAL and other software ignores one data line SDIO setting and re configures all 4 lines and thus killing UART3 (two pins shared)?
Hi,in RM STM32G4 (I use Rev. 7, page 1882, Figure 648 "Transfer sequence flow for I2C master transmitter for N>255bytes":The "RELOAD=0" info in last box at "N<256" is wrong.It must instead say RELOAD=1, AUTOEND=1 (otherwise Stop bit will fire immediately, and the last N bytes will NOT be sent...).(My application case is DMA tx transfer (I used 1031 bytes in total), NO I2C-restart... .)With this change then (RELOAD=1, AUTOEND=1, NBYTES= Nlast) it works perfect... .
I need to have wifi connectivity on my B-L462E-CELL1 wifi board. I am using L462_TCP_Echo_Client app as my starting point. I am using USART2 and here's my initialization code:void MX_USART2_UART_Init(void) { /* USER CODE BEGIN USART2_Init 0 */ /* USER CODE END USART2_Init 0 */ /* USER CODE BEGIN USART2_Init 1 */ /* USER CODE END USART2_Init 1 */ huart2.Instance = USART2; huart2.Init.BaudRate = 115200; huart2.Init.WordLength = UART_WORDLENGTH_8B; huart2.Init.StopBits = UART_STOPBITS_1; huart2.Init.Parity = UART_PARITY_NONE; huart2.Init.Mode = UART_MODE_TX_RX; huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart2.Init.OverSampling = UART_OVERSAMPLING_16; huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE; huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT; if (HAL_UART_Init(&huart2) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ }My external wifi module i
We have a project on an STM32H750 using FreeRTOS and I am trying to access an I2C device after the peripheral inits but before the FreeRTOS init and scheduler start in Main.c but I get no interrupts from the I2C port. I have checked that the interrupts are enabled for the port. If I do the exact same thing in a RTOS task later it works fine. If I do I2C traffic without interrupts that works fine too so the port is working. Anyone knows why?
Is it possible to flash the internal memory of a blank STM32L496ZG through USB? The device has Boot0 pulled down to GND, but all the memory banks are blank, from the application note it's unclear whether the MCU executes the embedded system bootloader in these conditions or not. From my understanding of it, since the flash memory is empty, the MCU uses the internal bootloader, and since a USB port is connected to it, it should be possible to use DFU. It is again unclear to me if it's possible to send a payload to flash the internal memory through DFU, without losing the possibility of executing the system bootloader once again.
..
Also, please add the details of bootloader entry through empty FLASH for Cat3. into RM0440.Thanks,JW
AN2606 Rev 55 Page 241/432 says "... bootloader is activated by applying Pattern 6... Table 2"AN2606 page 27/432 Table 2, Pattern 6. Boot0(pin) = 1, nBoot1(bit) = 1, nBoot0_SW(bit) = 1Boot0(bit) = 0, nBoot1(bit) = 1, nBoot0_SW(bit) = 0Other two cases are when Flash memory is empty. I do not care about those cases at the moment, but I am glad they are there. First issue:RM0444 Rev 5, Page 81/1390 there is no bit nBoot0_SW. There is also no "BOOT0" bit (There is an nBOOT0 bit)Second issue: assuming it was a typographical error, and nBoot0_SW is the same as nBoot_SEL it still does not work. nBoot_SEL is defined on page 82/1390 as Bit 24 nBOOT_SEL: Boot0 signal source selection This option defines the source of the BOOT0 signal: 0: BOOT0 pin (Legacy mode) 1: nBOOT0 option bit There is a Table 8 on page 66&67 of RM0444 that says to boot into system memory (which I assume is the Bootloader, why not use the same names across documents?) BOOT_LOCK = 0, nBOOT1 = 1, BOOT0 = 1 nBOOT_SEL = 0,
Does anyone have experience running CANopenNode together with FreeRTOS?Is it enough to use CO_LOCK_CAN_SEND, CO_LOCK_OD and CO_LOCK_EMCY when accessing the OD variables from other tasks?
Design phase of project and looking to add self test to a project using a STM32L476xx.STM32-CLASSB-SPL looks like the best way to achieve this.Can't fathom from the literature if the STM32L4 is compatible with these libraries.I fear it isn't.
Hi,I use the NUCLEO-F091RC, STM32CubeIDE with the MCU Package 1.11.3 and FreeRtos.The I2C1 is used with an Eeprom. So I would like to use the function HAL_I2C_Mem_Read_DMA as it is shown for example STM32Cube_FW_F0_V1.11.3\Projects\STM32091C_EVAL\Examples\I2C\I2C_EEPROM\Src\main.c:/*##-3- Start reading process ##############################################*/ if (HAL_I2C_Mem_Read_DMA(&I2cHandle, (uint16_t)EEPROM_ADDRESS, 0, I2C_MEMADD_SIZE_16BIT, (uint8_t *)aRxBuffer, RXBUFFERSIZE) != HAL_OK) { /* Reading process Error */ Error_Handler(); } /* Wait for the end of the transfer */ while (HAL_I2C_GetState(&I2cHandle) != HAL_I2C_STATE_READY) { }But if I run the code it hangs in the HAL_I2C_GetState loop. The SDA/SCL lines look fine with the oscilloscope. And at the end the software does jump into the I2C_DMAMasterReceiveCplt function (file stm32f0xx_hal_i2c.c).I would expect that in function I2C_DMAMasterReceiveCplt somewhere set hi2c->State = HAL_I2C_STATE_READY
Can STM32 USB device (ACM) be configured as a LOW SPEED device? It seems like USB SW and HW doesn't support configuring a low speed ACM device. Any help is appreciated in advance. From page 1953 of Ref. Manual:
Dear AllI am working on STM32G431 trying to implement ADC using DMA in Zephyr framework.Below is my code,#include <zephyr.h> #include <sys/printk.h> #include <drivers/adc.h> #include <stm32g4xx_ll_system.h> #include <stm32g4xx_ll_dma.h> #include <stm32g4xx_ll_adc.h> // Rank and sequence definitions for STM32G4 from adc_stm32.c Zephyr driver #define RANK(n) LL_ADC_REG_RANK_##n static const u32_t table_rank[] = { RANK(1), RANK(2), RANK(3), RANK(4), RANK(5), RANK(6), RANK(7), RANK(8), RANK(9), RANK(10), RANK(11), RANK(12), RANK(13), RANK(14), RANK(15), RANK(16), }; #define SEQ_LEN(n) LL_ADC_REG_SEQ_SCAN_ENABLE_##n##RANKS static const u32_t table_seq_len[] = { LL_ADC_REG_SEQ_SCAN_DISABLE, SEQ_LEN(2), SEQ_LEN(3), SEQ_LEN(4), SEQ_LEN(5), SEQ_LEN(6), SEQ_LEN(7), SEQ_LEN(8), SEQ_LEN(9), SEQ_LEN(10), SEQ_LEN(11), SEQ_LEN(12), SEQ_LEN(13), SEQ_
The reference manual for STM32F407 shows (RM0090) that the PTP clock is running from the SYSCLK directly, however, the PTP chapter says that it is controlled by the HCLK. I'm confused now, and experiments show that it is running from HCLK actually. So either the clock diagram in the chapter 7 is wrong (and also CubeMX) or I misunderstand something. Can I drive PTP clock from SYSCLK?
Hello all,As part of a sub-project, I need to be able to call a local web page using an STM32F417ZGT6. The code was generated and written with Cube IDE and tested on a MCB32 board with a STM32F107 processor. On the MCB32 board the web page can be called without any problems.Now I have developed a prototype which should do the same with a STM32F417ZGT6. It also uses an external 25MHz clock and a DP83848 Ethernet transceiver. My layout is based on that of the MCB32 board. However, it is only possible for me to ping the processor via cmd.When calling the web page I always get a gateway timeout.Now I am wondering where to even start looking. Because most of the code was generated and not written by me. In Visual Studio Code I have the code files from F107 and F417 side by side for comparison. There are many differences to be seen, which makes it difficult for me to find any clues. Is there anyone who has had to deal with similar problems?Could it possibly also be the hardware, ev
Hi!I have done the following this:Make so ping works - OK (https://controllerstech.com/stm32-ethernet-1-connection/)Create a simple echo TCP Server - OK (https://controllerstech.com/stm32-ethernet-4-tcp-server/)These things works. Very good.But then when I enable HTTPD inside my STM32CubeIDE 1.10.1 and then add a new a fsdata_custom.c or fsdata.c file to my project. Just like they are doing:https://www.youtube.com/watch?v=cYynDc82g4whttps://controllerstech.com/stm32-ethernet-6-http-webserver-simple/Then it won't work for me. What happens is that when I use my web browser and go to my STM32 address .e.g 192.168.1.15, then I cannot ping any longer to my STM32. But...IF....I ping first, then I can see that the ping stuff is working. But as long I use my web browser to surf into my STM32, then I cannot longer ping my STM32. So I need to restart it. No web site appears at my web browser.I have tested to debug, but the processor runs and have not fallen into a endles error-loop. So what can
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.