강의

멘토링

커뮤니티

Hardware

/

Embedded IoT

Learning RISC-V Architecture Through Debugging - Part 2

Explains the core concepts and practical tips of RISC-V, the latest open-source based CPU architecture, simply and in detail.

(5.0) 7 reviews

67 learners

  • austinkim
시스템반도체
이론 실습 모두
하드웨어
cpu-architecture
cpu
riscv

Reviews from Early Learners

What you will gain after the course

  • I can effectively answer and explain RISC-V-related questions in technical interviews.

  • You can learn the operating principles of RISC-V's core functionalities, including Exception, Interrupt Controller, and Calling Convention.

  • Using the TRACE32 simulator program, Exception, Interrupt Controller, and Calling Convention functions can be debugged and practiced.

  • You can understand how the RISC-V architecture is utilized in OS kernels like the Linux kernel.

  • Bootloaders or Linux kernel startup code running on RISC-V based systems can be analyzed.

1. To commemorate the launch of Korea's first RISC-V course, we are issuing a 30% discount coupon (first come, first served for 100 people).

Coupon link: https://inf.run/Yh8vb

2. 2025 Latest Course Renewal

We've discovered the latest RISC-V architecture features and valuable content that can be directly applied to real-world projects, and have added the following courses.

  • 'Synchronous Exception Behavior' session added (4 lectures) - 07/23 (2025)

In the latest system software industry
the emerging RISC-V architecture

Recently, the RISC-V architecture, an open-source-based CPU architecture, has been emerging. If you look at IT-related press articles or news, you can immediately see the following content:

  • nVidia, Intel, and Qualcomm, among other big tech companies, are developing RISC-V-based products (chipsets).

  • The number of startup companies in Korea designing various chips using RISC-V is increasing, and the proportion of developing products based on RISC-V devices is growing.

  • RISC-V-based CPU architectures are widely utilized when designing AI semiconductors.

  • By 2026, 15 billion devices are expected to be released based on RISC-V.

  • In graduate school (processor design), various research is being conducted using toolkits that can design RISC-V CPUs.

The proportion of embedded and system software companies developing products using RISC-V CPU architecture is increasing. Therefore, job seekers need to prepare for RISC-V-related questions in technical interviews as well.

Background of Creating the Course

From a beginner's perspective, RISC-V architecture is difficult to learn. The reasons are as follows:

  • I don't know what's important among the vast content that makes up RISC-V

  • I'm not sure which features among the components that make up RISC-V are utilized in real-world projects

  • No matter how hard you read the RISC-V specification document, it's difficult to understand right away


  • It's difficult to understand what the term RISC-V itself means when explaining RISC-V


Compared to the Arm architecture, there is insufficient material related to the RISC-V architecture, and the reality is that there is a lack of resources that explain RISC-V concretely and easily. This course was created to address the difficulties that system software developers, including new developers, experience in the process of learning RISC-V.

Course Structure and Part 1, Part 3 Course Roadmap

This lecture covers the content of Part 2, which deals with the core functionality of RISC-V, from the complete RISC-V lecture series.

You can check the complete RISC-V architecture lecture in the roadmap - 'RISC-V Architecture for System Software Developers' course.

Key Differentiating Points of the Course

1. RISC-V Architecture Debugging with TRACE32 Simulator Program (Educational)

What's the shortcut to learning RISC-V architecture (registers, assembly instructions, Privilege modes)? It's through hands-on debugging practice.

If you take this course, you can download the educational TRACE32 simulator program from 'Inflearn Course Materials' and directly use the TRACE32 simulator program to practice RISC-V architecture registers, assembly instructions, and Privilege mode hands-on.

For reference, TRACE32 debuggers and related programs are widely used throughout system software development. TRACE32 programs require a license to run.

2. Providing 5 kernel memory dumps extracted from RISC-V board

The most important capability required in system software development is problem-solving ability. Among these, the ability to analyze and resolve crash issues is most needed. In this lecture, we will conduct debugging practice on exceptions and calling conventions by debugging 5 kernel crash memory dumps extracted from Vision-Five 2, one of the most popular RISC-V boards. Students taking this course can download the TRACE32 program along with 5 memory dumps to directly debug exceptions and calling conventions.

3. Carefully selected core content explained in an easy-to-understand way

Beginners often start by obtaining and analyzing reference documents when learning RISC-V, but from a beginner's perspective, it's difficult to get a sense of what aspects of RISC-V should be learned first. This is because it's hard to know what to learn well first. In this lecture, we carefully select and explain content that can be applied in practice and must be thoroughly understood. For example, we open memory dumps and kernel logs received from RISC-V-based devices and explain registers and assembly instructions in an easy and detailed manner.

