hugodiasg / mpw5-test

Testing a MPW5 chip.
0 stars 0 forks source link

sed -i '.orig' -e 's/@1000/@0000/g' blink.hex #2

Open hugodiasg opened 2 months ago

hugodiasg commented 2 months ago

~/caravel_board/firmware/mpw2-5/blink$ make clean flash rm -f .elf .hex .bin .vvp *.vcd

/usr/bin/riscv32-unknown-elf-gcc -O0 -march=rv32i_zicsr -Wl,-Bstatic,-T,../sections.lds,--strip-debug -ffreestanding -nostdlib -o blink.elf ../start.s ../print_io.c blink.c

/usr/bin/riscv64-unknown-elf-gcc -I../ -I../generated/ -O0 -mabi=ilp32 -march=rv32i -Dvexriscv -Wl,-Bstatic,-T,../sections.lds,--strip-debug -ffreestanding -nostdlib -o blink.elf ../crt0_vex.S ../isr.c blink.c /usr/bin/riscv64-unknown-elf-objdump -D blink.elf > blink.lst /usr/bin/riscv64-unknown-elf-objcopy -O verilog blink.elf blink.hex sed -i '.orig' -e 's/@1000/@0000/g' blink.hex sed: não foi possível ler .orig: Arquivo ou diretório inexistente make: * [Makefile:29: blink.hex] Erro 2 rm blink.elf

hugodiasg commented 2 months ago

Delete the space between -i and .orig sed -i '.orig' -e 's/@1000/@0000/g' blink.hex -> sed -i'.orig' -e 's/@1000/@0000/g' blink.hex