1054 views|4 replies

270

Posts

0

Resources
The OP
 

[ST NUCLEO-U5A5ZJ-Q development board review] 02 Building a development environment + PWM lighting [Copy link]

This post was last edited by 怀穿少年梦 on 2024-1-30 21:28

When you get a new development board, you usually start by turning on the lights. So the first time you use this development board, you also start by turning on the LED lights.

1. Preparatory conditions

hardware:

  • An STM32U5A5ZJ development board;
  • A USB Micro-Type-cable;
  • A computer with STM32CubeMX and STM32CubeIDE installed;

document:

STM32CubeMX, STM32CubeIDE User Guide

2. Project establishment

I won’t introduce the installation of STM32CubeMX and STM32CubeIDE, there are many on the Internet.

1. Open STM32CubeMX, search for the MCU model, and start the project

Select the project without TrustZone

2. Configure the clock

1) Configure the crystal oscillator

2) Configure the clock

3. Configure LED

Check the schematic diagram. The LED light control pin is PC7, and it lights up when it is at a low level.

Search PC7 in STM32CubeMX and you can see that it is timer 3 channel 2, so you need to configure timer 3 channel 2 to PWM mode;

3. Configure the timer

Enable timer 3, channel 2

Set the timing 3 channel 2 parameters

4. Enable iCache and SMPS

1) Enable ICACHE

2) Configure SMPS

If these two items are not configured, a warning will be prompted when the project is generated.

5. Configuration and production engineering

6. Compile

7. Download verification

071f620bb7f750ddfe1cac8a2d000356

The project is as follows:

PWM_LED.zip (16.37 MB, downloads: 3)

PWM_LED.zip

16.37 MB, downloads: 0

This post is from stm32/stm8

Latest reply

Thanks a lot for sharing   Details Published on 2024-2-24 18:15
 

6824

Posts

11

Resources
2
 

When you get a new development board, you usually start by turning on the lights. So the first time you use this development board, you should also start by turning on the LED lights. And it’s a PWM light, which is advanced!

This post is from stm32/stm8

Comments

Boss, it's more advanced, the first thing to do is to port LVGL  Details Published on 2024-2-1 10:13
 
 

270

Posts

0

Resources
3
 
lugl4313820 posted on 2024-2-1 09:47 When you get a new development board, you usually start by turning on the light. So the first time you use this development board, you also start by turning on the LED light. And it's a PWM light, advanced advanced...

Boss, it's more advanced, the first thing to do is to port LVGL

This post is from stm32/stm8
 
 

40

Posts

0

Resources
4
 

Thanks a lot for sharing

This post is from stm32/stm8

Comments

Thanks for the encouragement  Details Published on 2024-2-24 22:42
 
 
 

270

Posts

0

Resources
5
 
kevin----- posted on 2024-2-24 18:15 Thank you very much for sharing

Thanks for the encouragement

This post is from stm32/stm8
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list