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, With windows 11 and Ux_Device _MSC example, the transfer from the STM32H735G-DK evaluation board to the PC stop near 80% with a big file (500Mo). When the bug appears, In the “_ux_device_class_storage_request_sense” file, the « storage -> ux_slave_class_storage_host_length » variable equal 64 is different with “sense_length” equal 18 This generate the UX_SLAVE_CLASS_STORAGE_CSW_PHASE_ERROR error. When I comment the if condition on top, the transfer don't stop anymore and the file transfered is reliable. Let me see your comment about this issue ? Thanks,
I am making a function that convolves over a given audio file with an impulse filter to make stereo 3d sound (binaural audio).The best state I've reached is a clear left channel, but some constant static in the right channel although the indexing for buffers of both channels were the same.I went over to my computer, adapted the program and ran it with GCC on windows, work flawlessly, sound is clean. And when I adapt that working solution back onto the MCU, it is now just static noises. Guess it has something to do with memory and stacks, but not sure where to start. A faulty audio file sample has been attached, VOLUME WARNING!!!So the main question is, why would a convolving solution work on Windows, but not on the MCU?The convolution has been splitted into small blocks to limit memory usage.Thanks in advance!The code is below, disregard the file open, close operations, they are there.Here is the most recent code that produces only static in both channels:static float filter_l[256]; //
Hi,I am using STM32L4R9 USB along with STUSB1600 in device mode only. I get the device connect interrupt USBD_LL_DevConnected when USB host is connected either DM DP lines are connected or not. I need to detect if connection and enumeration on USB host is successful. Is there any available callback for the same(Except SOF)Thanks in advance!
Hi together,i am searching for a equivalent of the J-Link RTT-Viewer, on which i can display something for demonstration purposes. It is to simply demonstrate that i connection can work just like a in-built Segger J-Link. FYI: I am using a NUCLEO-C031C6 without any external toolsRegards, David
Hello ST,For our project, I want to broadcast a character with property "CHAR_PROP_BROADCAST" and I created it using the function aci_gatt_add_char(). But the function fails to add this character.In other case, when i change the property to "CHAR_PROP_READ", the character is added successfully.Could you help me or provide me an example on how to broadcast a service using BROADCAST property ? Thanks & RegardsTeja
Hi We want to use STM32U575 Watchdog Mechanism in our operational FW, but have the following concerns:1. Can MCU ST Bootloader kick the WD in general, and especially during FOTA, when it is busy writing/reading to flash the new FW to update or during its execution prior to jumping to the FW?2. How can we maintain debug capabilities - no resets during debugging - is there a debug settings taking care of it?3. How can we log events of resets which happened due to WD - can the RCC be examined during startup to analyze if the reset was due to a watchdog?4. How can we log events of resets which happened due to WD - can an IWDG interrupt be used and how?5. When is best to initialize and activate the watchdog during the FW startup - especially when we have some long wait (seconds) during the FW startup to overcome some initialization problem we currently face?6. Can the watchdog setting be changed or disabled AFTER it was already activated?7. What are the main conside
HELLO,I'm using the stm32H755zit6 nucleo144 board, and I'm trying to communicate with the PC throw ethernet, all is working fine but the delay between the request and response is not enough for our application it's between 1ms to 0.5ms and we need at least (0.1ms or 0.05ms), I don't know where the code is spending all this time, can anyone help me please?The code was generated using STM32CubeMX 6.9.0 and STM32CubeIDE 1.14 with the package v1.11.0
I am using STM32L496ZGT6P. I am using DAC along with DMA to generate voltage and frequency of my desired range. But I am unable to get hold of the frequency setting. Sysclk I set is 4Mhz. 20 is prescaler value, 4Mhz/20 = 200000.This is further divided by 10 which is time period(ARR) .I am supposed to get 20000 as output in DAC, which I am getting in UART because of the below function, but I am not getting that in CRO. in CRO I am getting 100Hz when I tap DAC output. I have cross checked the output of the DAC using multimeter also. I am getting 100Hz in multimeter. I am unable to figure it out where is the mistake. So any help in this regard is greatly appreciated.uint32_t Get_Timer2_Frequency(void) { pclk1 = HAL_RCC_GetPCLK1Freq(); prescaler = ((RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos); timer_clock = pclk1; if (prescaler != 0) { timer_clock = 2 * pclk1; } &nbs
Hi. I'm using STM32U585 with OV5640 to capture the image. I set the DMCI synchronization to hardware to us Hsync and Vsync. However, I set the camera to send JPEG image rather than raw image, so the frame size is unknown. Now the problem is that it's not possible to use the frame_event to capture an frame. because the way I see frame_event, it's fired when the buffer size that we specified when we start capture is filled. which might contain several and half image. So, I have to use Vsync_event. What I can't find out is how to know how many bytes has been transferred when the Vsync_event has happened. The dcmi is using linked list dma. My question is:How can I read how many bytes has been transferred by the DMA? where should I look at?Kind Regards,Milad
Hi everyone I can find help on how to connect SPI2 STM32H745. I have read the datasheet and did everything written on it.Please can someone help me
Hi AllI am trying to get a USB to serial application working using the STM32F746G-DISCO evaluation board. I have generated the project from STM32CubeIDE for the discovery board, and imported the CDC-ACM code from the ST x-cube-azrtos-f7/STM32F769I-Discovery/USBX/Ux_Device_CDC_ACM project as verbatim as possible.When the application runs and the USB cable is connected, the COM port is enumerated successfully on Windows. When I try connect to the COM port from any application, the application times out and fails to connect.The project is attached.I have tried different projects on different boards with MCUs from the STM32F7 range and have always been met with this outcome.Please can you assist me in getting this to work.Thanks in advance.Justin
After updating Cube to v1.5 for my STM32H5 project (Nucleo-H563ZI), the ethernet stopped working except during the initial run after a load of the firmware with the debugger. After a reset, either POR or via the debugger, pings to the board fail. When I checkout an earlier version of the code that uses a Cube v1.4 .ioc file, and bypass the migration to v1.5, the ethernet behaves normally. Has anyone else experienced a similar issue?
Hi everyone, I am trying to use an accelerometer with my STM32h745 board thought SPI.DO you have any idea where I can find library for thus accelerometers ?And how to use the SPI protocole with STM32H745 :)
Hi, community!As I am dealing with STM32 at the first time, I need help. With my colleague we are doing our first project on STM32 (stm32F767ZITx). We need TCP/IP, so I've added to project FreeRTOS-PLUS. According to FreeRTOS-Plus-TCP Networking Tutorial point 3, I mustAdd the common PHY handling implementation to the project if the network interfaceDoes this means adding files to project (I've added to project directory <Middlewares/Third_Party/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/STM32Fxx>)?Have I to tune in `*.ioc` our hardware?Thank you in advance!
Hello everyone, I'am designing a model rocket flight computer. This is a two stage rocket so that's mean I will use two flight computer.Flight computers should have a communication between themselfs. For this communication which one is better? Directly connect two UART's of MCU's each other or UART-RS232 converter circuit ? I will use only RX-TX-GND pin in RS232 connection. a visualization for better understanding... Thank you!
Hi CommunityI'm working on a project with stm32F407VET6, and I need a database for storing data. I found the ITTIA DB, and I install it from stm32 cube ide in the middleware categories (FreeRTOS support) but when I read the documentation in the official site, I read that it's not free, but I install it in stm32 normally.so, I need to know if ITTIA is free for stm32. and if not, Is there a free database for the stm23?thanks.
Hi ,I want to install X-CUBE-DPOWER for stm32g474 board but this message appears This software is not available for download.Can anyone help me solve this problem?Kind Regards
Hi, We are using STM32F103 family controllers.how to fix the function address , i have tried below mentioned procedure ,but i am getting error . Linker script source:/* Linker script for STM32F4 series with fixed function address *//* Specify the memory areas */MEMORY{FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512KRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 128K}/* Define sections */SECTIONS{/* .text section - code */.text :{*(.text)*(.text.*)*(.rodata)*(.rodata*)*(.glue_7)*(.glue_7t)*(.gcc_except_table)*(.gcc_except_table.*)*(.eh_frame)*(.eh_frame*)KEEP(*(.isr_vector))KEEP(*(.init))KEEP(*(.fini)). = ALIGN(4);} > FLASH/* .data section - initialized data */.data :{_sdata = .;*(.data)*(.data.*). = ALIGN(4);_edata = .;} > RAM AT > FLASH/* .bss section - uninitialized data */.bss :{_sbss = .;*(.bss)*(.bss.*)*(COMMON). = ALIGN(4);_ebss = .;} > RAM/* Other sections *//* Fix function address at 0x800500 */.myFunctionSection :{KEEP(*(.myFunctionSection))} > FL
Hello,Just fount a bug on the LL driver of VREFBUF on STM32U575when you want to configure internal Vref to 2.5V and you use the nest function:LL_VREFBUF_SetVoltageScaling(LL_VREFBUF_VOLTAGE_SCALE3);where LL_VREFBUF_VOLTAGE_SCALE3 should set VRS bits of CSR REG to 0x3 it set it to 0x4 instead.the problem is in the definition of the term LL_VREFBUF_VOLTAGE_SCALE3#define LL_VREFBUF_VOLTAGE_SCALE3 VREFBUF_CSR_VRS_2 /*!< Voltage reference scale 1 (VREF_OUT4) */where#define VREFBUF_CSR_VRS_2 (0x04UL<< VREFBUF_CSR_VRS_Pos) /*!< 0x00000030 */where:#define VREFBUF_CSR_VRS_Pos (3U)0x04UL<< VREFBUF_CSR_VRS_Pos should be equal to 0x00000030 but it actually equal to 0x00000040therefor wrong value is set in the VRS bits.
Hi,I have to read both image files(BMP and JPEG) and also text files from either uSD or USB pen drive. But - despite having written quite a bit of code through the years - I have never developed any code that does that specifically. nor do I have previously used the STM32 or STM32 tool chain. Just a couple of questions:1) which one is easier, faster and simpler to implement? The uSD card or the USB pen drive?2) would it be better / easier to use also FreeRTOS or not?3) What are the libraries to install/use? Are there any code samples? Any additional pointers are also welcomed! :) Thank you very much :)
Hi,I am a beginner for bootloader development.1.I am using STM32F103C8T6 controller in my project. So kindly give a procedure document or sample code for this bootloader process. 2.how to jump bootloader to application .3. how to reset the vector table.
Hi,I am trying to program on keil based on sdio with STM32H753ZI MCU.I am able to successfully initialize the sdcard FATFS_LinkDriver(&SD_Driver, SDPath),and I use HAL_SD_Erase() to erase ,itˊs successful ,but when i use f_mount() function it stuck in the disk_read() and doesnˊt return.Here are the steps of these function:f_mount()->find_volume()->chech_fs()->move_window()->disk_read().here are my sd init parametersWhat should I do to solve this problem,Thanks!
Is there anyone who experience this issue? I use eeprom with I2C and USB OTG communication in STM32F407 discovery board. There is no common GPIO pin. whenever I use USB OTG to write something in eeprom through I2C, USB and I2C looks disabled in same time. I googled it and found there are similar issue but no solution at all. is there any solution?
Background: If I used the Boot0 button, reset, and the demo-flasher, everything works as it should. Problem:My application needs to jump to system memory. I've read many post on this which should be fairly straight forward but after jumping to System-Memory, the demo-flasher is not able to communicate with the mcu. Here is the code I'm using:/** * Function to perform jump to system memory boot from user application * * Call function when you want to jump to system memory */void JumpToBootloader(void) { void (*SysMemBootJump)(void); /** * Step: Set system memory address. * * For STM32L151, system memory is on 0x1FF0 0000 * For other families, check AN2606 document table 121 with descriptions of memory addresses */ volatile uint32_t addr = 0x1FF00000; HAL_UART_MspDeInit(&huart1); HAL_UART_MspDeInit(&huart2); HAL_I2C_MspDeInit(&hi2c1); /** * Step: Disable RCC, set it to default (after reset) settings *&nb
Hello, using the Ethernet PTP hardware on the STM32H743 processor in slave mode, I synchronize my clock's value and counting speed within the Ethernet peripheral to that of the master device. Is the system clock used by the processor core to execute instructions synchronized with the clock within the Ethernet peripheral? Does the PTP hardware only synchs my clock within the Ethernet peripheral to the master?In other words; Can I synchronize the system clock(not the ethernet clock) of the STM32H743 processor with the clock of the PTP master device on the Ethernet network using the Ethernet PTP hardware? 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.