-
Notifications
You must be signed in to change notification settings - Fork 139
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
Adding custom ML tflite models with CFU #452
Comments
I've even followed all the steps by an earlier issue: I'm still getting the same error. I'm using the August build of the SiFive compiler: |
Hi @bala122, Did you follow this part of the instructions?
If that's not the problem, could you perhaps upload a Draft PR containing your code so far, and someone might be able to take a look at it. Thanks, Alan |
Hi, yes I've tried that, but the issue is still present. Ive added a Draft PR: make[1]: riscv64-unknown-elf-g++: Command not found |
Thanks for uploading your code. I only had time to take a quick look, but I can't see an obvious problem with it.
Make is saying that it can't find the RISCV C++ compiler on your path. Could you maybe try fixing that, first? |
I've installed the August version of the SiFive gcc compiler from freedom tools: |
Hi @bala122 , can you send me the link to where you see this specifically? I'm puzzled why the instructions say to use "sudo". |
Hi, actually the issue is resolved I think. I deleted the soc build and redid it with the normal "make renode" command, it worked. I'll let you know if there are any further issues. |
Hi @bala122 , thanks for the update; if you have any suggestions for improving the documentation, we would like to hear! I know it is quite complicated and we might not explain every step well. Do you think you will upstream your model at some point? It's fine either way of course. |
Hi, yes Ill try to give suggestions later on regarding the documentation. As of now I havent fully finished the design, so Ill let you know about that when its done. |
I'm not sure about the procedure to add your own custom tflite model with CFU. Does this framework support custom ML models as well?
I'm getting this issue when I attempt at adding a new model in the makefile:
/home/shivaubuntu/riscv64-unknown-elf-gcc-10.1.0-2020.08.2-x86_64-linux-ubuntu14/bin/../lib/gcc/riscv64-unknown-elf/10.1.0/../../../../riscv64-unknown-elf/bin/ld: src/models/models.o: in function
.LANCHOR0': models.c:(.sdata.MENU+0x10): undefined reference to
no_menu'collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:163: software.elf] Error 1
make[1]: Leaving directory '/home/shivaubuntu/CFU-playground/CFU-Playground/proj/proj_custom/build'
make: *** [../proj.mk:215: /home/shivaubuntu/CFU-playground/CFU-Playground/proj/proj_custom/build/software.elf] Error 2
The text was updated successfully, but these errors were encountered: