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
Im trying to drive 3.5 inch TFT LCD with STM32H743 using FMC. My setup is : ChipSelect: NE1 Memory Type: LCD Interface LCD Register Select: A18 Data: 8 Bits My timing settings are (FMC Clock: 10Mhz): Address setup time in FMC clock: 3 Data setup time in FMC clock: 2 Bus Turn around time in FMC clock: 2 Here are the parts of code: #define FMC_BASE ((uint32_t)0x60000000) #define LCD_CMD (*((volatile uint32_t *)(FMC_BASE))) #define LCD_DATA (*((volatile uint32_t *)(FMC_BASE | (1 << 18)))) When I try to write a data, as shown in the attachment, my logic analyzer shows me multiple WR event occured and shows some weird signals on data line (D0-D3). I do not understand where I did wrong...
Attempting to blink an LED using output compare function of a timer, but I've not been able to get signal or toggling to happen on the pin.I'm using TIM5 channel 3, because I'm planning on using SPI1 eventually (I need to use a clock source separate from SPI1, which is on APB2) and the TIM5 associated alternate function GPIO on PA2 is in a convenient location.Meter on the pin indicates a floating pin signal (not going high or low), and LED visually indicates same (no dim light or other visual indication of rapid toggling).The pin itself is fine as normal GPIO: setting same pin as GPIO (not alternate function for TIM5), I'm able to blink "manually" via software. It seems to just be using that pin as TIM5 that causes problems.Here's the CubeMX setup:My understanding from the datasheet is that TIM5 is on APB1:APB1 timer clocks set to 10.5MHz:...so TIM_CLK/CKD/((PSC + 1)*(ARR + 1))= 10500000 / 4 / ((43749 + 1) * (59 + 1))= 1 Hz (should be blinking once per second)
I have worked with ST-LINK/2 on Windows 10 for several years. I must upgrade to Windows 11 because Windows 10 support ended a few months ago. Today, I tried to program the WIO E5 Mini microcontroller, but I found it's impossible because there's no driver for it on my computer.I found some information that I should install version 9 of that driver. I downloaded it from the original STM source and ran it, but nothing changed. Is till don't see this driver among my devices. Installation ended without any error. Is there anybody who can point out what I am missing?
Hi!I want my ESP32F411CE Blackpill to operate as an SPI slave device. The Master is not my creation, it is an already existing hardware, and my task is to emulate some Slave.Well, almost SPI. Here is what happening: Master sets CS line high, and reads 3 byte from the Slave on MISO line. Then it sets CS line low, and sends one byte on MOSI line. CLK frequency is 1MHz, SPI Mode2. I know it is not a proper SPI communication, so there is a transistor added that inverts the CS line. So the MCU doesn't see this in the image above, but the CS line inverted. It is a win-win, because it make the second short clock signal skipped, and that is exactly my intention.I don't care what Master sends, I only want to send that 3 bytes. This is all I want to do! For the first step I created a code, that sends the same 3 bytes, so I can see whan is happening on the oscilloscope / logic analyzer. These three bytes are: volatile uint8_t buttonsOutSPI[3] = { 0xAA, 0xAA, 0xAA };ORvolatile uint8
Hi Everybody!At this time I would like to use two EVAL6498L board for a DC brushed motor, (H-bridge setup).Selected mosfet is: IRFZ34NPBF.Selected PWM frequency: 20kHz width the STM32G431 MCU.The PWM signals are generated on the GPIOs, and I’ve verified that they reach the driver’s HIN and LIN pins. The low-side MOSFETs switch correctly, but the high-side MOSFETs won’t turn on. The bootstrap capacitors are charged to about 12 V (measured directly across the capacitor leads). The control table is the following:TIM1 chDriver InputForwardRevers1A LINForced HighForced Low2A HINForced LowPWM3B LINForced LowForced High4B HINPWMForced Lowhttps://www.st.com/resource/en/data_brief/eval6498l.pdfAdded R4 and R7 with 10 Ω resistors.What am I doing wrong?
Hi, I would like to develop an application using ADC + TIMER + DMA. My base code doesn’t work, and I don’t understand why. To debug, I introduce the variable "toto". This value of this variable doesn't change. I use STM32CubeIDEv1.19.Best regardsThomas- H
When I open the official example using the example selector, CubeMX cannot display the graphical configuration of that example. I would like to know if it is possible to display the graphical configuration of the example in CubeMX. Thank you very much, because that would make learning much easier.
Originally a comment on the "Using CAN (bxCAN) in Normal mode with STM32 microcontrollers (Part 2)" Knowledge Base article.Moved to the forum for better visibility & discussion.Hi,I just using STM32CubeIDE for 2 or 3 days. I am doing a test with a Nucleo-L476RG and CAN bus. With you help, your sample, I make my board talking with other board of mine.Just a question, maybe a *** one, where can I gather informations about CAN_TxHeaderTypeDef, uint32_t RTR or uint32_t IDE... and so mutch other symbols? Is there a documentation about?Best Regards,Maurice.
I'm getting the following error when trying to install STM32CubeIDE in Ubuntu 22.04: dpkg: error processing archive /home/m4l490n/Downloads/makeself_dir_Dg5j3M/segger-jlink-udev-rules-7.94h-linux-all.deb (--unpack):trying to overwrite '/etc/udev/rules.d/99-jlink.rules', which is also in package jlink 7.9611Errors were encountered while processing:/home/m4l490n/Downloads/makeself_dir_Dg5j3M/segger-jlink-udev-rules-7.94h-linux-all.debN: Download is performed unsandboxed as root as file '/home/m4l490n/Downloads/makeself_dir_Dg5j3M/segger-jlink-udev-rules-7.94h-linux-all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)E: Sub-process /usr/bin/dpkg returned an error code (1) Does anyone have an idea of what's going on?
What's the best way to request samples?The store indicates sorting by free samples, but I'm at a loss to understand how to request past that.
Hi team, I am working with the STM32H7S78-DK board and implementing TLS 1.3 using WolfSSL on the client side. Project setup: Board: STM32H7S78-DK TLS library: WolfSSL (TLS 1.3 enabled) Network: TCP client socket Server: OpenSSL TLS 1.3 server Certificates: Public and private keys generated and configured issue: I am able to create the TCP client socket successfully, but when I attempt to establish a secure TLS connection with the OpenSSL server, the handshake fails. Handshake error: -308 1)What does the WolfSSL handshake error -308 indicate during a TLS 1.3 connection? 2)What are the possible causes of this error when communicating with an OpenSSL TLS 1.3 server? Any suggestions, references, or troubleshooting steps to resolve this issue would be very helpful. Thank you for your support. thanks & regards, Karthik.
I generated project with CubeIDE for Nucleo F411RE board with defaults.Now I want to create my own function void LED_blink(int blink_num);So, I created ledfunc.h and ledfunc.c files.This is my ledfunc.h file: #ifndef INC_LEDFUNC_H_ #define INC_LEDFUNC_H_ void LED_blink(int led_number_blink); #endif /* INC_LEDFUNC_H_ */and this if my ledfunc.c file: void LED_blink(int led_number_blink) { for (int i = 0; i < led_number_blink; i++) { HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_SET); HAL_Delay(100); HAL_GPIO_WritePin(LD2_GPIO_Port, LD2_Pin, GPIO_PIN_RESET); HAL_Delay(100); } }and I want to use LED_blink(2) function in main.c( which was generated by CubeIDE )When I try to build code, I'm getting errors LD2_GPIO_Port undefinedYes, those defined in main.hWhere (in which file ) I need to include #include "main.h" ?I need proper way where to add #includeEdited to apply source code formatting - please see How to insert source code for future reference.
We use a an STM32L4R9-DISCO board to start SW development on a project.We run own OS on the board and integrating the HAL/BSP modules for the board (e.g. STM32CubeL4\Drivers\BSP\STM32L4R9I-Discovery\stm32l4r9i_discovery_io) is not feasible for us.I have basic I2C running (ack from the MFX) but no reaction to any commands, using the registers defined in mfxstm32l152.hI therefore need basic documentation of the MFX_V3 I2C communication for setting up port directions, getting and setting ports.rgds Tage
I created standard project in CubeIDE for Nucleo 411RE ( with default settings)I found some code (which interfaces 4x4 keypad) and try to repeat it with HALI setup pins PC0,PC1,PC2,PC3 with Input mode and Pull-up.PC4,PC5,PC6,PC7 as Output and GPIO output level - High all this based on my understanding code I try to repeat ( below )Did I do correct repeating with HAL ? ( As I understand CubeIDE will generate GPIOs the same way as function ?void keypad_init(void) { /*Enable clock access to GPIOC*/ RCC->AHB1ENR|=RCC_AHB1ENR_GPIOCEN; /*Set PC0 to PC3 as input*/ GPIOC->MODER &= ~(GPIO_MODER_MODE0|GPIO_MODER_MODE1|GPIO_MODER_MODE2|GPIO_MODER_MODE3); /* Activate internal pullup resistor for PC0 to PC3*/ GPIOC->PUPDR|=GPIO_PUPDR_PUPD0_0|GPIO_PUPDR_PUPD1_0|GPIO_PUPDR_PUPD2_0|GPIO_PUPDR_PUPD3_0; /*Set PC4 to PC7 as output*/ GPIOC->MODER |= GPIO_MODER_MODE4_0|GPIO_MODER_MODE5_0|GPIO_MODER_MODE6_0|GPIO_MODER_MODE7_0; GPIOC->MODER &=~( GPIO_MODER_MODE4_1|GP
I'm trying to develop a simple Flash tool for my company using the CubeProgrammer_API.dll.I got most things working so far, but I can't get the External Loaders to work.CubeProgrammer_API exposes some functions like:setExternalLoaderPathsetLoadersPathgetExternalLoadersremoveExternalLoaderBut ther is no place to pass a specific loader to a function like 'downloadFile' or to select one of the 91 Loaders provided by CubeProgrammer.How can I select one loader for my project using the CubeProgrammer_API?
my mcsdk ver is 6.3.2,I want to driver my BLDC moto with steval_esc001v1,but the moto will stop and shake after 3-phases speed up. as the motor shake,and bus voltage(current) shakes.i want to know the Possible causes and how shuld to solve it.my motor is a2212, 2200kv ,7pole pairs,7.4V - 12.6V。appendix is my stwb6 filesthanks a lot。
Hello everybody, I am currently trying to trigger a DMA request with TIM12. I have configured the timer in PWM Input Mode on CH1. While for every other timer there is available a DMA request, there is nothing for TIM12 except the one bellow(in RF0399): Is there any trick to come around from it? I found some older discussion but i didn't have any luck:How to trigger SPI DMA transfer using TIM12 TRGO on STM32H7 Timer events as DMA triggers - Improving the current situation in CubeMX/HAL Thanks in advance for your time!
Hi!I have the following code:uint32_t currentTicks; do { currentTicks = handle->controlData.ticks; // controlData.ticks is volatile // copy a lot of data from handle->controlData ... } while(currentTicks != handle->controlData.ticks);handle->controlData.ticks (and the other data fields) are regularly updated, triggered by an interrupt, which could happen during copying of this data. The idea is that if the while check is false, just copy all the data again, since during the previous copying of said data new data must have arrived and the copied data would therefore be inconsistent.We are running on an STM32H7 and the data is in DTCMRAMFor this to work, is a Memory barrier instruction required or could there be any other pitfalls?
So coincidental enough all the projects I have done before required a RTC /w LSE. I am now working on a project that does not need a LSE, and I am finding that TF-A keeps throwing a panic because of this. The protos we had fortunately had the circuit DNL, so adding an LSE clock fixed the problem. Is there a way to disable this? or at least use the LSI? I tried configuring it to use the LSI but still same panic. //Error MessageNOTICE: Early console setupPANIC at PC : 0x2ffe6b5bException mode=0x00000016 at: 0x2ffe6b5bThank you for any help.
We have designed a product using the MP257, and based the board layout of the EVK and we are now taking the combined product through RED & FCC testing.Generally the board is very quiet, but we are experiencing problems with the Ethernet clocks and we are seeing strong 125MHz & harmonics emissions.We are using the RTL8211F and haven't changed the traces associated with the EVK, we loaded the design into Altium, and made a few changes.My question is about Clock sources, what is the best way to run the 125MHz, by default CubeMX seems to generate clock, and the RTL8211 also seems to generate a clock, is this correct?I can see 4 125Mhz on the spectrum analyser, 3 very close together, I believe from the RTL8211 crystal and 1 approx 40 KHz apart which I assume is from the MP257, does this seem to make sense?The switch functionality is working
Hi Community Members,We are using a MYB-LD25X development board and are able to boot Linux successfully on the A-core. However, we are facing issues when debugging Cortex-M33 code generated by STM32CubeMX. Although we assign the required peripherals exclusively to the M33 core, the initialization code generated by CubeMX does not work as expected. When the M33 firmware starts, it consistently enters a HardFault. Has anyone experienced a similar issue with the MYB-LD25X / STM32MP2 platform? Any guidance on correct peripheral assignment, resource management (RIF/ResMgr), or CubeMX configuration for M33 debugging would be greatly appreciated.Thank you in advance.
My hardware design has finalized STM32H563 MCU (from ST Microelectronics) to interface 5-port managed Ethernet Switch (KSZ8795 from Microchip). I'm tried to use orix board library code but unable to make it run.I have following questions,1. Is KSZ8795 intended to work with Microcontrollers as opposed to microprocessor which used Linux/Windows as a de-facto OS.2. Is KSZ8795 compatible with STM32H563 MCU?3. Is KSZ8795 driver port available for FreeRTOS?
I made a mistake and set PC2 as an ADC input and PC3 as an GPIO_EXT. The IDE does not warn you when setting the pin to GPIO_EXT, it only shows the warning in the ADC, so I missed it since the ADC was already set.The question is, is there anyway to make this work. The issue I am seeing is the ADC is reading incorrectly. The GPIO_EXT works fine. Thanks.
Original title: MOSI is not responding in SPI interface TI C2000 MCU & L9026 Edited for clarity. Hi All, We are having SPI interface between TI C2000 MCU (TMS320F28P659DK8-Q1) and High Side Driver(L9026) the Our Target Board. Here are some observations regarding SPI communication. MISO(L9026) is not responding, not giving We are able to send data in L9026 & MISO is responding. Supply voltage of VDDIO=3.3V, VBATT=12V, IDLE (HIGH)=3.3V, IN0(HIGH)=IN1(HIGH)=3.3V,(All voltages are within the limit as per L9026 datasheet). I have attached the logs for that. We Sent in MOSI CFG_1: 0x8900 (put device in active mode, frame counter = 0). We sent in MOSI STA_1:0x4403 , but the response is 0x2201, not able to read device status register. We also checked in Idle mode too Supply voltage of VDDIO=3.3V, VBATT=12V, IDLE (HIGH)=3.3V, IN0(LOW)=IN1(LOW)=0V, in all the cases response not able to read device status register. I have attached the logs for that.  
Hi everyone,I’m trying to control the backlight brightness of the display on my STM32N6570-DK using TIM8, channel 2 complementary (CH2N) in PWM mode (it's correct?).Current setup:TIM8 clock: 100 MHz (APB2 peripherals)Prescaler: 49Auto-reload (ARR): 99 → theoretically 100 brightness stepsPWM mode: PWMN (CH2N)Output: connected directly to the display BL pinTimer started with HAL_TIM_PWMN_Start(&htim8, TIM_CHANNEL_2)Problem:PWM only works when using very high PSC and ARR values (e.g., PSC=512, ARR=3126), but then the PWM frequency is very low (~60 Hz).With proper values for ~20 kHz PWM and 1000 brightness steps (PSC=4, ARR=999), the display is either fully on or fully off — no intermediate steps are visible.The display pin seems to accept only CH2N, not CH2 normal.Questions for the ST community:Is there an “official” way to drive the STM32N6570-DK backlight using PWMN with linear, visible steps?Are there any STM examples for backlight PWM on this DK board using TIM8_CH2N?Thanks in adv
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.