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
..
Hello everybody:I’m facing the following problem. To boot the microcontroller right know I have pin PA14 – BOOT0 to GND through a 10K pull down resistor (This pin is also shared with SYS_SWCLK) and BOOT0, nBOOT_SEL bit to 0 -> Boot area main Flash memory.I want to achieve the same thing with nBOOT_SEL, nBOOT1, NBOOT0 bits. To do that, I connect the programmer and access the option bytes -> user configuration -> set the pins as shown in the image and apply.When I disconnect the programmer, power off then power on again the program doesn’t boot (now PA14 – BOOT0 is not connected with pull-down resistor). I am doing something wrong?Thanks in advance.
Using an STM32L0x0, and with the DMA a HAL_UARTEx_ReceiveToIdle_DMA call to receive 6 bytes. DMA is configured for 8-bit data size on both the peripheral and memory size (MSIZE and PSIZE in DMA_CCR are both 0x00). However, the RxEventCallback seems to be counting in half-words, despite the actual transfer seemingly working: i.e., I get 6 bytes in my destination buffer which has 1-byte elements, but Size = 3. This holds for any number of bytes I attempt to transfer. What am I missing?
Hello!I'm trying to run SPI in Transmit Only Master mode.It's strange - result of HAL_SPI_Transmit is HAL_OK but I can't see any signals on SCK and MOSI pins.main.cint main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_SPI3_Init(); /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { uint8_t dacRegisterAddress = 0xAA; uint8_t dacRegisterData = 0xAA; uint8_t sendData[2] = {dacRegisterAddress, dacRegisterData}; HAL_GPIO_Write
HiI have upgraded my STMCUBE to the latest version of 6.8.1 and am Using STM32H750XBH6 part, when I try to config the CPU clock to 480Mhz, it raises many error flags and would not allow it (also the Resolve clock Issues Button can not fix it), Note my Device is version Y and I could do it easily in 6.6.1 version.I want to use the stm32cube_fw_h7_v1110 package, so I need to upgrade the CUBE, is there any work around this?
I am trying to develop an audio application of my own using stm32f746g disco board.Can somebody share relevant documents which would be helpful for me to start from zero as i am a beginner?
I have created a program with SDMMC1 + FreeRTOS and it works normal, but when I start mutex with xSemaphoreTake(Mutex1Handle, portMAX_DELAY); it mounts SD and can not format it, then open file. I got the same problem with starting semaphore when calling osSemaphoreWait(BinarySemMainHandle, osWaitForever).
No GPIOx registers are present in System Viewer for STM32G051 or STM32G061 microcontrollers during debug session. There are 12 different .sfr files for each different variant of STM32G0 microcontroller, but only the above two lack GPIO registers in System Viewer window. Why? What is the magic reason for it, is it just a mistake by ST vendor to not include them or is there another reason? I tested what would happened if I loaded a custom file i.e. STM32G050.sfr instead and I can clearly see the GPIO config and its state being toggled that way. So than the question really is - why is it not included in STM32G051.sfr??? I know that all GPIO registers are memory mapped, but that is not a convenient way to debug whatsoever. I would really appreciate if someone reached out regarding this issue.
Hello,In my code there are custom bootloader part and user application part. I init watchdog timer and refresh watchdog timer in the bootloader part and user app part. The code goes to user app from bootloader by jumping address. Likewise, The code goes to booloader part from user app part bu jumping use app address. There is no problem when the code jumping from bootloader part to user app part. But there is a ridiculous problem when it jumping from user app to bootloader part. The problem is it stuck in uart interrupt after uart initialization in the bootloader part. When ı look at interrupt flag, I see uart frame error is set. How to overcome this problem.Sincereley,
Hello,since some weeks I noticed a strange behaviour with Windows 11 and a mass storage USB bootloader on a STM32H7It seems that Windows sometimes sends some SCSI write 10 commands with a block of data all 0 instead of the real file data and at the end of the transfer it redos the write command for these blocks (with the same LBA) with the correct data.Anyone has experimented a similar behaviour ? It is giving problem to our bootloaderThank you
Hi guys, some body make it a standalone upgrade for this small MCU ¿? This MCU can use the native USB in OTG FS mode with a correct bootloader i think can do it, if somebody with more experience can clarify this please.Thanks
I want to measure ethernet throughput in stm32 using iperf3. can anyone help me to do it?
Multiple feedbacks reported around Ethernet HAL driver and applications on STM32Cube FW have been acknowledged and analyzed. Many of them were related to RX packets management, to DMA management, or to overall performance. A summary list of tickets on GitHub and forum is provided below for reference.We apologize for the time it took to provide an adapted solution. We are changing support model to provide more dynamic updates in the future (mainly leveraging GitHub mechanisms).Today, based on the received feedbacks, the Ethernet HAL driver has been reworked to fix most known issues, enhance performance, and add some missing features.The reworked Ethernet HAL driver (along with updated applications) is being deployed on STM32CubeH7, STM32CubeF4 and STM32CubeF7 FW packages.Official publication dates are aligned with maintenance dates: 22Q1 for STM32H7 and STM32F4, and 22Q2 for STM32F7.Before the official publication: the reworked Ethernet HAL driver and applications are shared on GitHub (
Transfer operates successfully for approximately 300ms before abruptly stopping. USB interrupt can be seen on the attached capture operating normally in the first transfer. On the failing transfer no interrupt can be seen. The next interrupt that occurs is SOF but the previous transfer has long since failed and the bus is locked up repeating the same data continuously forever.At this point in time the USB software stack is stuck in this while loop waiting for the interrupt to mark the URB state as complete (usbh_msc.c):while (USBH_MSC_RdWrProcess(phost, lun) == USBH_BUSY) { if (((phost->Timer - timeout) > (10000U * length)) || (phost->device.is_connected == 0U)) { MSC_Handle->state = MSC_IDLE; return USBH_FAIL; } }STM32F7, ST's USB Host library, MSC class, FatFS, FreeRTOS. Any help you can provide is greatly appreciated!
The other end of USB is a custom board which can act as a CDC device.(When connecting the custom board to PC, interface showing as per the attachment.. Showing as RNDIS interface and 3 virtual COM Port.)Attached code which we tried for USB host. Please let us know, is there any change in configuration needed or any additional code changes required..It would be great if you can give an insight into the issue.Thanks in advance.Jestina
Greetings !I am using Azure RTOS on STM32H743 and I tried setting up the Static IP for Ethernet. I could successfully able to assign Static IP . Here after this I am observing that , most of the times IP address is assigning only when I remove and re-insert the Network Cable . Can you please help me out to overcome this issue . Below mentioned is my "App_Link_Thread_Entry" function .Thanks in Advance-----------------------------------------------------------------------------------------------------------/* @brief Link thread entry* @param thread_input: ULONG thread parameter* @retval none*/static VOID App_Link_Thread_Entry(ULONG thread_input){ ULONG actual_status; UINT linkdown = 0, status; while(1) { /* Get Physical Link stackavailtus. */ status = nx_ip_interface_status_check(&IpInstance, 0, NX_IP_LINK_ENABLED, &actual_status, 10); if(status == NX_SUCCESS) { if(linkdown == 1) &nbs
I have ported the NxWebServer example from the STM32H735-DK project over to the STM32H743i-eval. All the bugs seem to be worked out and connection is being made. I can see get requests coming in to the call back but after the second or third file for the main webpage the callbacks stop. I have tried slowing the SDMMC clock, Disabling Cache, to no avail. I have tried using the debugger to pause the code when the callbacks stop and the the code is always in the RTOS idle state with all the tasks either suspended or completed with the exception of the remaining sleeping thread that checks for connection status once every 10 seconds. On occation I will get the whole web page but that is very rare. Not sure where else to look.
Hi, I am currently working on an project which uses CMSIS RTOS V2(freertos version)There are total 5 tasks running inside the system and one of the task uses internal flash function only once if there are changes to parameter functions inside the system and internal flash usage only occurs if necessary, before system is going to go into sleep mode.Now I am also using FMC for external NOR flash and external RTC is also connected to FMC controller.Issue:The issue occurs when system is going to write into internal flash. during writing of internal flash, I erase the set pages and doing that programming sequence error occur, I have tried clearing that error and it does not matter what I do that error immediately occurs again.Now according to datasheet FMC also uses same bus as that of internal flash, so what I did I disabled the FMC completely to check if internal flash will work but the issue remains still.I am also using proper mutuex/semi to so other tasks does not use internal flash, I
Hi all, I am working in uart2 which is connected to the usb port in nucleo -g431rb but I want to communicate not through usb but through PA2 and PA3 pins assigned to uart2 by default. Tx line work properly but Rx not. There is a good signal on PA3 input (I checked with oscilloscope) but MCU is not receiving data. I thought there was some collision with usb virtual port so I unsoldered solder bridges SB1 and SB12 - doesn't work. Rx uart2 works if I send data to usb port and not to PA3. Does anyone have any idea?
Hello, I wanted to ask if there is any NetX Duo DTLS implementation example with source code on any STM32 platform?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.