GithubHelp home page GithubHelp logo

nuclei-software / nuclei-studio Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 4.6 MB

Document, User Guide, Wiki, and Discussions For Nuclei Studio

Home Page: https://nuclei-software.github.io/nuclei-studio/

License: Eclipse Public License 2.0

Python 96.40% CSS 3.60%

nuclei-studio's Introduction

Nuclei Studio Supply Documents

Deploy MkDocs pages-build-deployment

Document, User Guide, Wiki, and Discussions For Nuclei Studio

Please create new doc based on Doc Template

Click this link to see online version.

如果您在文档中发现任何拼写错误或不完善之处,我们欢迎您提交Pull Request或Issue,以协助我们进行改进!

If you come across any spelling errors or areas that need improvement in the document, feel free to submit a Pull Request or Issue to help us enhance it!

Documents

Generated by python3 update.py @ 2023-12-05 11:24:37

Document Description
1-cannot-setup-guestmemory.md 因内存不足,导致在Nuclei Studio中启动qemu失败
2-qemu-glib-gio-unexpectedly.md windows 11下使用Nuclei Studio进行qemu调试程序时报错
3-print_memor_usage_in_ide.md How to print memory usage in Nuclei Studio
4-use_pre_build_or_post_build.md 在编译工程时,使用了Pre-build Command/Post-build Command时报错
5-update_npk_to_support_nucleistudio_202310.md 升级npk.yml以支持Nuclei Studio 2023.10
6-gcc13_gen_rvv_instructions_when_rvv_enabled.md GCC13 auto generated RVV instructions when RVV enabled
7-update_nucleistudio_202310_to_fixed_version.md 更新 Nuclei Studio 2023.10 到最新修正版本
8-openocd_202310_flashloader_flaws.md OpenOCD在操作容量大于16M-Byte的nor-flash时的问题
9-modify_the_cproject_file_to_change_the_project_to_gcc13.md 通过修改.cproject文件,升级工程工具链到GCC 13
10-compiling_projects_with_headless_in_nuclei_studio.md 在Nuclei Studio下用命令行编译工程
11-openocd_reported_error_not_known_as_fespi_capable.md OpenOCD烧写程序时报错Error:Device ID 8xle2g8a6d is not known as FESPI capable
12-nucleisdk-0.5.0-dhrystone-score-lower-than-expected-in-IDE.md 关于dhrystone在IDE上跑分和NSDK命令行跑分不一致的问题

nuclei-studio's People

Contributors

dongchen1221 avatar fanghuaqi avatar

Watchers

 avatar  avatar  avatar

nuclei-studio's Issues

How to print memory usage in Nuclei Studio

In order to print memory usage when compile an application, you can do it like this:

Click Nuclei Settings in selected project, and pass extra -Wl,--print-memory-usage in Extra Link Flags, and save settings, and then build this project, you will be able to see memory usage.

image

Building target: 050hello.elf
Invoking: GNU RISC-V Cross C++ Linker
... ...
Memory region         Used Size  Region Size  %age Used
             ilm:        8280 B        64 KB     12.63%
             ram:         64 KB        64 KB    100.00%
Finished building target: 050hello.elf

Why the ram usage here is 100% used?

For Nuclei SDK or NMSIS template linker script, the stack is placed at the bottom of ram memory, so the ram usage is 100%.

Build fail when using pre- and post-steps in Nuclei Studio 2023.10

See

This issue is caused by the busybox used by us internally distribute an make utils, which is not working for us, see eclipse-embed-cdt/eclipse-plugins#597 (comment)

Just replace the toolchain/build-tools folder content with win32-buildtools-1.2.zip which is based on https://github.com/xpack-dev-tools/windows-build-tools-xpack/releases/tag/v4.4.1-2

This issue will be solved

How to pass extra risc-v ISA like b/p/k/v in Nuclei Studio or Nuclei SDK.

In RISC-V Compiler option, -march option is used to pass your desired RISC-V ISA, see https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html

For the normal imafdc ISA, you can pass it as usual, such as -march=rv32imafdc or -march=rv64imafdc, but from Nuclei RISC-V GCC 13, if you want to pass extra ISA not in normal imafdc, you may need to specify it using multi-letter ISA string.

e.g.

If you want to use b extension with rv32imafdc, you need to pass -march=rv32imafdc_zba_zbb_zbc_zbs.

In our Nuclei SDK, we defined a Makefile variable used in command line called ARCH_EXT to pass this extra ISA besides CORE defined normal ISA, see https://doc.nucleisys.com/nuclei_sdk/develop/buildsystem.html#arch-ext for details(Please click it and read it carefully).

If you want to set it in Nuclei Studio, when you create project using Nuclei SDK NPK >= 0.5.0, you can set Nuclei ARCH Extensions to _zba_zbb_zbc_zbs, and select Nuclei RISC-V Core to represent the correct base cpu isa.

WARNING don't put ARCH_EXT=_zba_zbb_zbc_zbs like string in IDE, it is only used in Nuclei SDK command line mode, instead of it, you should put _zba_zbb_zbc_zbs like string.

For ISA using Zc*, just select base cpu isa with c in it, and pass _zc* like isa string in Nuclei ARCH Extensions

image

If you forget to set extra isa string during project creation, you can change it using Nuclei Settings

image

Or you can change it in Project Properties like below:

image

Migrate npk.yml for Nuclei Studio 2023.10

If you want to use old npk package built for gcc10 in latest Nuclei Studio 2023.10 with gcc13, if you don't want to upgrade your npk package, you can follow chapter 8 of Nuclei Studio User Guide 2023.10 to use it in Nuclei Studio 2023.10.

If you want to upgrade your npk.yml for 2023.10 using gcc13, you need to follow guide here:

See https://github.com/Nuclei-Software/nuclei-studio/blob/main/5-update_npk_to_support_nucleistudio_202310.md

If you have issue when using this guide, please comment in this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.