PULP Community
compile without RISC-V PULP specific extensions - Printable Version

+- PULP Community (https://pulp-platform.org/community)
+-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1)
+--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2)
+--- Thread: compile without RISC-V PULP specific extensions (/showthread.php?tid=246)



compile without RISC-V PULP specific extensions - naprpo - 03-08-2021

Hello,

I am trying to compile GPIO test without pulp specific instructions.
https://github.com/pulp-platform/pulp-rt-examples/blob/master/gpio/input/test.c

I modified the make file as follows:
Code:
PULP_APP = test
PULP_APP_FC_SRCS = test.c
PULP_CFLAGS = -O3 -g
PULP_FC_ARCH_CFLAGS = -march=rv32imc



include $(PULP_SDK_HOME)/install/rules/pulp_rt.mk

failed with following errors:

Code:
pulpissimo/pulp-rt-examples/gpio/input/build/pulpissimo/test/fc/test.o: In function `rt_gpio_set_dir':
pulpissimo/pulp-rt-examples/gpio/input/test.c:13: undefined reference to `__builtin_pulp_OffsetedRead'
pulpissimo/pulp-rt-examples/gpio/input/test.c:13: undefined reference to `__builtin_pulp_OffsetedWrite'
pulpissimo/pulp-rt-examples/gpio/input/test.c:13: undefined reference to `__builtin_pulp_OffsetedRead'
pulpissimo/pulp-rt-examples/gpio/input/test.c:13: undefined reference to `__builtin_pulp_OffsetedWrite'
pulpissimo/pulp-rt-examples/gpio/input/build/pulpissimo/test/fc/test.o: In function `main':
pulpissimo/pulp-rt-examples/gpio/input/test.c:13: undefined reference to `__builtin_pulp_OffsetedRead' collect2: error: ld returned 1 exit status

Any suggestion if it is possible use API without pulp specific instructions? or any work around ?
Thank you..

Br, naprpo


RE: compile without RISC-V PULP specific extensions - bluewww - 03-08-2021

There is an option to use Ibex as target. That core doesn't need the pulp compiler.


RE: compile without RISC-V PULP specific extensions - naprpo - 03-08-2021

Thank you..!!!
How to set target ?