Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shariethernet opened this issue Sep 28, 2024 · 2 comments

Comments

@shariethernet
Copy link

shariethernet commented Sep 28, 2024

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
Copy link
Collaborator

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

@sridharshinim
Copy link

Hi @luca-valente,

Thank you for your response.

I tried to use pulp-sdk to run the seizure detection application but encountered the same issues again.

Here are the steps I followed:

  1. Clone pulp-sdk repo, source pulp-open.sh and built gvsoc.
  2. Clone pulpissimo repo, built the questasim platform from latest IP versions and set the vsim path.
  3. Execute seizure detection using "make clean all run pulpFpu=1 pulpDiv=1 -f Makefile.seq" (for single core).

I'm seeing a lot of undefined references to plp_alloc_l1, l1free etc. Could you kindly review this workflow and let us know if there is anything we might be overlooking? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants