Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
I've attempted to get an interrupt when one of the three CAN transmit mailboxes empties. In MX:It generated: /* CAN interrupt Init */ HAL_NVIC_SetPriority(CAN_TX_IRQn, 0, 0); HAL_NVIC_EnableIRQ(CAN_TX_IRQn); HAL_NVIC_SetPriority(CAN_RX0_IRQn, 0, 0); HAL_NVIC_EnableIRQ(CAN_RX0_IRQn); HAL_NVIC_SetPriority(CAN_RX1_IRQn, 0, 0); HAL_NVIC_EnableIRQ(CAN_RX1_IRQn); HAL_NVIC_SetPriority(CAN_SCE_IRQn, 0, 0); HAL_NVIC_EnableIRQ(CAN_SCE_IRQn); I am using the HAL method HAL_CAN_AddTxMessage. This method seems to be working because I see CAN data on the wire. However, I never get an interrupt. I have a breakpoint on this function:void CAN_TX_IRQHandler(void) { /* USER CODE BEGIN CAN_TX_IRQn 0 */ /* USER CODE END CAN_TX_IRQn 0 */ HAL_CAN_IRQHandler(&hcan); /* USER CODE BEGIN CAN_TX_IRQn 1 */ /* USER CODE END CAN_TX_IRQn 1 */ } and it never gets there. Why might this be?
Hi,I'm trying to implement a simple tickless idle on my STM32H7 running on the CM7 core i use TIM1 for TimeBase.I followed the example from this video:https://www.youtube.com/watch?v=hVlpf1Rm4QoMy question is how it works, because the default implementation in FreeRTOSConfig.h is:Why is time to sleep set to __x__ = 0; ???#if configUSE_TICKLESS_IDLE == 1 #define configPRE_SLEEP_PROCESSING(__x__) \ do { \ __x__ = 0; \ PreSleepProcessing(__x__); \ }while(0) #define configPOST_SLEEP_PROCESSING PostSleepProcessingWith this implementation and my PreSleepProcessing and PostSleepProcessing functions I use an LPTIM to wake up (similar to the video):__weak void PreSleepProcessing(uint32_t ulExpectedIdleTime) { /* place for user code */ HAL_GPIO_WritePin(LED_1_GPIO_Port, LED_1_Pin, GPIO_PIN_SET); //HAL_TIM_Base_Stop_IT(&htim1); HAL_SuspendTick(); // suspend SysTick timer HAL_LPTIM_TimeOut_Start_IT(&hlptim1, 0xFFFF, ulExpectedIdleTime); // enable interrupt from low-power tim
Hello,Is it possible to purchase an the IAR Workbench For ARM for an individual or does the the IAR Systems only cooperate with legal entities?
Hi,Vous avez dit :I’m using the STM32H753ZIT6 in my design and I’m looking for clarification on the correct way to connect the VCAP pins. Since the LQFP144 package does not support the VDDLDO pin, what is the recommended capacitor configuration for VCAP?Should I use 2 × 100 nF capacitors to GND, or 2 × 2.2 µF to GND?Additionally, if there is no VDDLDO pin available on this package, how does the VCORE receive its internal supply voltage? Is there an internal voltage regulator that is powered directly from VDD?Thanks in advance for the guidance!
Need getting-started help with STM32C011J6M6 MCU and USART1 in single-wire Async mode (using STM32Cube toolchain and C language.)The hardware configuration is just the STM32C011J6M6 MCU (8-pin SOIC package) with one pin (pin 1) pulled up (4.7K to 3.3V). Intent is to use this in single-wire Async mode to communicate with outside world. All other MCU pins have similar pull-up resistors but are not otherwise connected. Power to the MCU for this test is furnished by the STLINK device. The test is using programmed I/O (no DMA, no interrupts.) The test program solely is written to experiment with the USART1 in single-wire mode on this device; there are no other aspects being tested or included. Tools in use:IDE 1.19.0MX 6.15.0PROG 2.10.0 Used STM32CubeMX to generate code template (targeting STM32CubeIDE), STM32CubeIDE to build the example (C-language) program, and STM32CubeProgrammer to push the resulting (elf) binary to the device using STLINK attached to the&nbs
Hi all, My goal is to develop a personal STM32 + TouchGFX project.I’m reaching out to you because I’ve gone through all the tutorials, YouTube videos, GitHub repositories, ChatGPT, etc., without finding a solution.I followed the tutorial ''https://www.youtube.com/watch?v=__wggrTcx_0''. It works at the end of the video,but when I reproduced it step by step exactly as shown, the result was a white screen. Let me explain:Here is my project: STM32F429I + SDRAM + FLASH N25W128 + RIVERDI RGB888 LCD with framebuffer management.My STM versions: CubeIDE 2.0 - CubeMX 6.15 - TouchGFX Designer 4.26. ST recommends starting a project with TouchGFX Designer.But since my project is custom,TouchGFX Designer does not offer a “custom” template. So how do I start my project? I therefore started with CubeMX, but after integrating TouchGFX into IDE with a background image (TouchGFX),the screen remains white. So I’m looking for a step-by-step method to successfully complete my project, namely, as a first st
Hi;I am trying to dial in a PID controller, and my values are small (0-1 range). The Chart widget seems to want to always set its Y axis bounds to [-10, 10], which makes it hard for me to see what's going on in realtime. I have to make an adjustment, then pause the acquisition to scroll way in to see what happened. Is there a way for me to manually specify the Y axis scale and have it stay persistent?
Hai All, New to the workbench software. Able to set the required parameters - STM32F446RE & IHM08M1. Getting stuck in the final path - CubeMx & IDE. But I am having the latest updated one. Kindly help me where I am missing.Jayaraj.A
Hello ST communityWhat voltage margin would you suggest if using the motor STSPIN32G0A2 controller IC ? The supply voltage of the IC is rated from 15-45V. Is it safe to supply it with 36V and connect a BLDC motor to it? I am scared that the IC may be damaged due to voltage transients. This question may sound a bit silly, but I need some opinions.The motor is a 150W maxon EC 60 flat type, and the product is intended for the consumer industry. A gear with a ratio of 1:26 is connected and the motor and it is used to propel a machine (size of a vacuum cleaner) that is moving with a constant speed on the ground. The power supply is a mean well RPS-300-36-C type and the PCB also features a bulk capacitor of 2200 uF. The schematic and layout is similar to the STEVAL SPIN3202.Thank you for sharing your opinions.
Hello.I got a STM32U599J-DK engineering sample from the ST official warehouse (don't ask me how I get this cuz I don't know either).MB1829-U599 NJQ-B01A223400084I searched the st.com and was unable to locate its resources.(user manual, datasheet, data brief, OBD binary).I wonder if any ST employee got these resources and send them to me if you please as I wish to reuse this board to it's full extent.Or, are its resources compatible with the STM32U5A9J-DK's? If so, please send me an original OBD demo of the STM32U599J-DK if available.Thanks in advance.
In your middle-ware for the usbpd i can't find any of the definition for the functions in usbpd_core.h.https://github.com/STMicroelectronics/stm32-mw-usbpd-core Example* USBPD_PE_SVDM_RequestMode* USBPD_PE_SVDM_RequestModeEnter* USBPD_PE_SVDM_RequestModeExit Can't be found anywhere in the repo. It looks like you compiled them all down to assembly files. Is there a reason for this or am i missing something?
Hi Everyone,I already have IPv4 via DHCP working on STM32H753ZI with Azure RTOS (ThreadX + NetX Duo). I need help getting IPv6 via SLAAC (stateless autoconfiguration) working. Best Regards,Divya P
Hello, STM employees,I have bought the NUCLEO-N657X0 board with the intentions of using its USB on the go module. I have previous experience with USB with STM32f401, where I had to employ a single function CDC_Transmit(), and STM32CubeIde and Hal did the rest. It was simple and easy to implement. Currently Im struggling with doing the same with the N6 MCU, but proved impossible. I've tried all tutorials found on your site and community available ones, but could not find a single example that would send "Hello World!" to my PC. I'm sure my board works as I've run a basic blink sketch from the external ROM.Please, if you could add the same middleware for f401 to n657, that would be great.
Hi, I have an STM32C092RCT6U development board and I am trying to perform UART-based bootloading. My board has a B3 button for selecting the boot mode. I am using the Flash Loader Demonstrator to flash the application, but I keep getting the following error:“No response from the target, the bootloader cannot be started.” I also tried using STM32CubeProgrammer. I configured it for UART and attempted to connect, but the connection fails with the error: “Activating device: KO. Please verify the boot mode configuration and check the serial port configuration. Reset your device and try again.” I am using a USB-to-UART module connected to PA10 (RX) and PA9 (TX) with the lines crossed (TX→RX, RX→TX).I also tested using inbuilt Virtual COM port, However, the device is unable to communicate and does not enter the bootloader. Could you please help me resolve this issue?
Hello,For the last couple of days I have tried to create a bit stream with DMA using a timer but have not yet succeeded. The problem seems to be loading the data from an array into the timer register. I have tried this exact same code on an STM32L072 and it worked perfect but when going to the STM32U083 it doesnt anymore. Since the STM32U083 is a newer model I cant find too much about it online so if anyone also has some recommendations on info about this microcontroller and the HAL library online I would appreciate it. The settings of the timer, when I change the pulse I can see this on the scope. Also when using the DMA function to load the data in it seems that the pulse is dependent on the length of the array, it just seems like it doesnt use the values in the array. Below you will find the code, everything seems to work as the callback is also triggered when the pulse is finished./* ****************************************************************************** * @file: H
Hi,I am working on a pretty simple GUI and everything is working nicely so far.As soon as I add a video I am getting a compilation error. See below. If I take the video out, everything works.Since TouchGFX needs mjpeg format, I had to convert my video file into mjpeg. The file works fine in windows. I don't know if it could be from an issue with the format or if there is an actual problem with TouchGFX itself.What do you guys recommend to generate or convert mjpeg files? Run Simulator Generate Done Generate Assets make -f simulator/gcc/Makefile assets -j8 Reading ./application.config Reading ./target.config Done Post Generate touchgfx update_project --project-file=simulator/msvs/Application.vcxproj Done Compile make -f simulator/gcc/Makefile -j8 Reading ./application.config Reading ./target.config Compiling generated/gui_generated/src/screensaver_screen/ScreensaverViewBase.cpp Compiling generated/gui_generated/src/standby_screen/StandByViewBase.cp
Hi ST Team,I need to implement USB Host Printer support on STM32F767 using USBX.I'm trying to send PCL6 (HP LaserJet) print jobs via USB.Challenge: No Host Printer example exists in stm32-usbx-examples(only Device Printer and Host MSC/CDC).What I need:1. Is USBX Host Printer class available? Any code?2. How to send binary PCL6 data to printer (USB Bulk OUT)?3. CubeMX configuration for USB Host (FS/HS)?4. Printer enumeration and status read examples?5. Any complete working reference project?Current Setup:- STM32F767ZI + FreeRTOS + USBX- HP LaserJet printer (USB)- Using HP's jetlib for PCL6 generationPlease advise or point to relevant docs/code.Thanks,Madhu07
Hi there, I'm using Nucleo-G474RE to send a bit stream over Simulink, instead of receiving 24 bits on the oscilloscope i can read only 8 bits, which are supposed to be the 8 bits in the middle that have the address of the peripheral and the status of the I2C block gives me 516 which is not on the documentation from matlab.
I'm currently trying to boot STM32MP257 DK board.I managed to do it in the past with starter and developer package. I recently got back to it and tried to boot it again but without success.I tried to upload starter package to SD card and EMMC, both ways are not working.I followed guide on https://wiki.st.com/stm32mpu/wiki/STM32MP25_Discovery_kits_-_Starter_PackageSTM32 programmer is able to see the device:❯ STM32_Programmer_CLI -l usb ------------------------------------------------------------------- STM32CubeProgrammer v2.20.0 ------------------------------------------------------------------- ===== DFU Interface ===== Total number of available STM32 device in DFU mode: 1 Device Index : USB1 USB Bus Number : 001 USB Address Number : 006 Product ID : USB download gadget@Device ID /0x505, @Revision ID /0x0011, /STM32MP257FAK Rev.Y, Serial number : 003B002E4136500C00373653 Firmware version : 0x0110 Device ID : 0x0505However, each time I try to upload image to the SD card I get follow
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code and a linker script content. Please read this post: How to insert source code. Hi everyone, I'm trying to interface an ICNA3306 LCD display using STM32's QSPI peripheral. The LCD uses a custom protocol where commands are sent as: Instruction: 0x02 (8 bits, 1-wire) Address: 0x00, CMD, 0x00 (24 bits, 1-wire) Expected behavior: 32 clock pulses (8 instruction + 24 address) Actual behavior: Only 8 clock pulses (instruction only - address phase not transmitted) Here's my code: HAL_StatusTypeDef ICNA3306_WriteCommand(uint8_t cmd) { QSPI_CommandTypeDef sCommand = {0}; sCommand.InstructionMode = QSPI_INSTRUCTION_1_LINE; sCommand.Instruction = 0x02; sCommand.AddressMode = QSPI_ADDRESS_1_LINE; sCommand.AddressSize = QSPI_ADDRESS_24_BITS; sCommand.Address = (0x00 << 16) | (cmd << | 0x00; sCommand.AlternateByteMode = QSPI_ALTERNATE_B
STM32CubeMX v6.5.0 STM32Cube FW_F4 V1.27.0USB_FS HOST CDCusbh_cdc.hfunction static void CDC_ProcessReception(USBH_HandleTypeDef *phost)line 767 if (((CDC_Handle->RxDataLength - length) > 0U) && (length > CDC_Handle->DataItf.InEpSize))fix: if (((CDC_Handle->RxDataLength - length) > 0U) && (CDC_Handle->RxDataLength > CDC_Handle->DataItf.InEpSize))
Hello everyone, I'm creating a TIM3-based project using CubeMX. I'm using the Nucleo-H755ZI development board, which features the STM32H755ZITx dual-core MCU.I've completed all the necessary configurations—GPIO settings, TIM settings, SYS, and PROJECT settings. However, when I click "Generate Code," it creates the main.c file but does not generate the xxx_FLASH.ld linker script file. My selected Toolchain is STM32CubeIDE. I'm using CubeMX version 6.15 and CubeIDE version 1.19.Does anyone have any idea what might be causing this issue?
Dear STMicroelectronics TeamI am currently developing a wearable board (WB) that integrates NFC communication and wireless charging features. For this design, I am considering using the ST25DV64KC as the NFC Dynamic Tag and the ST25R3916B as the NFC Reader/Transmitter.I work for a design company based in Colombia, with mass production planned in China and Taiwan. I have reviewed the document AN5918, which appears to be focused on NFC-based wireless charging designs.I would like to request kindly:Access to the full AN5918 application note, andDetailed guidelines or parameters for implementing the DC rectification stage from the NFC antenna in a WLC configuration.Your support in providing technical documentation, design recommendations, or reference schematics would be greatly appreciated.
It seems that the linker file is always corrupted when is generated by CubeMX for VS Code. I have done a workaround if needed. Beste regards,
Hello there,We are working on a project that includes a STM32WB5MMG in a custom board and we would like to update via OTA our firmware application, as well as the BLE stack and FUS. Our project is based on the P-NUCLEO-WB55.Nucleo 2 Images. This project defines two regions (slots) in the flash, one used to store the firmware to run and the other as a storage area for the new firmware image sent via OTA. The question here would be if we update either the BLE stack or FUS if they also have a separate storage area beyond the SFSA address (the start address where the current stack and FUS are stored) or if a flash region between the end of slot 2 and the SFSA address must be reserved as temporary storage for the new stack/FUS image.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.