SlideShare a Scribd company logo
GlobalLogic
Embedded Starter
Kit
Hello World Project
Training 01
Bare Metal
Trainings
Contents
 Assignments and Goals
 Theory
 Practice
 Individual task
19.10.2021 14:03 Bare Metal – Training 01 2
Assignments and Goals
• Create “Hello World” firmware for GLESK
(LED blinking)
• Learn GLESK HW basics
• Learn how to create, build, flash and debug
firmware using Keil IDE
19.10.2021 14:03 Bare Metal – Training 01 3
LEDs schematics
19.10.2021 14:03 Bare Metal – Training 01 4
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 5
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 6
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 7
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 8
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 9
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 10
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 11
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 12
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 13
Create “Hello World” Project
19.10.2021 14:03 14
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 15
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 16
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 17
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 18
Create “Hello World” Project
19.10.2021 14:03 Bare Metal – Training 01 19
Build sequence (classic)
19.10.2021 14:03 Bare Metal – Training 01 20
Build sequence (CubeMX)
19.10.2021 14:03 Bare Metal – Training 01 21
Source code tree
19.10.2021 14:03 Bare Metal – Training 01 22
Keil IDE introduction
19.10.2021 14:03 Bare Metal – Training 01 23
Individual task
• Add more LEDs to the project
(PD14, PD13, PD12)
• Implement custom blinking sequence
with 4 LEDs
(each group receive personal variant)
• Go through the code step-by-step with help
of debugger
19.10.2021 14:03 Bare Metal – Training 01 24

More Related Content

PPTX
Bare metal training_00_prerequisites
PPTX
Bare metal training_06_I2C
PPTX
Glesk worshop
PDF
FOSDEM 2024 Neo in the Matrix
PDF
Individual task Networking
PPTX
Networking essentials lect3
PPTX
Gl embedded starterkit_ethernet
PPTX
Networking essentials lect2
Bare metal training_00_prerequisites
Bare metal training_06_I2C
Glesk worshop
FOSDEM 2024 Neo in the Matrix
Individual task Networking
Networking essentials lect3
Gl embedded starterkit_ethernet
Networking essentials lect2

More from Roman Brovko (20)

PPTX
Networking essentials lect1
PPTX
Bare metal training_07_spi_flash
PPTX
Bare metal training_05_uart
PPTX
Bare metal training_04_adc_temp_sensor
PPTX
Bare metal training_03_timers_pwm
PPTX
Bare metal training_02_le_ds_and_buttons
PPTX
C language lect_23_advanced
PPTX
C language lect_22_advanced
PPTX
C language lect_21_advanced
PPTX
подготовка рабочего окружения
PPTX
C language lect_20_advanced
PPTX
C language lect_19_basics
PPTX
C language lect_18_basics
PPTX
C language lect_17_basics
PPTX
C language lect_16_basics
PPTX
C language lect_06_introduction
PPTX
C language lect_09_introduction
PPTX
C language lect_10_basics
PPTX
C language lect_11_basics
PPTX
C language lect_13_basics
Networking essentials lect1
Bare metal training_07_spi_flash
Bare metal training_05_uart
Bare metal training_04_adc_temp_sensor
Bare metal training_03_timers_pwm
Bare metal training_02_le_ds_and_buttons
C language lect_23_advanced
C language lect_22_advanced
C language lect_21_advanced
подготовка рабочего окружения
C language lect_20_advanced
C language lect_19_basics
C language lect_18_basics
C language lect_17_basics
C language lect_16_basics
C language lect_06_introduction
C language lect_09_introduction
C language lect_10_basics
C language lect_11_basics
C language lect_13_basics
Ad

Recently uploaded (20)

PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Trump Administration's workforce development strategy
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
1_English_Language_Set_2.pdf probationary
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Hazard Identification & Risk Assessment .pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
Computer Architecture Input Output Memory.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Weekly quiz Compilation Jan -July 25.pdf
Trump Administration's workforce development strategy
Indian roads congress 037 - 2012 Flexible pavement
Chinmaya Tiranga quiz Grand Finale.pdf
History, Philosophy and sociology of education (1).pptx
Virtual and Augmented Reality in Current Scenario
LDMMIA Reiki Yoga Finals Review Spring Summer
1_English_Language_Set_2.pdf probationary
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
What if we spent less time fighting change, and more time building what’s rig...
Hazard Identification & Risk Assessment .pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Computer Architecture Input Output Memory.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
B.Sc. DS Unit 2 Software Engineering.pptx
FORM 1 BIOLOGY MIND MAPS and their schemes
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Ad

Bare metal training_01_hello_world

Editor's Notes

  • #5: Analyze schematics together with the students.
  • #6: Open Kiel IDE and create new project.
  • #7: Create folder for project. Go inside it. Type name of the project and press Save button.
  • #8: Select target microcontroller – STM32F407VGTx.
  • #9: Select basic components for the project (see picture for details).
  • #10: Open CubeMX Framework to configure microcontroller settings.
  • #11: Configure pin PD15 as GPIO Output. And press Generate Code button. Close CubeMX. Include new files to the project (just press OK button).
  • #12: Open Main.c file and find main function inside it.
  • #13: Modify while loop with following code.
  • #14: Build application (press F7 button).
  • #15: Fix “stm32f4xx_hal_exti.h” file missing error. It is happens sometimes.
  • #16: Check that build completed with 0 errors or warnings. If errors are present – fix them.
  • #17: Open options window for project.
  • #18: Select ST-Link programmer.
  • #19: Download code to flash memory (F8 button).
  • #20: Press “RESET” button on the Discovery (black one). Blue LED should blink. First program is ready!!! Congratulations! Show step-by-step code execution (live session).
  • #23: Go inside source code tree. Explain what is all about.
  • #25: Teacher should provide task for each group and control the result. Something like: blink 2 times red, one time – blue and green simultaneously, 3 times – all leds (in a cycle).