4. Explain with specific examples along with software and stack

RISC-V is mostly learned by those who want to excel in system software development or enter this field. This lecture explains how RISC-V is utilized in real-world projects through various examples.

  • How software executes in RISC-V systems

  • How the booting process works in RISC-V systems

  • How to perform debugging and reversing on RISC-V systems

By taking this course, you can naturally and quickly develop practical skills along with understanding the RISC-V architecture content.

5. Explaining RISC-V in comparison with Arm architecture

Looking at the ecosystem of the system software industry, by 2025, the embedded and chipset industry ecosystem is structured around the Arm architecture. Many system software developers are familiar with Arm processors and Arm architecture. In this lecture, we explain the core concepts of RISC-V alongside the Arm architecture.

  • Types of Exceptions and Handling Methods

  • Structure and Processing Method of Interrupt Controllers

  • Calling Convention Processing Methods (Registers Used and Related Assembly Instructions)

The instructor is the author of a book on Arm architecture, so they can explain RISC-V better than anyone by comparing it with Arm architecture.

You'll learn this kind of content 📕

This provides a detailed explanation of the basic concepts of exceptions and clearly explains the core features of exceptions defined in the RISC-V architecture.

This explains the execution flow of exceptions, which is a core feature of the RISC-V architecture. It also provides a detailed explanation of how exceptions are handled in a system composed of machine mode and user mode.

Explains the exception code defined in the RISC-V architecture that indicates the cause of the exception, and describes the flow diagram of how exceptions are handled through memory abort.

From a software development perspective, this provides a detailed explanation of the execution flow when exceptions and crashes are triggered.

We analyze assembly instructions line by line to explain what flow triggers exceptions. We also explain how exceptions are handled on the stack when they occur.

Practice exceptions using the T32 debugging practice program by executing assembly instructions. When exceptions are triggered, provide detailed explanations of which CSR (scause, mcause) registers are modified.

We will conduct hands-on practice using the TRACE32 program to trigger exceptions, while providing detailed explanations of exception handlers processed in the Linux kernel.

Analyzing memory dumps from RISC-V based boards, this explains how exceptions work in the RISC-V architecture: analyzing kernel logs and call stacks.

We will conduct debugging practice on page tables using the TRACE32 program. Through this, we will specifically identify the causes that triggered the exception.

This explains the basic operation of interrupt controllers defined in the RISC-V architecture. It provides an easy-to-understand explanation of the structure of PLIC and CLIC.

Review interrupt-related exception code and explain the structure of PLIC (Platform Level Interrupt Controller).

Explains the core hardware components that make up the PLIC and provides an easy-to-understand explanation of the CSR registers that control the PLIC.

This explains the Calling Convention (function calling convention) introduced in the RISC-V architecture and reviews the registers that support the Calling Convention.

Explains the big picture of how arguments passed to functions are processed.

Analyzing the assembly instructions that support the Calling convention (function calling convention) of the RISC-V architecture. Also analyzing example assembly instructions - c.sdsp instruction analysis

Analyzing the RISC-V architecture's Calling convention (function calling convention) supporting assembly instructions. Also analyzing example assembly instructions - c.ldsp instruction analysis

Analyzing the RISC-V architecture's Calling convention (function calling convention) supporting assembly instructions. Also analyzing example assembly instructions - c.ldsp instruction analysis


We will conduct a hands-on practice session to restore broken call stacks using TRACE32 debugging.


We will analyze memory dumps caused by stack overflow through TRACE32 debugging practice.


Based on book writing/teaching experience
Deeper and more detailed than anyone else!

In the domestic system software field, unprecedented! Author who wrote books on 'Arm Architecture (Armv8-A, Armv7-A)' and 'Linux Kernel' (both books selected as excellent books by the Korean Academy), and the first in Korea to write "Reverse Engineering Armv8-A Systems" book (in English) through an overseas publisher (Packt), making them a global author. Above all, they are a current industry developer who best understands the latest system software trends (electric vehicles, system semiconductors - system software). They are also an educator who is most actively engaged in knowledge dissemination activities in the system software field.

  • 'Reverse Engineering Armv8-A Systems: A practical guide to Kernel, Firmware, and TrustZone analysis' book (English) author, (Packt Publishing)

  • Author of 'Structure and Principles of Arm Architecture for System Software Development' (2024 Korea Academy Outstanding Book Award)

  • 'Learning Linux Kernel Structure and Principles Through Debugging' (2021 Korea Academy Outstanding Book Award) Author

  • 'Programmers Dev Course: Linux System and Kernel Expert' Main Instructor

  • June 2022, Korea Computer Congress (KCC2022) - Tutorial Presentation [Conquering the Linux Kernel Using ftrace]

  • LG Electronics 'Linux Kernel' and 'Armv8 Architecture' In-house Instructor (including domestic and overseas developers) - (2020~2024)

Recommended for
these people

Who is this course right for?

  • Junior developer aiming to enhance skills in the system software domain, covering system semiconductors (fabless) and electric vehicle sectors (autonomous driving, infotainment).

  • Seeking System SW Dev. in System IC (fabless) & EV: Job Seeker

  • System software developer (system semiconductor, electric vehicles) who wants to know how to debug in practice utilizing the features of RISC-V architecture

  • A developer from another field transitioning to system software

  • University student aiming for graduate school in system software (memory, file system, operating system)

Need to know before starting?

  • Computer Architecture

  • C language

  • Operating System

Hello
This is

6,010

Learners

198

Reviews

89

Answers

4.9

Rating

22

Courses

글로벌 저자 & 리눅스 시스템 소프트웨어 개발자 (Arm, RISC-V 아키텍처)

국내 시스템 소프트웨어 분야에서 전무후무한! 'Arm 아키텍처(Armv8-A, Armv7-A)'와 '리눅스 커널' 책을 쓴 저자(2권의 책 모두 대한민국 학술원 우수도서에 선정)이며, 국내 최초로 해외 출판사(Packt)를 통해 "Reverse Engineering Armv8-A Systems" 책(영어)을 집필한 글로벌 저자입니다. 무엇보다 최신 시스템 소프트웨어 트렌드(전기자동차, 시스템 반도체- 시스템 소프트웨어)를 가장 잘 알고 있는 현업 개발자입니다. 또한 시스템 소프트웨어 분야에서 가장 지식 전파 활동을 활발하게 하는 교육자입니다. 

  • 'Reverse Engineering Armv8-A Systems: A practical guide to Kernel, Firmware, and TrustZone analysis' 책(영어) 저자, (Packt 출판사)

  • '시스템 소프트웨어 개발을 위한 Arm 아키텍처의 구조와 원리'(2024년, 대한민국 학술원 우수도서상) 저자

  • '디버깅을 통해 배우는 리눅스 커널의 구조와 원리' (2021년, 대한민국 학술원 우수도서상) 저자

  • '프로그래머스 데브 코스: 리눅스 시스템 및 커널 전문가' 메인 강사

  • 2022년 6월, 한국컴퓨터종합학술대회 (KCC2022) - 튜토리얼 발표 [ftrace를 이용해 리눅스 커널 정복하기]

  • LG전자 '리눅스 커널' 및 'Armv8 아키텍처' 사내 강사(국내 및 해외 개발자 포함) - (2020년~현재)

국내에서 어느 누구보다 리눅스 커널과 Arm 아키텍처(Armv8-A, Armv7-A)를 잘 설명할 수 있는 교육자라고 자신있게 말씀드릴 수 있습니다.

강의문의 : austindh.kim@gmail.com

주요 로드맵 🎯

'시스템 소프트웨어 개발자를 위한 Arm - basic course'

'시스템 소프트웨어 개발자를 위한 Arm - advanced course'

시스템 소프트웨어 개발자를 위한 Linux kernel - basic course

Curriculum

All

91 lectures ∙ (11hr 33min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

7 reviews

5.0

7 reviews

  • chungwoopark1091님의 프로필 이미지
    chungwoopark1091

    Reviews 2

    Average Rating 5.0

    5

    31% enrolled

    • dlee8103님의 프로필 이미지
      dlee8103

      Reviews 2

      Average Rating 5.0

      5

      100% enrolled

      • mikeseohyungjin5975님의 프로필 이미지
        mikeseohyungjin5975

        Reviews 4

        Average Rating 5.0

        Edited

        5

        31% enrolled

        As a current developer, this is a helpful lecture that covers only the essential points and is an excellent course. The process of being able to practice the content that is essential to know in order to reach the ranks of experts through trace32 is difficult to find worldwide, and it was very helpful.

        • jun7kim8005님의 프로필 이미지
          jun7kim8005

          Reviews 2

          Average Rating 5.0

          5

          100% enrolled

          It was a wonderful lecture where I could feel the maturity that comes from real-world experience.

          • kisanglee5393님의 프로필 이미지
            kisanglee5393

            Reviews 4

            Average Rating 5.0

            5

            100% enrolled

            $93.50

            austinkim's other courses

            Check out other courses by the instructor!

            Similar courses

            Explore other courses in the same field!