psoc_e84-edgi-talk SDK

Contents

  • Basics
    • Edgi-Talk_M33_Blink_LED Example Project
      • Introduction
      • GPIO Overview
        • RT-Thread GPIO Abstraction
      • Software Description
      • Hardware Description
      • Usage Instructions
        • Compilation and Download
        • Runtime Behavior
      • Notes
      • Boot Sequence
    • Edgi-Talk_M33_S_Template Example Project
      • Introduction
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_M33_Template Example Project
      • Introduction
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_M55_Blink_LED Example Project
      • Introduction
      • GPIO Overview
        • GPIO Abstraction in RT-Thread
      • Hardware Description
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
  • Drivers
    • Edgi-Talk_ADC Example Project
      • Introduction
        • 1. Overview of ADC
        • 2. ADC Working Principle
      • Hardware Description
        • Connection Interface
        • BTB Connector
        • MCU Pins
        • Physical Board Location
      • Software Description
      • Usage Instructions
        • Compilation and Download
        • Runtime Behavior
      • Notes
      • Boot Sequence
    • Edgi-Talk_Audio Example Project
      • Introduction
        • Audio Overview
      • Hardware Description
        • ES8388 Connection Interface
        • Speaker Interface
        • Control Pins
        • BTB Connector
        • MCU Interface
        • Physical Board Location
      • Software Description
      • Usage Instructions
        • Compilation and Download
        • Runtime Behavior
      • Notes
      • Boot Sequence
    • Edgi-Talk_emUSB-device_CDC_Echo Example Project
      • Introduction
      • Hardware Description
        • USB Interface
        • BTB Socket
        • MCU Interface
        • Physical Board LED/Port Location
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_Key_Irq Example Project
      • Introduction
      • MCU Interrupt System Overview
      • Hardware Description
        • Button Interface
        • BTB Socket
        • MCU Interface
        • Physical Board Location
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_LSM6DS3 Example Project
      • Introduction
        • LSM6DS3TR Overview
        • Key Features
        • Applications
      • Hardware Description
        • LSM6DS3TR Interface
        • BTB Socket
        • MCU Interface
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_M33_AHT20 Example Project
      • Introduction
        • AHT10 Software Package Overview
      • Hardware Description
        • Sensor Connection Interface
        • Level Shifting
        • BTB Connector
        • MCU Pins
        • Physical Board Location
      • Software Description
      • Usage Instructions
        • Compilation and Download
        • Runtime Behavior
      • Notes
      • Boot Sequence
    • Edgi-Talk_M33_HyperRam Example Project
      • Introduction
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_M33_S_HyperRam Example Project
      • Introduction
      • HyperRAM Overview
        • 1. General Description
        • 2. Architecture and Interface
        • 3. Working Principle
        • 4. Performance Features
        • 5. Advantages of HyperRAM
        • 6. Comparison with Other Memories
      • Hardware Description
        • HyperRam Interface
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_M55_MIPI_LCD Example Project
      • Introduction
      • Hardware Description
        • Backlight Interface
        • MIPI Interface
        • Power Interface
        • BTB Socket
        • MCU Interface
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_RTC Example Project
      • Introduction
      • RTC Overview
        • 1. Overview
        • 2. Working Principle
        • 3. RTC Types
        • 4. Key Parameters
        • 5. RTC Functions
        • 6. Applications
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_SDCARD Example Project
      • Introduction
      • SD Card Overview
        • 1. Overview
        • 2. SD Card Types
        • 3. SD Card Interface
        • 4. Working Principle
        • 5. Performance
        • 6. Applications
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_WIFI Example Project
      • Introduction
      • Hardware Overview
        • Wi-Fi Interface
        • BTB Socket
        • MCU Interface
      • Software Description
      • Usage
        • Build and Download
        • Running Result
        • Notes
      • Startup Sequence
  • Example
    • Edgi-Talk_M55_CoreMark Example Project
      • Introduction
        • About CoreMark
        • Test Contents
        • Test Results
        • Features
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_M55_LVGL Example Project
      • Introduction
        • LVGL Overview
      • Hardware Description
        • Backlight Interface
        • MIPI Interface
        • PWR Interface
        • BTB Socket
        • MCU Interface
      • Software Description
      • Usage
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
    • Edgi-Talk_WavPlayer Example Project
      • Introduction
      • Hardware Overview
        • ES8388 Connection
        • Speaker Interface
        • Control Pins
        • BTB Socket
        • MCU Interface
        • Physical Board Layout
      • Software Description
      • Usage
        • Build and Download
        • Running Result
        • Notes
      • Startup Sequence
    • XiaoZhi Example Project
      • Introduction
      • Software Description
      • Usage
        • WIFI Modification
        • Build and Download
        • Running Result
      • Notes
      • Startup Sequence
psoc_e84-edgi-talk SDK
  • Basics
  • Edgi-Talk_M33_Blink_LED Example Project

Edgi-Talk_M33_Blink_LED Example Project

中文 | English

Introduction

This example project is based on the Edgi-Talk platform and demonstrates the blue LED blinking function running on the RT-Thread real-time operating system. Through this project, users can quickly verify the board-level GPIO configuration and LED control logic, providing a fundamental reference for future hardware control and application development.

GPIO Overview

GPIO (General Purpose Input/Output) is one of the most commonly used peripheral interfaces in MCUs. It can be configured in software as either input mode or output mode:

  • Input mode: Used to read external voltage levels, such as button input.

  • Output mode: Used to control peripheral signals, such as lighting an LED or driving a buzzer.

RT-Thread GPIO Abstraction

RT-Thread provides a PIN device driver framework, which abstracts hardware differences through a unified API interface:

  • rt_pin_mode(pin, mode): Set the pin mode (input/output/pull-up/pull-down, etc.)

  • rt_pin_write(pin, value): Output a voltage level (high/low)

  • rt_pin_read(pin): Read the input voltage level

This allows developers to perform GPIO control without directly manipulating registers, using RT-Thread’s API instead.

In this example, the LED pin is configured as output mode, and software toggles the output level in a loop to make the LED blink.

Software Description

  • The project is developed based on the Edgi-Talk platform.

  • Example functionalities include:

    • Blue LED blinking periodically

    • GPIO output control

  • The project structure is simple and easy to understand, helping users grasp LED control logic and hardware driver interfaces.

Hardware Description

1 2 3

As shown above, the Edgi-Talk board provides three user LEDs: USER_LED1 (RED), USER_LED2 (GREEN), and USER_LED3 (BLUE). USER_LED2 corresponds to pin P16_6. When the MCU outputs a high level, the LED turns on; when the MCU outputs a low level, the LED turns off.

The LED location on the board is shown below:

4

Usage Instructions

Compilation and Download

  1. Open the project and complete the compilation.

  2. Connect the board’s USB port to the PC using the onboard debugger (DAP).

  3. Use the programming tool to flash the generated firmware to the development board.

Runtime Behavior

  • After flashing, power on the board to run the example project.

  • The blue LED blinks every 500 ms, indicating normal GPIO operation and system scheduling.

  • Users can modify the blinking interval or LED control logic as needed.

Notes

  • To modify the graphical configuration of the project, open the configuration file using the following tool:

tools/device-configurator/device-configurator.exe
libs/TARGET_APP_KIT_PSE84_EVAL_EPC2/config/design.modus
  • After modification, save the configuration and regenerate the code.

Boot Sequence

The system boot sequence is as follows:

+------------------+
|   Secure M33     |
|   (Secure Core)  |
+------------------+
          |
          v
+------------------+
|       M33        |
| (Non-Secure Core)|
+------------------+
          |
          v
+-------------------+
|       M55         |
| (Application Core)|
+-------------------+

⚠️ Please strictly follow the boot sequence above when flashing firmware; otherwise, the system may not run properly.


  • If the example project does not run correctly, compile and flash the Edgi-Talk_M33_S_Template project first to ensure proper initialization and core startup before running this example.

  • To enable the M55 core, configure the M33 project as follows:

    RT-Thread Settings --> Hardware --> select SOC Multi Core Mode --> Enable CM55 Core
    
Previous Next

© Copyright Copyright (c) 2006-2025, RT-Thread Development Team.

psoc_e84-edgi-talk SDK • 版本:1.0.0
构建时间: