pulp-platform / regression_tests

5 stars 15 forks source link

Building the seizure detection application for pulpissimo cv32e40p single core - missing libraries #22

Open shariethernet opened 4 days ago

shariethernet commented 4 days ago

Hi @luca-valente @micprog ,

I am trying to build the seizure detection application for pulpissimo on cv32e40p .

Though there were several issues, and things didn't work by just running the makefile. I have modified the Makefile.seq as seen below

PULP_APP_SRCS = main.c libSVM_load_model.c libSVM_predict.c pca_.c wavelet_.c math_fns.c 

PULP_CFLAGS = -O3 -g  -DSEQ -I$(PULP_SDK_HOME)/include/bench -DFP_SW_EMUL -DHWSQRT=0 -DHWDIV=0 -I$(PULP_SDK_HOME)/include
PULP_LDFLAGS = -lm 
l2Size=362144 #256k
l1Size=300000 
stackSize = 20000 #12288 #12k 
include $(PULP_SDK_HOME)/install/rules/pulp.mk

However, there are a lot of undefined references to plp_alloc_l1, mchan_memcpy_async svm_free_and_destroy_model (seems like a whole libsvm.h is missing) .

I am coming to this in reference to the paper on seizure detection implemented with pulpissimo and would like to compare it with my work. I would appreciate if you could help with this. Thanks in advance :)

luca-valente commented 19 hours ago

Hi @shariethernet , I think you want to use the pulp-sdk to run the seizure detection application, not the pulp-runtime.