-
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
Build failed #111
Comments
Ok I checked out the develop branch inside the uTensor and started build again:
|
Check the include order of It's a known issue, but we just don't have enough time to go through it. |
Here are headers: models/simple_mnist.hpp
models/simple_mnist.cpp:
main.cpp
Still getting the compilation time errors:
|
@metanav @mbartling I will try this out. Anything else you can think of? Neil |
@neil-tan What do you mean by "uTensor runtime"? Project directory listings:
If you meant the "uTensor" directory, that is on the develop branch in my project. |
Could you |
I get this:
So it is on the develop branch. |
Ok. I will have a look later |
Looks like the last known good commit is shown in this file: https://github.com/uTensor/utensor-mnist-demo/blob/master/uTensor.lib I will try to see what’s broken. But do please give me a shout if this fixes your problem. |
Thanks @neil-tan the build process completed successfully after adding this commit. The final step is to run on the device (using same compile params with -f) keeps waiting on this line:
It supposed to flash the bin to the device, right? But for some reason mbed is not detecting my device. |
@metanav Hey, a Hexiwear, this is pretty sweet. Are you using windows, or Mac/Linux? For windows, you might need to install the windows serial driver. The baudrate is usually either 9600 or 115200. I recommend using the "helloworld" example. Would you be able to post the source code of your SD test program? I can probably a quick look of the pin assignments. |
@metanav you can get around the dirent issue by commenting out the following line. |
@mbartling Thanks I will try. |
@neil-tan I am using Mac (High Sierra). I can use screen or Coolterm. What should I expect to see in the case of error? I used following program to test SD successfully.
|
hey @metanav CoolTerm should be fine. The flashing led probably means a runtime error. Try the most basic printf example first:
My guess is the pin assignment has gone wrong. Check this file, you may add the right SD SPI pin assignments for your target here. This doc explains how mbed_app.json works. Then, I'd recommend printing something at the beginning of your main(). Once we get that working, the rest of the error messages are easy to spot. Have you been able to get the SD example working using Mbed-Cli? Were you able to use |
@metanav Also, try changing the mbed-os version to 5.6. You can do this by cd into the mbed-os directory and checkout the 5.6 branch. |
@neil-tan I think the SD pin assignment is fine. I have already set the pin assignment in the mbed_app.json.
Now after little playing with CoolTerm I was able to see the message:
|
If I misspelled the tmp.idx as tmp.id it gives me error on the CoolTerm:
Otherwise it is fine with the correct file path, so I can confirm the SD is working fine.
|
@metanav You just find a bug in my code generator reference counting optimizer. The I'll fix it this night at Taiwan local time. |
@metanav Let me know if there is any other issue. |
@metanav If there's any specific things you've done to get uTensor to work on Hexiwear (like mbed_app.json, etc), I'd be interested in a PR : ) |
@dboyliao
Also, I tried to do a fresh installation of everything with no success. |
Ok, I'll check the execution order later. |
@metanav were you able to share the .pb file you are working with? |
@neil-tan |
@neil-tan You can find the pb file in the utensor_cgen repo (develop branch): |
@metanav I look into the generated code and uTensor source code. |
@dboyliao Have you got chance to check it? |
hey @metanav Not sure if this helps; did you have a chance to take a look at the project creation guide? |
@metanav |
I am compiling using the command:
Which gives these errors:
The text was updated successfully, but these errors were encountered: