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
Hi, dear colleagues!I use OSPI interface to connect MCU with QSPI NAND flash.For some commands (for ex. PAGE READ) of used NAND device there is 0 data bytes and HAL_OSPI_Command_IT() work proper.But some commands (for ex. SET FEATURE) has one (or more) data bytes. With those commands HAL_OSPI_Command_IT() fail (return HAL_ERROR). It is obviously also when view HAL_OSPI_Command_IT source code - it can't be used for commands with non zero data bytes , i.e DataMode != HAL_OSPI_DATA_NONE.But HAL_OSPI_Command() do this OK.I use both functions with the same hospi and cmd configuration, but HAL_OSPI_Command_IT() is failed, HAL_OSPI_Command() is OK.Is there difference in purpouse of HAL_OSPI_Command_IT and HAL_OSPI_Command?Is there any restrictions for HAL_OSPI_Command_IT vs HAL_OSPI_Command?Thank you.
After I successfully attached the board to my laptop and ran the "Press a button to ...." tests my plan was to proceed to the source code of the demo application:To read through the source code to familiarize with it.To compile it on my laptopTo flash ti again on the devkit.I was expecting to find the code e.g. as a zip file or a GitHub repository - but I I can not even find the code? I am most familar with Linux and my intention was to develop on that platform using gcc (arm-none-eabi-gcc)?
..
I'm really trying to tell if the board is connected to an external comm port to turn off usart sends so they don't potentially backup and slow things down. I know other products expose thinks like vbus sensing? Don't know much about it. I tried to find it in the board support code but unless there is another include file, I haven't had any luck.Thanks
I have an STM32F508 board and want to connect a USB stick. However, the stick is not recognized. I get the following messages in the debug messages:DEBUG : Cannot allocate memory for MSC HandleDevice not supporting MSC class.Tried it with the same settings with a STM32F411 board. Here it works.Can anyone tell me where the problem is?
Hello,I'm trying to use the async Zephyr UART stm32 api, but I've encountered an issue. I'm using STM32F412.I'm trying to use the Zephyr UART stm32 async API(with DMA), with 3Mbps. I can see that the received data are correct so the baudrate/frame/DMA settings are ok. The issue is that I receive two packets (8 bytes each) at once. The packets are sent with delay(even more than 100ms) between them. I can see that the IDLE line detection is used to inform the UART driver about the end of receiving. Unfortunately, it looks like the IDLE interrupt comes too slow in my case. The interrupt is triggered only once with recieved 16 bytes instead of 2 times with 8 bytes.I program DMA to recieve 528(max packet size), so TC/HT DMA interrupts are triggered.I've been studying the RM(RM0402) a lot, but I'm not sure about one topic. Please correct me if I'm wrong. The IDLE line is detected when the IDLE character/IDLE frame is detected. But I'm not sure what the IDLE character is. The Reference Manual
I'm designing a board G4 MCU and want to be able to power the board from USB C as well as debug or program the board.Is it possible to program the MCU via the USB C or usb 2.0 interface? If not, and I have to use SWD, what would i need in order to program the board? Would i need a dedicated MCU like the NUCLEO board or would i use need some kind of USB to JTAG/SWD cable connected to the CLK and IO pins?If power is being delivered via USB C how might I use this tho power the rest of the board and not just the MCU?I tried using this post as reference to get a better understanding.https://community.st.com/s/feed/0D53W000007zVncSAE
using STM32CubeIDE, the ETH and LWIP are enabled, but no init file eth.c generated.The main.c includes MX_LWIP_Init(), but not MX_ETH_Init().Is it right?Thanks.JYI
Hi community. Greetings of the day!I'm using ThreadX RTOS thread to receive the data from USART and I'm sending it to the ThreadX queue & transmitting it to the USART(Tera-term display).What happening is that I'm using IT(interrupt) method to receive data, whenever I'm entering data manually(by typing) data is coming properly and everything works as expected. Whenever I paste something then USART Overrun error occurs and everything stops, like I can't enter any character once Overrun happens. And I have to reset the controller as well.NOTE: Whenever I paste something having large length then only few of the characters are being considered by the USART Interrupt API and then USART Overrun error occurs.Execution even goes to the HAL_UART_IRQHandler() function and inside it's also checking for Overrun error and if it happened so then it's clearing the ORE flag as well by setting the ORECF flag of USART_ICR(USART Interrupt) control register.Attaching the code snippet, any help will be
For the USBX ACM class, the ux_device_descriptor files are generated by CubeMX in USBX/App folder. When trying out the RNDIS class type, no files are generated here. Is this a bug or not implemented? If not are there any examples of this to read? Being as there is no ECM driver for Windows, it would be useful to have RNDIS as an option here.
Hello,I'm working on STM32U5. We integrated the USB lib without AzureRTOS using the stm32_mw_usb_device (from STM github) as example.I use my STM32U5 as a USB device CDC, using the USB_OTG_FS. Everything seems to be working fine (Linux can mount it and send/receive data to/from it).Now, I want to test the eye diagram required by the USB 2.0 specification but I could not find any example code for this.I saw in the code a function called "USBD_RunTestMode()" but unfortunately, it is empty.Do you have an example of this ?If not, could you give me some hints on how I should do this ?Thank you.Best regards,Stephane
Hello,We are using UART polling and had it configured using STM32Cube. That was great until we realised there wasn’t any built-in checks for parity errors, overrun errors, …. How come those errors seems to be checked within the handler when using non-blocking functions (interrupt) but not within HAL_UART_Receive() or UART_WaitOnFlagUntilTimeout() ?I understand that we could just use __HAL_UART_GET_FLAG(huart, UART_FLAG_PE) to check for parity errors but we would need to place it within HAL_UART_Receive() or UART_WaitOnFlagUntilTimeout() functions so would get overwritten everytime HAL is being regenerated. I couldn't find any USER CODE BEGIN/END macro within this file to add our own code and CUSTOM USER CODE BEGIN/END is not supported.Is there any reason for those errors not to be checked when using polling ? Would that ever be supported ?How can we add those checks in a clean way ?Thanks
Looking at this post pwm and callbacksIt does indeed look like the PWM pulse callback is used rather than the HAL_DMA_XFER_CPLT_CB_ID CalllbackI have set up DMA to transfer to PWM. It is a circular buffer so I am just changing the pointer "audio_channel[AY_CHAN].ptr" reference in the call-back.I wish to update the DMA values after the sequence is completed (length of "AUDIO_CHUNKS") - (moving the pointer )The PWM event fires as expected but the DMA Call-back is not firing. It also seems that the PWM call-back fires after the DMA streams completed - in "static void TIM_DMADelayPulseCplt(DMA_HandleTypeDef *hdma)" there is only a callback to htim->PWM_PulseFinishedCallback(htim); So that seems to reflect what I'm seeing. Does this make the DMA call-back redundant? In addition it seems that HAL_TIM_PWM_PULSE_FINISHED_CB_ID fires after the last PWM value is written. Is this correct?In addition how does the "tim5.Init.RepetitionCounter" affect both the PWM and DMA callbacks?All the flags
Hello Community,I want play audio from stm32u5, to any speaker. Is there any method to play audio from stm32u5 or way to connect speaker to stm32u5.
I am designing a board with STM32 device of P/N STM32G4A1KEUx. I am trying to see if I need to have an external pull up on the USB-FS D+ line for detection. The usual application note don't seem to include this device as it looks. Does this device has a pull up embedded for the USB detection If not can I still use the usual 1.5k on the D+ line?
I have two projects: · both on microcontroller STM32H730VB; · both created in STM32CubeIDE Version: 1.10.1 with HAL library STM32Cube FW_H7 V1.10.0; · HAL version in file stm32h7xx_hal.c: STM32H7xx HAL Driver version number V1.11.0 I want to set Vector Table offset, but one project comment claims “Vector Table base offset field. This value must be a multiple of 0x200.�? when in the other, “Vector Table base offset field. This value must be a multiple of 0x300.�? I also find information that the “0x300�? version is incorrect: https://github.com/STMicroelectronics/STM32CubeH7/issues/246 but with no confirmation. I suspect an error at the level of file generation by the Cube, but I need to know which o
I need to configure one USB port as an HID host and the second USB port as an MSE host. Is this setup possible?
I'm bringing up an Ethernet project with the latest FreeRTOS+TCP and SPL ported from the F407.I've got it sending packets but the responses to the ICMP when I ping the device come across in wireshark as having invalid CRCs of all zeros (see wireshark attached). Checking the Status word of the DMATxDesc before we set the own bit shows the CIC bits as 11 to have the hardware perform all the checksums.Any recommendations as to what the problem may be and how to resolve?
We have a project that works just fine using STM32L071RBT (compiler 5.0.6 build 960). As part of the project we erase a portion of the flash and then reprogram it for the fota, which again works great.I then branched the project to make another variation, removed some code to make room, and added some code. And this works great right up until we run the same erase routine... When we try to run HAL_FLASHEx_Erase(), it fails the first time on FLASH_WaitForLastOperation() with the only flag being FLASH_FLAG_EOP, but works if the function is called a second timeI'm assuming that I deleted something that we need, but have scoured my code and for the life of me cannot find what it could be. The build configurations are identical, and the old code still builds and works fine. The new code functions, but I'm finding it concerning that previously functioning code that has stopped working, and would like to get to the bottom of it. Yes, I've already googled anything and everything I can think of
Hi all, I am working on a custom data logging board using STM32L4 and an SD NAND (uSD card in form of an IC). Since the SD chip is a surface-mounted IC (https://www.adafruit.com/product/4899) on the board using SPI and FATfs so I want to implement USB MSC to plug and play with the files when finish logging.I have seen a few examples and the closest is this STM32 USB MSC (Mass Storage Class) » ControllersTech but the example used SDIO mode and I am using SPI mode with FATfs to write content to SD card (based on this SD card using SPI in STM32 » ControllersTech). Can anyone with experience combine the FATfs SPI SD card with USB MSC to give me a hint for the implementation?
Hi to all,I managed to interface with the SD card through the SPI and the FaTFS library (thanks to https://01001000.xyz/2020-08-09-Tutorial-STM32CubeIDE-SD-card/) now I need to implement a USB mass storage device on the same hardware.i don't know how to modify usbd_stoge_if.c tin odero implement the functions:int8_t STORAGE_GetCapacity_FS(uint8_t lun, uint32_t *block_num, uint16_t *block_size)int8_t STORAGE_IsReady_FS(uint8_t lun)Have you any suggestions?Thanks.
Hello everyone,I have recently started working with a Nucleo board based on STM32L4R5. IDE: STM32CubeIDE and the HAL drivers.I am trying to use the USB on the Nucleo board as OTG(both Host and Device depending on the connection). I am not found any examples that I can refer to.(I only got few that indicate either host or device)I have come across examples that support either device or host. Also came across these documents: UM1720 and UM1734.I am open for any suggestion as this is my first time working with USB.Thank you.
As noted by @Community member in https://community.st.com/s/question/0D53W00001yEbUsSAK/stm32f7-eth-tcp-checksum-offload-fails :there's a documentation error in RM0410 which says CIC bits are 28..27 in [TDES1], page 1785Besides this, CIC bits are not in TDES1 but in TDES0, so that's second typo in the same sentence.I checked not just RM0410 rev.4, but also RM0090 rev.19, and it contains exactly the same two typos, so it will probably go across all RMs containing the ETH chapter.JW
Hi STM32-Community,I'm currently trying to get a micro sd-card as a mass storage device to function. Writing/Reading from the SD-Card works, aswell as configuring the STM32L4R's RAM as a mass storage device, but combining both kind of failed miserably.What I've done:I've configured the SD-Card with SPI. Basic functions such as writing and reading work.I've afterwards configured a mass storage device. I've changed the functionsI've found the following forum post (Which I cannot add yet, because this is my new account) https://community.st.com/s/question/0D53W00000hRC0uSAG/modify-usbdstogeifc-to-use-sd-card-trougth-spi (it works when I edit the post) and basically adjusted it for my program (we had different FATFs-Libraries, which did pretty much the same) and did some changes for the blocksize/numbersize:/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : usbd_storage_if.c * @version : v1.0_Cube * @brief : Memory
I would like to transfer a data frame using the STM32 NUCLEO-F767ZI board without using lwiP. If anyone has a suggestion or an example of how to do this I would be very grateful for the help.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.