lowRISC / lowrisc-chip

The root repo for lowRISC project and FPGA demos.
http://www.lowrisc.org/
Other
596 stars 148 forks source link

LowRISC 0.5 hello bare-metal example: undefined reference to `external_interrupt' #115

Closed dnjayasinghe closed 5 years ago

dnjayasinghe commented 5 years ago

I followed all the procedures in explained in https://www.lowrisc.org/docs/ethernet-v0.5/environment/. However, when I execute

'make hello'

inside $TOP/fpga/board/nexys4_ddr directory. I am getting

syscalls.o: In function sprintf_putch': $TOP/fpga/bare_metal/examples/../driver/syscalls.c:80: undefined reference toexternal_interrupt' $TOP/fpga/bare_metal/examples/../driver/syscalls.c:101: undefined reference to `external_interrupt' collect2: error: ld returned 1 exit status

How do I fix this issue?

jrrk commented 5 years ago

Sorry about that quality issue, the hello.c program was overlooked when upgrading to interrupt mode. you can just create an empty external_interrupt function and add it to hello.c, since interrupts are not required for the hello program.

Sent from my iPhone

On 8 May 2019, at 04:07, dnjayasinghe notifications@github.com wrote:

I followed all the procedures in explained in https://www.lowrisc.org/docs/ethernet-v0.5/environment/. However, when I execute

'make hello'

inside $TOP/fpga/board/nexys4_ddr directory. I am getting

syscalls.o: In function sprintf_putch': $TOP/fpga/bare_metal/examples/../driver/syscalls.c:80: undefined reference to external_interrupt' $TOP/fpga/bare_metal/examples/../driver/syscalls.c:101: undefined reference to `external_interrupt' collect2: error: ld returned 1 exit status

How do I fix this issue?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

dnjayasinghe commented 5 years ago

Thanks.