Coder Social home page Coder Social logo

Comments (5)

sergeykhbr avatar sergeykhbr commented on August 15, 2024

Just several comments because in your question actually several questions:

  • You can freely change json-configuration files it cannot affect the build process.

  • examples/dhrystone/makefiles/binarm folder contains the pre-built hex-image + elf (with debug symbols) for ARM processor (not a RISC-V). These files are used by target functional_arm_gui.json or with the custom ARM-R5 system that not in the repository. You shouldn't rename it.

  • FPU is disabled by default for boot/ example. See the parameter FPU_ENABLED=0 in the make_boot. Total size of the boot image 3 KB it is much less than available 'bootrom' space.

  • I am using own utility 'examples/elf2rawx' to generate hex-file. So you can try to build it and copy the binary file 'elf2rawx' into the folder with your gcc compiler:

       $ cd examples/elf2rawx/makefiles
       $ make
       $ cp elf/elf2rawx $(YOUR_CUSTOM_RISCV_GCC_FOLDER)
       $ cd ../../dhrystone21/makefiles
       $ make
    
  • What version of gcc you are using (or actually where I can get the same to reproduce your result)?

  • Are you going to port freertos yourself?

from riscv_vhdl.

taniyagarg4 avatar taniyagarg4 commented on August 15, 2024

from riscv_vhdl.

sergeykhbr avatar sergeykhbr commented on August 15, 2024

I think I've understood. There're special *.vhd configuration file for each project:

  • rtl/prj/kc705/config_k7.vhd for the KC705 board
  • rtl/prj/ml605/config_v6.vhd for the ML605 board
  • rtl/prj/modelsim/config_msim.vhd for the simulation in QuestaSim
  • etc

All these files have the following constants definition:

constant CFG_SIM_BOOTROM_HEX : string := 
            CFG_TOPDIR & "examples/boot/linuxbuild/bin/bootimage.hex";

constant CFG_SIM_FWIMAGE_HEX : string := 
            CFG_TOPDIR & "examples/zephyr/gcc711/zephyr.hex";

Make sure that these constants are the same as shown above to run zephyr. It possible to change them to run bare-metal Dhrystone benchmark or bootrom_tests for CPU verification or redefine CFG_TOPDIR parameter.

from riscv_vhdl.

taniyagarg4 avatar taniyagarg4 commented on August 15, 2024

from riscv_vhdl.

sergeykhbr avatar sergeykhbr commented on August 15, 2024

In that case please share information about gcc version and build log.

from riscv_vhdl.

Related Issues (20)

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.