Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bare-Metal Embedded C Programming

You're reading from   Bare-Metal Embedded C Programming Develop high-performance embedded systems with C for Arm microcontrollers

Arrow left icon
Product type Paperback
Published in Sep 2024
Publisher Packt
ISBN-13 9781835460818
Length 438 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Israel Gbati Israel Gbati
Author Profile Icon Israel Gbati
Israel Gbati
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Chapter 1: Setting Up the Tools of the Trade FREE CHAPTER 2. Chapter 2: Constructing Peripheral Registers from Memory Addresses 3. Chapter 3: Understanding the Build Process and Exploring the GNU Toolchain 4. Chapter 4: Developing the Linker Script and Startup File 5. Chapter 5: The “Make” Build System 6. Chapter 6: The Common Microcontroller Software Interface Standard (CMSIS) 7. Chapter 7: The General-Purpose Input/Output (GPIO) Peripheral 8. Chapter 8: System Tick (SysTick) Timer 9. Chapter 9: General-Purpose Timers (TIM) 10. Chapter 10: The Universal Asynchronous Receiver/Transmitter Protocol 11. Chapter 11: Analog-to-Digital Converter (ADC) 12. Chapter 12: Serial Peripheral Interface (SPI) 13. Chapter 13: Inter-Integrated Circuit (I2C) 14. Chapter 14: External Interrupts and Events (EXTI) 15. Chapter 15: The Real-Time Clock (RTC) 16. Chapter 16: Independent Watchdog (IWDG) 17. Chapter 17: Direct Memory Access (DMA) 18. Chapter 18: Power Management and Energy Efficiency in Embedded Systems 19. Index 20. Other Books You May Enjoy

Navigating the STM32CubeIDE

When you launch STM32CubeIDE for the first time, you’ll see the Information Center. This center offers quick access to a number of valuable resources for STM32 firmware development.

To exit the Information Center, simply click the X on its tab. If you wish to revisit it later, simply navigate to Help | Information Center.

Figure 1.15: Information Center

Figure 1.15: Information Center

The STM32CubeIDE is based on the Eclipse framework, and therefore, the layout and elements are similar to those of other Eclipse-based IDEs.

Let’s go through the process of creating a new project:

  1. Either click Create a New STM32 project in the empty Project Explorer pane or select File | New | STM32 Project.
Figure 1.16: A workspace showing an empty Project Explorer pane

Figure 1.16: A workspace showing an empty Project Explorer pane

  1. You will be presented with the Target Selection window to select the microcontroller or development board for your project.
  2. Click the Board Selector tab.
  3. Enter NUCLEO-F411 into the Commercial Part Number field.
Figure 1.17: The Target Selection window

Figure 1.17: The Target Selection window

  1. From the displayed board list, select NUCLEO-F11RE, and then click Next.
Figure 1.18: The board list with NUCLEO-F411 selected

Figure 1.18: The board list with NUCLEO-F411 selected

  1. Give the project a name.
  2. For Targeted Project Type, select Empty.
Figure 1.19: The Setup STM32 project window

Figure 1.19: The Setup STM32 project window

  1. Click Finish to create the project.

You will see the new project, containing all the necessary startup files and linker scripts, in the Project Explorer pane.

Figure 1.20: The Project Explorer pane showing a new project

Figure 1.20: The Project Explorer pane showing a new project

You have been reading a chapter from
Bare-Metal Embedded C Programming
Published in: Sep 2024
Publisher: Packt
ISBN-13: 9781835460818
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime