Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RT-Thread Branches For Nuclei RISC-V Processors #1

Open
fanghuaqi opened this issue Nov 10, 2023 · 5 comments
Open

RT-Thread Branches For Nuclei RISC-V Processors #1

fanghuaqi opened this issue Nov 10, 2023 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@fanghuaqi
Copy link
Member

fanghuaqi commented Nov 10, 2023

RT-Thread For Nuclei RISC-V Processor

About branch for Nuclei

Make sure you have pulled latest changes from desired branch.

  • nuclei/lts-v4.1.x: Works for Nuclei RISC-V Processors, including RV32 and RV64, based on lts-v4.1.x

    NOTE: 2024.04.24 branch is updated with task switch bug fix, please update your code.

  • nuclei/lts-v3.1.x: Works for Nuclei RISC-V Processors, including RV32 and RV64, based on lts-v3.1.x

How to use it, see bsp/nuclei/nuclei_fpga_eval/README.md in selected branch.

It can works on both Nuclei RISC-V Toolchain 2022.12 and 2024.02, if you want to use on 2024.02, please change it like this:

Default using Nuclei RISC-V Toolchain 2022.12 - gcc10

You can just download Nuclei Studio, which contains all prebuilt tools required, and setup environment required following the above README.md

diff --git a/bsp/nuclei/nuclei_fpga_eval/rtconfig.py b/bsp/nuclei/nuclei_fpga_eval/rtconfig.py
index 840071c62..8d6c3fa68 100644
--- a/bsp/nuclei/nuclei_fpga_eval/rtconfig.py
+++ b/bsp/nuclei/nuclei_fpga_eval/rtconfig.py
@@ -42,9 +42,9 @@ if PLATFORM == 'gcc':
     # toolchain settings
     # TODO: Choose proper toolchain prefix
     # using Nuclei GNU Toolchain <= 2022.12
-    PREFIX  = 'riscv-nuclei-elf-'
+    #PREFIX  = 'riscv-nuclei-elf-'
     # When Using Nuclei GNU Toolchain >= 2024.02
-    #PREFIX  = 'riscv64-unknown-elf-'
+    PREFIX  = 'riscv64-unknown-elf-'
@fanghuaqi fanghuaqi self-assigned this Nov 10, 2023
@fanghuaqi fanghuaqi added the documentation Improvements or additions to documentation label Nov 10, 2023
@fanghuaqi fanghuaqi pinned this issue Nov 10, 2023
@fanghuaqi
Copy link
Member Author

fanghuaqi commented Nov 13, 2023

LTS v3.1.x RT-Thread, sample sceenshot running on n300fd and nx900fd, both using Nuclei RISC-V Toolchain 2022.12:

n300fd

image

nx900fd

image

@fanghuaqi
Copy link
Member Author

For sample build log in Windows, check rt_thread_build_lts_4.1.x.log

@fanghuaqi
Copy link
Member Author

Just pushed changes to the above two nuclei/lts-* branches to fix build error when NUCLEI_SDK_SOC = "demosoc" changed to NUCLEI_SDK_SOC = "evalsoc" in bsp/nuclei/nuclei_fpga_eval/rtconfig.py

Error: board/board.c:18:14: fatal error: drv_uart.h: No such file or directory

image

@fanghuaqi
Copy link
Member Author

This commit must be added Nuclei-Software/nuclei-sdk@7251978 to fix rt-thread potential thread switch bug

@fanghuaqi
Copy link
Member Author

fanghuaqi commented Apr 24, 2024

Just apply patch 68e6149 to nuclei/lts-v4.1.x to fix task switch potential bug, for branch nuclei/lts-v3.1.x this patch is already in it.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant