-
Notifications
You must be signed in to change notification settings - Fork 222
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
Error when compiling utensor-mnist-demo #136
Comments
Hey @drajmund Once you got it working, you might also be interested in this branch which does not require an SD card. You can do this by using Please let us know how it goes! |
BTW, we haven't fix the include order yet. |
Please refer to #65 for detail. |
Thank you for your help. I downloaded the new version of gcc-arm-none-eabi and configured mbed as follows: I added the support for BSP_DISCO_F413ZH: Compilation is OK, but I receive "multiple definition of" errors from the linker: $ sudo mbed compile -m DISCO_F413ZH -t GCC_ARM --profile=uTensor/build_profile/release.json -c [mbed] ERROR: "/usr/bin/python" returned error.
|
Hey @drajmund You shouldn't need to manually add the BSP_DISCO_F413ZH. Is there an error/warning led you to do so? It would be useful to see the error after this line: In the meanwhile, can we try a fresh import of the project? Here are the commands I used to get it going:
To use the SD-free version:
|
Oh, the problem was exactly what you mentioned: I manually added BSP_DISCO_F413ZH. (Root cause may be the copy of BSP_DISCO_F413ZH.lib two times?) Thank you for your help. I think I have learned a lot from this. |
@drajmund Np : ). I highly recommend using the f/rom-tensor branch. We are looking to merged it into master during the next release. |
I followed the instruction, and tried to compile the utensor-mnist-demo with the command:
mbed compile -m DISCO_F413ZH -t GCC_ARM --profile=uTensor/build_profile/develop.json
I received the following message with an error:
Building project utensor-mnist-demo (DISCO_F413ZH, GCC_ARM)
Scan: .
Scan: mbed
Scan: env
Compile [ 4.9%]: main.cpp
[Error] image.h@7,50: expected 'class' before 'TENSOR'
[ERROR] In file included from ./main.cpp:6:0:
./image.h:7:50: error: expected 'class' before 'TENSOR'
template<typename T, template typename TENSOR=RamTensor>
^
[mbed] ERROR: "/usr/bin/python" returned error.
Code: 1
Path: "/home/drajmund/utensor-mnist-demo"
Command: "/usr/bin/python -u /home/drajmund/utensor-mnist-demo/mbed-os/tools/make.py -t GCC_ARM -m DISCO_F413ZH --profile uTensor/build_profile/release.jso
n --source . --build ./BUILD/DISCO_F413ZH/GCC_ARM-RELEASE"
Tip: You could retry the last command with "-v" flag for verbose output
Do you have any idea what is wrong with it?
System parameters:
Ubuntu 16.04.5 LTS
Python 2.7.12
arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)
mbed-cli version number: 1.8.2
The text was updated successfully, but these errors were encountered: