-
Notifications
You must be signed in to change notification settings - Fork 76
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
MNIST example error: Protocol version mismatch between bridge and runtime #101
Comments
Hi,
Thank you for the report, you are right, there's a bug between the bridge
and runtime. We will fix it.
In the meantime, you can use openOCD instead of the bridge. (We will remove
this bridge in the future).
To use openOCD:
1, install the openOCD: run "make openOCD " in your sdk folder.
2, add this 2 flags in the makefile:
export GAP_USE_OPENOCD=1
io=host
Here's my changes in this makefile, and tested:
gap_sdk_github/examples/nntool/mnist$ git diff
diff --git a/examples/nntool/mnist/Makefile b/examples/nntool/mnist/Makefile
index 9f99363..7c724f7 100644
--- a/examples/nntool/mnist/Makefile
+++ b/examples/nntool/mnist/Makefile
@@ -71,6 +71,9 @@ pulpChip = GAP
APP = mnist2
USE_PMSIS_BSP=1
+export GAP_USE_OPENOCD=1
+io=host
+
APP_SRCS += Mnist.c ImgIO.c $(MODEL_SRCS)
Best,
Yao
Sent with Gmelius <https://gmelius.com/?ref=mail>
…On Thu, Jan 23, 2020 at 5:54 PM danieldennett ***@***.***> wrote:
Dear GWT,
At the moment I am working with the AI-deck from BitCraze and plan on
making a simple program in TF lite for it. For this I want to check if the
gap_sdk with its nntool and autotiler is working properly for the AI-deck.
I am working from the 3.1.1_dev_001 branch and I was able to run the
helloworld example from gap-sdk/examples/native/pulpos. Consequently, I was
testing the mnist example on the AI-deck and I was able to flash it
partially. It stopped after loading the test binary. The error message
below did not gave us any leads where to start looking for. Except that debug
address 0x00000001 contents 0x-10215242 could be a clue, but I am not
sure how to harness this information and where to start debugging. Thanks
in advance.
Loading section (base: 0x1c009d8c, size: 0x48)
debug address 0x00000001 contents 0x-10215242
Protocol version mismatch between bridge and runtime (bridge: 4, runtime: -1091576147)
terminate called after throwing an instance of 'std::logic_error'
what(): Unable to connect to runtime
/home/user/gap_sdk/tools/rules/pulp_rules.mk:162: recipe for target 'run' failed
make: *** [run] Error 134
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#101?email_source=notifications&email_token=ABD6RW6UFQ6PXHIC2CLASPLQ7HDULA5CNFSM4KKZVHM2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IIJVPBA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD6RW7XW2KKPPWBHTZO6SDQ7HDULANCNFSM4KKZVHMQ>
.
--
*ZHANG Yao*Lead Embedded Software Engineer
Tel: 06.82.78.41.71
Mail: yao.zhang@greenwaves-technologies.com
Skype: zhyao930
-------------------------------------------------------------------------------------
<http://greenwaves-technologies.com/>
|
Hey, Thank you for your response. I have tried to use the openOCD as a bridge. I started with your instructions first, but that gave me the following error message
All the while I only have 1 Olimex connected and it is being recognizedby
this gave me the same error message but now singular
After this the helloworld example also didn't work anymore. Also the lights on the ai-deck are not blinking anymore when I attach the JTAG connection. While working with the plpbridge this was not the case. This is how far I got and will have another look at it on monday with a colleague of mine. |
Hi Daniel, What is the name you see on the Olimex ? There are two types of Olimex : ARM-USB-OCD and ARM-USB-OCD-H. The configs are different depending on the version. For Mnist, you have two errors message because the first one concerns the picture flashing in memory, the second one is for running the app/example. Siva. |
Hey Siva, Thank you for your response! The name of my Olimex is Olimex Ltd. ARM-USB-TINY-H JTAG interface. Thanks to yr hint, I found the right config file in gap_sdk/tools/gap8-openocd/tcl/interface/ftdi. Ah that makes a lot of sense! Thanks for the clarification. Best regards, Daniel |
Hi David, Glad I could help. Siva. |
Dear GWT,
At the moment I am working with the AI-deck from BitCraze and plan on making a simple program in TF lite for it. For this I want to check if the gap_sdk with its nntool and autotiler is working properly for the AI-deck. I am working from the
3.1.1_dev_001
branch and I was able to run the helloworld example from gap-sdk/examples/native/pulpos. Consequently, I was testing the mnist example on the AI-deck and I was able to flash it partially. It stopped after loading the test binary. The error message below did not gave us any leads where to start looking for. Except thatdebug address 0x00000001 contents 0x-10215242
could be a clue, but I am not sure how to harness this information and where to start debugging. Thanks in advance.The text was updated successfully, but these errors were encountered: