Udemybeginneren

Introduction to RISC-V Interrupts

Learn RISC-V assembly programming! Configure GPIO, PLIC, and Core CSRs to create GPIO interrupts and blink an LED. Practical embedded systems skills.

3.3(3)
14students
2h 4m
Certificate
Benix Samuel Vincent Theogaraj
Benix Samuel Vincent TheogarajEmbedded Solutions Provider & Contract Engineer

Course Content

Introduction to RISC-V Interrupts is a beginner-level Udemy course taught by Benix Samuel Vincent Theogaraj. It runs 2h 4m, is taught in English, and includes a certificate of completion. Learners rate it 3.3 out of 5 from 3 reviews, with 14 students enrolled. It is a paid course, last updated September 2024.

Delve into the world of RISC-V interrupts with this comprehensive course! Learn how interrupts, exceptions, and traps function within the RISC-V architecture, starting with the fundamental concepts.

This course provides a detailed exploration of RISC-V privilege levels and the crucial role of traps in system operation. You'll gain a deep understanding of the Platform Level Interrupt Controller (PLIC), a key component in managing interrupts. We'll examine the PLIC specification and how to configure its parameters to generate and handle interrupts effectively.

A significant portion of the course focuses on practical implementation. You'll learn about Control and Status Registers (CSRs) in RISC-V and how to use instructions to read and write CSRs. Specifically, you'll configure GPIO peripherals on the FE310 SoC and utilize the PLIC to enable interrupts from GPIO pins. Master the configuration of MIE & MSTATUS CSRs to enable machine mode interrupts and external interrupts.

The course includes hands-on experience with GNU tools, including compilers and OpenOCD, essential for RISC-V development. The major project involves writing a test application in assembly language to control hardware. You'll program this assembly code, assemble and link it using GNU tools, generate an ELF file, and then program it onto the Hifive1-Rev B board to achieve a practical outcome: blinking a blue LED.

Key topics covered:

  • Understanding RISC-V Interrupts, Exceptions, and Traps
  • RISC-V Privilege Levels
  • PLIC (Platform Level Interrupt Controller) Specification and configuration
  • Control and Status Registers (CSRs) and their manipulation
  • GPIO Peripheral Configuration
  • Enabling Machine Mode Interrupts
  • GNU Toolchain Installation (compilers, OpenOCD)
  • RISC-V Assembly Programming
  • ELF File Generation
  • Hardware Programming on Hifive1-Rev B

Update (Sept 5, 2024): The memory map addresses for Context1 Threshold, Claim, and enable registers have been corrected and are available as a PDF in Section 3, Lecture 7. The PLIC specification PDF is also provided for your reference.

$ whoami — the devs behind tutorialsearch.io

Need a web app built? Hire the team behind TutorialSearch.io

We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.

3.9(678)
4h 6m
intermediate
5.0
2h 37m
beginner
pluralsight
5.0
1h 42m
intermediate
pluralsight
5.0
2h 22m
intermediate
pluralsight