陈希里

陈薇
第 59 位会员
注册于 2020-07-15 09:53:30
活跃于 2020-07-20 07:56:46


最近话题
最新评论
  • 信息被删除或无权限查看
  • 信息被删除或无权限查看
  • wujian100 仿真路径报错 at 2020-07-15 19:59:16

    嗯嗯,是的

  • wujian100 仿真路径报错 at 2020-07-15 14:37:59

    已解决,谢谢各位前辈,大佬的帮助,非常感谢

  • wujian100 仿真路径报错 at 2020-07-15 13:41:58

    @小强 我重新安装了,还是不行,我是将riscv64-elf_x86_64这个文件直接解压在window下面,然后复制到window与ubuntu的共享文件夹,在ubuntu里面从,共享文件夹复制到wujian100_open下面,会不会是共享文件夹的原因

  • wujian100 仿真路径报错 at 2020-07-15 12:03:00

    @小强 是不是我得重新安装一下工具链

  • wujian100 仿真路径报错 at 2020-07-15 11:59:55

    @小强 没有报错,但是没有a.o文件
    chenwei@chenwei-virtual-machine:~/Documents/wujian100_open/workdir$ ../riscv64-elf/riscv64-unknown-elf/bin/as -o a.o
    crt0.s
    chenwei@chenwei-virtual-machine:~/Documents/wujian100_open/workdir$ ls
    config.h getc.c ltostr.c putchar.c vfprintf.c
    crt0.s getchar.c Makefile puts.c
    v_printf.c
    datatype.h isinf.c minilibc_stdio.h run_case.report vprintf.c
    dtostr.c isnan.c printf.c snprintf.c vsnprintf.c
    fprintf.c linker.lcf printf.h sprintf.c vsprintf.c
    fputc.c
    lltostr.c putc.c timer_test.c vtimer.h

  • wujian100 仿真路径报错 at 2020-07-15 11:05:18
  • wujian100 仿真路径报错 at 2020-07-15 10:50:08

    @小强 makefile

    Copyright (c) 2019 Alibaba Group Holding Limited

    #

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    #

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    #

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. the compiler toolset setting

    TOOL_EXTENSION = ${TOOL_PATH}/bin/riscv64-unknown-elf-
    CC = ${TOOL_EXTENSION}gcc
    AS = ${TOOL_EXTENSION}as
    LINK = ${TOOL_EXTENSION}ld
    OBJDUMP = ${TOOL_EXTENSION}objdump
    OBJCOPY = ${TOOL_EXTENSION}objcopy

    CONVERT =../tools/Srec2vmem

    CONVERT =../tools/Srec2vmem.py

    SSRC = $(wildcard .S)
    sSRC = $(wildcard
    .s)
    CSRC = $(wildcard *.c)

    OBJECTS = $(SSRC:%.S=%.o) $(sSRC:%.s=%.o) $(CSRC:%.c=%.o)

    DEFSYM = $(shell echo ${CPU} | sed 's/(e9[0-9]{2}).*/\1/')
    CPU_M = $(shell echo ${CPU} | sed '/m/p')

    ifeq ($(findstring e902m, ${CPU_M}), e902m)
    CFLAGS = -march=rv32emcxcki -mabi=ilp32e
    LDFLAGS = -march=rv32emc -mabi=ilp32e
    else
    CFLAGS = -march=rv32ecxcki -mabi=ilp32e
    LDFLAGS = -march=rv32ec -mabi=ilp32e
    endif

    CFLAGS +=-D${DEFSYM} -Wa,--defsym=${DEFSYM}=1
    ifeq ($(findstring yes, ${SIZE}), yes)
    CFLAGS += -Os
    else
    CFLAGS += -O3 -funroll-all-loops -fgcse-sm -finline-limit=500 -fno-schedule-insns -ffunction-sections -fdata-sections
    endif

    LINKFLAGS = -Tlinker.lcf -nostartfiles

    LINKLIBS += $(LDFLAGS) -lc -lgcc

    OBJDUMPFLAGS = -S -Mnumeric

    HEXFLAGS = -O srec

    %.o : %.c
    ${CC} -c ${CFLAGS} -o $@ $<

    %.o : %.s
    ${CC} -c ${CFLAGS} -o $@ $<

    %.o : %.S
    ${CC} -c ${CFLAGS} -o $@ $<

    ${FILE}.elf : ${OBJECTS} linker.lcf
    ${CC} ${LINKFLAGS} ${LINKLIBS} ${OBJECTS} -o $@ -lm

    ${FILE}.obj : ${FILE}.elf
    ${OBJDUMP} ${OBJDUMPFLAGS} $< > $@

    ${FILE}.hex : ${FILE}.elf
    ${OBJCOPY} ${HEXFLAGS} $< $@

    %.pat : %.hex
    rm -f *.pat

    ${CONVERT} $< test.pat

    ${CONVERT} -i $< -o test.pat

    -------------------------------------------------------------------- target setting

    .PHONY :all
    all : ${FILE}.pat ${FILE}.hex ${FILE}.elf ${FILE}.obj

    --------------------------------------------------------------------- clean some medium code and .pat

    .PHONY :clean
    clean:
    rm -rf .o .pat .elf .obj *.hex

  • wujian100 仿真路径报错 at 2020-07-15 10:49:26

    @小强 setup.sh

    Copyright (c) 2019 Alibaba Group Holding Limited

    #

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    #

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    #

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. set VCS path setenv VCS_HOME set path=($VCS_HOME/linux/bin $path) set VCS license setenv SNPSLMD_LICENSE_FILE

    export iverilog_path=(/usr/bin)
    export gtkwave_path=(/usr/bin)
    export path=($iverilog_path:$path)
    export path=($gtkwave_path:$path)

    set tools path

    export TOOL_PATH='/home/chenwei/Documents/wujian100_open/riscv64-elf'
    export wujian100_open_PATH='/home/chenwei/Documents/wujian100_open'

  • wujian100 仿真路径报错 at 2020-07-15 10:26:46

    @小强 您好,

    file

  • wujian100 仿真路径报错 at 2020-07-15 10:18:10

    @小强 您好,我清空了workdir,将仿真转至workdir下面运行,还是报错

    file

  • wujian100 仿真路径报错 at 2020-07-15 10:10:14

    @小强 您好,贴图放在上面了

  • wujian100 仿真路径报错 at 2020-07-15 10:08:44

    file

  • wujian100 仿真路径报错 at 2020-07-15 10:05:39

    @小强 你好,谢谢回答,我把你给的命令复制下来执行,还是报同样的错误