From 1ffe0f2ea9d0dd3f1d8cf78b89bd22172f045b57 Mon Sep 17 00:00:00 2001 From: FPGALover Date: Wed, 28 Feb 2024 00:05:51 +0000 Subject: [PATCH] Update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4d4664c..f1356dd 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,12 @@ neorv32 with modiefied Makefiles, compatible with MSYS2 64 for cross compilatati You must download the latest RISCV precompiled binaries for your platform from: https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/ in this case the architecture x64 for windows binaries(https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/xpack-riscv-none-elf-gcc-13.2.0-2-darwin-x64.tar.gz), then extract these under the folder C:\riscv_precompiled\ + + + + Note: if you change the location where you installed the RISCV precompiled binaries, you need to modify the line 42 of the of file common.mk, this will be explained further on this manual on the point number 8. + +

@@ -61,11 +67,23 @@ in this case the architecture x64 for windows binaries(https://github.com/xpack-
+ + 8. go to the directory where you cloned or donwloaded this repository to the directory **neorv32\sw\example\demo_blink_led_asm** ``` $ cd neorv32\sw\example\demo_blink_led_asm ``` -8. run the command **make all** (make sure all antivirus are disabled) + Note: if you changed the location of the precompiled RISCV binaries, you need to modify the file "neorv32\sw\common\common.mk" on the line # 42, otheris. + + ``` + ... + # Compiler toolchain + RISCV_PREFIX = **\riscv-none-elf-** + ... + ``` + + +9. run the command **make all** (make sure all antivirus are disabled) ``` $ make all "Memory utilization:" @@ -84,7 +102,7 @@ in this case the architecture x64 for windows binaries(https://github.com/xpack- "Memories Generated" ``` -9. list the generated files and you will see +10. list the generated files and you will see ``` $ ls -l @@ -100,8 +118,8 @@ in this case the architecture x64 for windows binaries(https://github.com/xpack- -rw-rw-rw- 1 adriz 0 432 2024-02-24 01:45 neorv32_raw_exe.bin -rw-rw-rw- 1 adriz 0 972 2024-02-24 01:45 neorv32_raw_exe.hex ``` -10. you have been able to Assemble assembly code for the RISCV on windows. -11. go con the folder **neorv32\sw\example\demo_blink_led** which is the same example as the previous one but written on C code., and run the line "make all" +11. you have been able to Assemble assembly code for the RISCV on windows. +12. go con the folder **neorv32\sw\example\demo_blink_led** which is the same example as the previous one but written on C code., and run the line "make all" ``` $ make all @@ -121,8 +139,8 @@ in this case the architecture x64 for windows binaries(https://github.com/xpack- "Memories Generated" ``` -12. now you have cross-compiled sucessfuly on windows for C and Assembly code. -13. if you go to the folder **neorv32\sw\example**, and run the command "make all" you will be able to build all the projects within this folder. +13. now you have cross-compiled sucessfuly on windows for C and Assembly code. +14. if you go to the folder **neorv32\sw\example**, and run the command "make all" you will be able to build all the projects within this folder. Enjoy! @@ -146,6 +164,16 @@ Enjoy! ``` $ cd neorv32\sw\example\demo_blink_led ``` + Note: if you changed the location of the RISCV compiler, you need to modify the file "neorv32\sw\common\common.mk" on the line # 448, otheris. + + ``` + ... + # Compiler toolchain + RISCV_PREFIX = **/bin/riscv32-unknown-elf-** + ... + ``` + + 4. run the command **make all** ``` $ make all