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
Hiafter enabling LWIP/FreeRTOS in the .ioc file, my HAL_UART_Receive_IT no longer works (worked fine before). I'm new to STM programming and have no idea what to do... Sorry if this is a plain stupid question.Cheers
I have a USB problem with "nucleo_l476rg" in version RTOS V3.3.0 where my overlay works fine with RTOS V2.7.4Overlay has been Migrated to the new way used in V3.3.0.Error Message: Booting Zephyr OS build zephyr-v3.3.0 [00:00:00.000,000] <err> usb_dc_stm32: USB Clock is not 48MHz (4000000)[00:00:00.000,000] <err> cdc_acm_composite: Failed to enable USBI manage to get "nucleo_l496zg" running, when I found the enable for "clk_hsi48"The "nucleo_l476rg" don't support "" and do not have a dedicated clock for USB Not sure how to setup the STM internal clock to in the zephyr way? It looks like there is missing some of the settings that showed in STM32CubeIDE.Created a project with a usb serial just to get the autogenerated setting for zephyr.Is there a "bug" in V3.3.0 when the STM don't support the clk_hsi48?When "nucleo_l476rg" works it shows wait for connection: Booting Zephyr OS build v2.7.4 [00:00:00.053,000] <inf> cdc_acm_composite: Wa
I really have hard time finding any demonstration on your website, in particular on this page you mention that "All the binaries provided are available at: \Projects\<STM32 board name>\Demonstrations\<Demonstration name>\Binaries\" but where exactly is this Project Folder?To be more specific, I would like example of:Writing on the OLED display (Communication through SPI3 but with what functions ?)Sending SMSConnecting to Wifi and sending emailBest
I have been learning my way around the encoder mode in the hardware timers, specifically on a Nucleo L432KC. I got it working within CubeIDE, but I wanted to program using STM32Duino and PlatformIO, so I tried a library for this that someone else wrote (gianni-carbone/STM32encoder). It didn't work out of the box, and it appeared it was configuring and starting the timer, but not configuring the GPIO pins themselves correctly.On a whim I added the code snippet below, which was from another STM32 encoder example from the mbed site...it appears to be redefining a function which was already being called somewhere in the encoder library I am using.Is this the intended behavior? Or is this required because of a bug somewhere in the STM32Duino core or the HAL? I'm curious how this function is intended to work. I'd like to understand what's going on here so I can possibly pull-request the encoder library and make it work out of the box on this board.// HAL_TIM_Encoder_MspInit() // Overrides th
For Channel=5 and Rank=1 the result is ADC_SQR1=0xA (incorrect).Should be 0x140.
Hi, I'm trying to practice FreeRTOS with my STM32F769I-Eval kit.I made two task with different priority and print global variable with semaphore.When I run my code, terminal print decreased value every time. I don't know why. Here is my code.int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MPU Configuration--------------------------------------------------------*/ MPU_Config(); /* 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_USART1_UART_Init(); /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ /* USER CODE BEGIN RTOS_MUTEX */ /* add mutexes, ... */ /* USER CODE END RTOS_MUTEX *
Setting the FX_STANDALONE_ENABLE flag should disable all ThreadX specific code when building a FileX project. However there is actually some code related to ThreadX timers that is generated within a USER CODE section, defining the FX_STM32_SD_CURRENT_TIME. Does anyone know why that may be, and more importantly what would be the correct definition of this macro without ThreadX?
Hi, I am using STM32 F767Zi and tried this tutorial to use it as an USB host ***. I followed the steps but I always end up in Use Case _USER_CLASS_ACTIVE. I tried different USB devices but it's always the same. Does anyone have an idea how I can solve the problem or how I can look for the problem? Thank you!Post link deleted to adhere community guidelines.
Hello,I'm currently working on a self-powered project that uses an STM32L432KC. From reading AN4879 I see that I have to enable VBUS sensing because it is mandatory for self-powered USB devices. Using CubeMX, I cannot enable VBUS sensing for the MCU. Is there an application note or reference implementation on how to proceed? Can I integrate VBUS sensing into the Cube Middleware for any Pin of the MCU?Best regardsHenri
Hello,I am trying to run a simple code for the reading of a single channel of one of the three ADCs available on the STM32L496. I have tried to use different channels while using the code generated from STM32CubeIDE. I use the default configurations (single ended, polling mode etc) but when I read the ADC I get 0xFFF. The sequence of operations I perform are: ADC_Enable(&hadc2);HAL_ADC_Start(&hadc2);status = HAL_ADC_PollForConversion(&hadc2,100);adc_value = HAL_ADC_GetValue(&hadc2);HAL_ADC_Stop(&hadc2);after which I send the adc_value via LPUART. I have used the same code with an STM32F439 nucleo board and it worked properly, so I am wandering if there are fundamental differences between the L4 and the F4 HAL regarding the ADC that I haven't noticed yet. Any help can be useful, thanks!
Hi, i was thinking about placing some libraries in a reserved area on the flash and access them from two or more applications. For instatnce a bootloader and the corresponding application. I would like to update them, that's way don't like to incoporate them in the bootloader. How could that be achieved? Thanks in advance
Project based on STM32F303 generated from CubeIDE 1.10.1 using HAL 1.11.3 library. The project was made according to the ST example. IN enpoint with a report of 64 bytes. OUT endpoint also with 64 byte report.I can send any number of IN or OUT reports separately. Then everything works without problems.But when I want to send reports back and forth, every time I send two IN reports, I stop receiving OUT reports. IN reports then continue to work correctly.Only restarting the microcontroller helps.I think there is a bug in the USB library.Has anyone managed to solve this problem?
..
If anyone is familiar with Digital Audio Workstations (DAW's), you can then select the type of audio input device in the application, to then choose which channel to monitor and record.I'm familiar with the process of how to record the incoming audio signals via the onboard STM ADC's however I'm not sure on how to the pass that converted digital audio using the USB protocol so that the computer can identify the audio interface, and be able to choose each channel. Any help or recommended readings would be great.Thanks :)
HelloI used the STM32H747-Disco development board and created a Keil project according to this link, https://community.st.com/s/article/How-to-create-project-for-STM32H7-with-Ethernet-and-LwIP -stack-workingMy CubeMX is version 6.6, and the firmware package is version 1.10, but my Lwip can't work properly. During the debugging process, I found that there is a problem with the initialization part of Lan8742, and it returns a timeout problem LAN8742_STATUS_RESET_TIMEOUTThe problem is here lan8742.c : while(regvalue & LAN8742_BCR_SOFT_RESET) { if((pObj->IO.GetTick() - tickstart) <= LAN8742_SW_RESET_TO) { if(pObj->IO.ReadReg(pObj->DevAddr, LAN8742_BCR, &regvalue) < 0) { &nb
I'm stuck. I'm able to send a 440 Hz sawtooth wave to output over USB from Nucleo board (device) to my computer (host).The only problem is, there's this repetitive clicking / choppy sound in the resulting audio when I record with Audacity. The click happens relatively regularly, like 1.3x per second.Another issue, I'm not sure if it's related or not: When I sweep the frequency from 440Hz to 880 Hz using a potentiometer, I can audibly hear the sweep happening twice. It's like USB is caching or reusing some buffer or something. (Tried to link code and audio examples but it's restricted because I'm a new member)Maybe there's some clock issue? I think I read somewhere that the Nucleo's built-in crystal oscillator (8MHz) may not be suitable for USB due to some out-of-sync issues with USB communication. Really wish I could share my code and audio links, but it's restricted for me.
I'm trying to receive a packet of 15125 bytes. The packet is correctly fragmented in 11 packets, but of each fragment only the first 902 bytes are correct, the rest are equals to 0.ETH_RX_BUFFER_SIZE: 1536MEM_ALIGNMENT: 4MEM_SIZE: 16360LWIP_RAM_HEAP_POINTER: 0X30044000MEMP_NUM_REASSDATA: 5MEMP_NUM_FRAG_PBUF: 30PBUF_POOL_SIZE: 32PBUF_POOL_BUFSIZE: 2500IP_REASS_MAXAGE: 10IP_REASS_MAX_PBUFS: 50TCP_MSS: 1460ETH_RX_DESC_CNT: 15ETH_TX_DESC_CNT: 4.lwip_sec (NOLOAD) : { . = ABSOLUTE (0X30000000); *(.RxDescripSection) . = ABSOLUTE (0X30000620); *(.TxDescripSection) . = ABSOLUTE (0X30000800); *(.RxArraySection)} > RAM_D2
How is the boot0 pin is intended to be used by ST chip designers in real world applications? Once the boot0 pin is set high, the chip executes the bootloader section in memory and it will not go back to the execution of application section of memory unless the boot0 pin is set low. How can the user switch that pin back to low to recover the application firmware execution, after flashing a new application firmware, while the STM32 is in bootloader mode?
STM32F722: USB Device peripheral: HID: When connected through a USB hub to a Windows 10 host PC, I can see endpoint data (OUT transactions) with another device address present before the Set_Address is issued by the host. There are other active device ports on the hub receiving communication from the host. It appears the STM32 USB device peripheral ignores these transactions since they are to the wrong address.I do, however, see instances on the bus (using USB sniffer) where a full 64 byte packet to the wrong device is present followed immediately by a full 64-byte packet to the correct address. The report id is 121 bytes so an additional 57-byte packet is required to complete the OUT transaction. In this situation it appears the 64-byte packet sent to the correct address is lost.Can someone explain what happens in the USB peripheral in this case, and does something need to occur in the USB device library firmware to handle this?In attached USB sniffer screenshot device 15 is the actua
looking into this community i see that - azureRTOS https://community.st.com/s/topic/0TO3W0000004ZG8WAM/azurertos is under STM32 MCUs https://community.st.com/s/topic/0TO0X000000BSqSWAW/stm32-mcus- FreeRTOS_MPU https://community.st.com/s/topic/0TO0X0000005I9OWAU/freertosmpu is under STM32 MPUs https://community.st.com/s/topic/0TO0X0000003u2AWAQ/stm32-mpusI don't really understand why FreeRTOS is not a sub topic for STM32 MCUs in the forum.I looked into using FreeRTOS (in tickless mode) together with CubeMX and have the impression that the support for FreeRTOS in CubeMX is limited when it comes to regenerating code. I didn't work with AzureRTOS (in tickless mode) before.From what i did see in a STM32C0 workshop FreeRTOS is not really a topic but AzureRTOS is promoted.My questions to STM and the community:- Is / will FreeRTOS for STM32 MCUs really be supported by STM ?- Are the problems named in https://nadler.com/embedded/newlibAndFreeRTOS.html worked on / solved by
It should use a chip with low pincount/small package.I need to connect a UART an SPI and a few GPIOs.Even chips with HS USB seems to only support FS USB on the development boards I looked at. While the chip does not use too much bandwidth, there are other high bandwidth deviceson the bus, and HS USB Is needed for everything or everything else will slow down.
Hi all,I'm trying to get a TouchGFX application running. I'm controlling a 16bit TFT LCD through FMC (16 lanes) with my Nucleo U575ZI-Q. As I'm using a custom LCD driver, I set both the Interface and the Application Tick Source to 'custom' in the .ioc file. As an RTOS I'd like to use ThreadX.As far as I understand the TouchGFX Documentation, I need to call the OSWrappers::signalVSync(); function periodically to let TouchGFX render the next Image.I'm trying to get a ThreadX (Software-) Timer running to periodically call this function. Creating the timer with tx_timer_create() in the MX_ThreadX_Init() works just fine, if I don't activate it. I get a HardFault when activating the timer (either with TX_AUTO_ACTIVATE in tx_timer_create or with tx_timer_activate())What am I doing wrong? Do I need to create/activate the timer within another function? Where is the best option to create/activate such a timer inside a TouchGFX application?Best regards
Hello,I am a newcomer to the ST world- I am working with VW of America and UTK on a senior design project.I am attempting to setup a USB-C PD source application using a NUCLEO-G491RE Connected to a SRC1M1 extension board. I have tried directly loading the src1M1 example project in x-cube-tcpp (nucleo-g474re/applications/USB_PD/SRC1M1_Source) and following this guide on the wiki. For the wiki project, I applied the correct BSP and adjusted the .extsettings file to point to the correct BSP.When monitoring stcubemonitor-UCPD, neither stack seems to be responding in the desired manner, and no contract is negotiated.What further steps should I be taking to set up my USB-C application? I know this is a desired function from ST, so it should be pretty simple.
STM32F429ZIT6USBLC6-4SC6STM32F091RBT6Please tell me about this content.1)operating environment (temperature, humidity, vibration resistance, location)2)storage environment (temperature, humidity, vibration resistance, location)
I made custom bootloaders for STM32F7 and SM32H7, so I'm a bit familiar with the process to update an application when using a bootloader.But how does one make a bootloader for a Dual-Core STM32H7?I think it goes like this.If I use the CM4 core for the bootloader:CM4 bootloader checks SD card for updates (binary files)CM4 bootloader checks MD5 checksums of the binary filesCM4 bootloader halts CM7 coreCM4 bootloader erases FLASH for application for CM4 coreCM4 bootloader programs FLASH for application for CM4 coreCM4 bootloader checks FLASH for application for CM4 coreCM4 bootloader erases FLASH for application for CM7 coreCM4 bootloader programs FLASH for application for CM7 coreCM4 bootloader checks FLASH for application for CM7 coreCM4 hands execution over to application for CM4 coreApplication in the CM4 core starts the CM7 core (the CM7 core does not need a handover)Is this a good way to do this?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.