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
Hey all,I would like to make a HID device which would have output options configured by computer, I thought I would use same USB to feed the config to STM, But I cant seem to find a clear answer if it is even possible to send data to USB HID, like you do with CDC.If anyone has clear answer or can point me towards documentation/example for that, I'd appreciate it.
This post is a constructive feedback channel for the STM32C0316-DK Brisk demo project.Implemented Application Functions:Alternative IO Drivers which can coexist with HAL'sSTM32 Vdd and Temperature monitoringAnalog Keyboard (ADC, Debouncing)LEDs (pulsing, dimming)I2C Master by bit-banging (many slaves supported)SPI Master by bit-bangingAndroid Bluetooth Electronics Support (UART + Dashboards)Multiple companion chips support (may require add-on boards)
Hi! I'm in a conundrum, and am wondering if there are hacks around this. I'd like to use CAN on a a G4. And give it updatable firmware by USB. My options appear to be this:#1: Share a CAN Rx line with Boot 0 pin.#2 Share CAN Rx line with USP_DN.Are either of these workable? Maybe leave Boot0 floating, and have the button pull it high? Although leaving this pin without a pull down makes me nervous. Maybe the CAN and USB lines won't interfere with each other if they're just wired together, but you don't need more than 1 at a time?I understand there's some (Banned keyword?) magic you can do with option bytes re Boot0/1, but I'm unclear *how* you'd actually do that, from a user's perspective. Thank you!
Hello,I am trying to restart a STM32L072 into DFU bootloader mode (using STM32 LoRa Discovery kit) .The bootloader is working and I can use it to flash my firmware using a jumper between BOOT0 and VCC.Now I would like to enter bootloader from source. I used instruction from https://www.youtube.com/watch?v=cvKC-4tCRgw, https://stm32f4-discovery.net/2017/04/tutorial-jump-system-memory-software-stm32/ and various other sources.I am running FreeRTOS, and I don't know any proper way to shut it down, so what I do is writing a byte into backup register, then trigger a reset. On startup, right after HAL_Init() and before SystemClock_Config(), I check this byte. If set to 'R', I do the following :RCC / systick resetDisabling IRQReset system flash memoryReset Vector tableSet stack pointer to the adress in 0x1FF00000 (start of SystemMemory, according to AN2606)Jump to 0x1FF00004 int main(void) { HAL_Init(); bootloader_trigger_if_requested(); // Main continue to init MCU and
HAL_ETH_ReadData() reported bufflength 60 bytes (damrxdesc-> DESC0.FL shows 64 bytes. looking at the code, bufflength is derived from DESC0.FL - 4. ). However wireshark shows the incoming frame is TCP ACK with no data. So it should be 54 bytes, and I verified the incoming data and the first 54 bytes matches what shows in wireshark. Same for ping message with small payload. Looks like the driver reports 60 bytes for incoming frames less than 60 bytes Note the same driver reports correctly for frames with more than 60 bytes (not counting CRC).Question: what causes the driver to mis-report the frame length? how to fix or work around the problem?Hardware: STM32F769-DISCO eval board.
I am trying to run a USB HS example with external PHY on NUCLEO-F756ZG. As I count find example I have gone ahead and created code from scratch. I am using USB3300 external PHY. I have made the proper connection except for RST and +5V to the module because I do not see any RST signal when I enable USB HS in STM32Cube. I am also attaching a .ico file for reference.I think connection should not be an issue here as USB_CoreReset might be initializing internal blocks.
I've seen many topics similar to my problem and went through their solutions but they didn't work for me so I'm asking here with details related to my problem. I've made a PCB and implemented USB 2 FS on it using STM32F407 PHY in device mode. here is the schematic:I've removed two 22 ohm resistors according to this video from ST official channel (around 4:30):https://www.youtube.com/watch?v=vwlXUOY7KY0the DM and DP lines are routed differentially and are about 15.4 mm long and Impedance (Zdiff) is about 105.32 (from Altium Designer calculations). there is no specific code yet. I just want PC to be able to recognize it (for now win 10). Device is self powered and VBUS sensing is activated (I've checked without it also and yet no result). Class for FS IP is virtual port com (setting initial values using CubeMX). There is an 8 MHz Crystal on the board and here is the Clock Configuration: Minimum Heap and Stack sizes are increased to 0x2000 and 0x4000 respectively. MCU is not stucked
..
In stm32h743, in SPI, I have a slave device with interrupts enabled. In particular, I'm enabling all the error interrupts (UDR, OVR, CRCERR, FRE, MODF), and the RXP, TXP and EOTIE interrupts, in that order.If I enable EOTIE the first of all of them, everything goes fine. If I enable it after the TXP (as above), the SPI ISR gets fired endlessly. I read the SR reg. within it and its value is 0x12 (TXTF and TXP set), which makes sense because I didn't fill the TxFIFO, but I don't see why it fires all the time. Any idea why this happens?
Hello ST Community, I am trying to play audio file on STM32G431RBT6, but I am not able to successfully play the audio. I shall be thankful if you can provide any suggestions/ feedback to help me debug the cause of noise in my output. Also I would like to mention that my audio is slowed than actual (for example, I am a playing a file of 10 seconds, then the STM32 will continue on producing the audio till 18 seconds. )Setup Details:My MCU is running at 170Mhz.I am using timer 6 as Trigger for DMA transfer to my DAC peripheralThe audio file is stored in SD card. The audio file I am trying to play has the following specificationsFile Format = .wavSampling Frequency = 44100HzChannels = 2Bits per Sample = 16My DMA is configured for word transfers (Even though I am transferring only 12 bits at a time) as configuring it for Half word transfer results in DMA Underrun error.Following is the code #include "main.h" #include "app_fatfs.h" /* Private includes ---------------------------------
Where can I find a complete compilation of the LL Api, especially what USART handling is concerned?I'm trying to implement (with FreeRTOS underlying) a ring buffer driven I/O system to read from and write to UARTs.Do I understand it right? There is one global UART ISR, where receive data available and transmitter empty interrupts are handled? When there is no data to be sent, TXEmpty IR should be disabled, right? How do I disable it?Receiving characters and putting them into the input ring buffer works. But writing to the transmitter - I'm trying to implement a simple read/echo functionality on the same UART - doesn't seem to work.This is my ISR:void USART1_IRQHandler(void) { /* USER CODE BEGIN USART1_IRQn 0 */ /* Check RXNE flag value in SR register */ if(LL_USART_IsActiveFlag_RXNE(USART1) && LL_USART_IsEnabledIT_RXNE(USART1)) { /* RXNE flag will be cleared by reading of DR register (done in call) */ /* Call function in charge of handling Character reception */
I want to configure a USB device using STM32F746.I want to select the USBH MSC Host and Device as needed (without rebooting..).In CubeMX, only "Host Only" or "Device Only" can be selected.When selecting DualRole in CubeMX, a library is not created.I want to dynamically select and use the USBH MSC Host and Device.Please let me know if there is a way.
Hi all,I am using a STM32H7 and I implemented a composite usb device (CDC + AUDIO recording) using IAD interface descriptor.I can successfully configure the audio interface as type I PCM (I tested both 16 and 32 bit), but if I try to configure the audio as type I IEEE_FLOAT windows does not recognize the microphone (the device is still present in device manager under 'sound devices', but there is no input device under 'Audio inputs and outputs'.I just changed the wFormatTag field of the descriptor, leaving the bSubFrameSize=4 and bBitResolution=32.Have I to change something else?Thank you in advance,regardsArianna
I have the options for : FreeRTOS_Plus_TCP lwIP 2.1.3 (recommended to upgrade to this based on the official website) lwIP 2.1.2 (comes with the CUBEIDE).I need a robust and stable stack.
Hello,I'm using the STM32H723VE chip in my project and I'm having some difficulties getting the Ethernet interface fully functional. Used this chip with the KSZ8041 and I'm giving ping. I enabled the D-Cache and I-Cache, performed the MPU settings. I'm trying to implement the Modbus TCP protocol, I open and close the TCP connection, it works for a while and then it stops working and then it doesn't work anymore. I'm a few things on the forum, however nothing has yet worked.I use STM32Cube FW_H7 V1.11.0 (6.8.0).Some relevant settings:**** __FLASH.id /* Modification start */ .lwip_sec (NOLOAD) : { . = ABSOLUTE(0x30000000); *(.RxDecripSection) . = ABSOLUTE(0x30000080); *(.TxDecripSection) . = ABSOLUTE(0x30000100); *(.Rx_PoolSection) } >RAM_D2 /* Modification end */**** lwipopts.h/* STM32CubeMX Specific Parameters (not defined in opt.h) ---------------------*//* Parameters set in STM32CubeMX LwIP Confi
Hello everyone,I need some ideas and recommendations on how to solve the following problem effectively.Our customer wants to use SFP modules (1000 Base-SX standard) to send some data to a remote computer. As there is only very little data to be transferred (actually no real need for gigabit), a Cortex-M microcontroller would probably do the job.What would be the best approach to adapt the fiber optical SFP modul? From what I've found, most microcontrollers only have a MII or RMII interface. The only information I've found on the SFP modules is from the following document: SFP modules. What controller and PHY would you recommend for this project?How would the design change, if we want to add a copper SFP interface as well? Copper and fiber would never be active at the same time. What PHY would you recommend then?Your help is very much appreciated.Thanks a lot.Best regards,Samuel
HelloI am trying to program the Nucleo H755ZI-Q card to be recognized by the PC as a USB HID (mouse). The problem I'm having is that no pipes are opening.So, the connection is not being made correctly and so my card is being recognized as a USB Input Device.When I try to do the same process on another card (Nucleo F446ZE) with the same configuration parameters in the IOC, it works, and my card is well recognized by the PC as a mouseDo you know what I must do to get the H755ZI-Q card to be recognized as a mouse?Thank you in advance
I'm wondering about the influence of TICK_RATE_HZ in FreeRTOS. If I understand correctly, this is the "granularity" by which RTOS can switch between tasks. So within an interval of 1ms a task cannot be released and another task which would have to process an event has to idle until it gets control? Can I raise the TICK_RATE to a higher value (STM32F103C8T6).
Hello Support TeamI am working on a single-phase EV charging product. and I have seen a certain metering solution on the STM website.For Communication and Application purposes, we selected the below MCU1. STM32G484QET62. STM32G473VET6 3. STM32G491RET6I have some queries regarding the Complaint and certification related below I mentioned.1. I refer to this document ("x-cube-classb.pdf"). STM32G491RET6 does have not a Class B lib. am I right?2. STM32G473VET6 and STM32G484QET6 have HAL Class B libraries so In STM IDE how to use this lib?3. Is it certified IEC 60730 and UL1998 Safety Standard Compliance?if the selected MCU part is not certified certain certification so can you suggest me another STM solutionThanksHiren R. Thumar
I am using Nucleo-STM32 F767ZI board. I am to using interrupt transfer for sending data to PC(Host). But data is not getting displayed on game pad. When I use the USBD_CUSTOM_HID_SendReport() function inside while(1) loop. it sends data and it gets displayed on game controller window. I want to send data using interrupt method and at time interval mentioned in CUSTOM_HID_FS_BINTERVAL, not in main() while loop. What steps I have to follow and where to write the function to make it work?
What is USB composite device?
I'm trying to receive SPDIF data using an STM32F446RET using PB7 as SPDIFRX. The signal itself is perfect, a clear and sharp waveform can be seen directly at the input pin. The whole stuff is configured in CubeMX which also generated the code for interrupt data reception. From what I can see in the CubeMX-generated code, there is no obvious mistake. The major configuration looks like this: hspdif.Instance = SPDIFRX; hspdif.Init.InputSelection = SPDIFRX_INPUT_IN0; hspdif.Init.Retries = SPDIFRX_MAXRETRIES_63; hspdif.Init.WaitForActivity = SPDIFRX_WAITFORACTIVITY_ON; hspdif.Init.ChannelSelection = SPDIFRX_CHANNEL_A; hspdif.Init.DataFormat = SPDIFRX_DATAFORMAT_LSB; hspdif.Init.StereoMode = SPDIFRX_STEREOMODE_ENABLE; hspdif.Init.PreambleTypeMask = SPDIFRX_PREAMBLETYPEMASK_ON; hspdif.Init.ChannelStatusMask = SPDIFRX_CHANNELSTATUS_ON; hspdif.Init.ValidityBitMask = SPDIFRX_VALIDITYMASK_ON; hspdif.Init.ParityErrorMask = SPDIFRX_PARITYERRORMASK_ON; if (HAL_SPDIFRX_Init(&hspdif) !=
I recently bought the STM32L0538-DISCO board. I have seen the following video in youtube where you can see the functions of this board in full. Where can I find the source code for STM32Cube?On the info page of the board I have not found one that works for STM32Cube.Thank you very much
I was able to do file write operation on Sd card and usb both successfully , but after few days it is continuously giving me FR NOT ENABLED error, i formatted both devices and scanned if they might have malfunctioned it worked after formatting but now i have to again and again format both of them to make the file operation work. Is there any solution for FR NOT ENABLED Error? This error says there is not enough space on logical drive whereas the card is completely empty and has enough space.
HI,I’m working on ETH and FreeRTOS on the STM32H745 Nucleo-144. I’ve read about various problems on this forum about using the ethernet as detailed belowhttps://community.st.com/s/question/0D53W00000rZ8ZvSAK/corrupted-eth-rx-buffer-in-stm32h7?t=1629194187536https://community.st.com/s/question/0D50X0000C6eNNSSQ2/bug-fixes-stm32h7-ethernetSo when I saw this article from ST employees detailing how to use ETH and FreeRTOS, with examples I was really excited.https://community.st.com/s/article/How-to-create-project-for-STM32H7-with-Ethernet-and-LwIP-stack-workingI took their STM32H745_Nucleo_M4_ETH example and added a very simple web site. It just said hello and displayed two large images<!DOCTYPE HTML> <html> <head> <title>STM32h745 TCP error</title> </head> <body> hello <img src="image1.jpg"> <img src="image2.jpg"> </body> </html>Here’s my code changes\CM4\Core\Src\main.c/* USER CODE BEGIN 4 */ extern void http_serve
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.