Proper setup forLinux RISC-V using Windows cross-compiler

Sysprogs forums Forums VisualGDB Proper setup forLinux RISC-V using Windows cross-compiler

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36494
    mblack
    Participant

    With VisualGDB custom edition version 6.0 R7

    I installed a local windows cross-compiler (riscv64-unknown-elf-cpp) and plan to compile on my local windows machine, then update the target machine for debugging.

    I manually tested the compiler with a small hello world program and copied it to the target to make sure that it runs OK.

    I tried to configure VisualGDB to use my local toolchain but after I select the toolchain.xml file the Toolchain field still displays “No toolchain selected. Click here to select one). I tried everything but can’t get it to work.

    Any help would be greatly appreciated.

     

    #36495
    support
    Keymaster

    Hi,

    The riscv64-unknown-elf-cpp toolchain is meant for barebone targets (i.e. without OS) and may not work with Linux systems. You can force VisualGDB to use it by deleting the toolchain.xml file and re-importing it manually by pointing at the gdb executable, but it will likely not work correctly with the Linux target.

    #36496
    mblack
    Participant

    Is there a toolchain available that I could use on Windows to generate RISC-V code for my Linux target?

     

    #36497
    support
    Keymaster

    Every Linux target needs its own cross-toolchain specially built for it. There is no universal toolchain that will work for all targets. We can give you a quote for building a toolchain for you, or you can check with the target vendor if there is a ready-to-use toolchain.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.