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

"mobile net init fail" on MAIXduino #37

Closed
KotNitro opened this issue Jul 30, 2019 · 9 comments
Closed

"mobile net init fail" on MAIXduino #37

KotNitro opened this issue Jul 30, 2019 · 9 comments

Comments

@KotNitro
Copy link

Hello!

I ran into a bug with "mobilenet_v1" example on my MAIXduino - it begins to load model file, but "mobile net init fail" appears on serial port monitor.
I tried to find the reason and I saw mbnet.begin(kmodel_name) return value -6.
I used different MicroSD cards and model files from your site with the same result. As KPUClass source code is not available (I did not find it), I can't debug it any further.
Please help to solve that.

Many thanks!
With regards,
Maksim

@chegewara
Copy link

What maixduino version are you using?
There was issue that has been fixed 240bb27
and is merged to v0.3.10

@KotNitro
Copy link
Author

KotNitro commented Jul 31, 2019

I use V0.3.9 and I fixed SD Card bug earlier (there was card reading problem), and got the error from topic start after that.
Version 0.3.10 is shown in list in Arduino IDE, but is not actually available (previous versions still could be downloaded):

Error downloading http://dl.sipeed.com/MAIX/Maixduino/core/Maixduino_core_v0.3.10.zip
java.lang.RuntimeException: java.lang.Exception: Error downloading http://dl.sipeed.com/MAIX/Maixduino/core/Maixduino_core_v0.3.10.zip
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:175)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Возникла ошибка при загрузке http://dl.sipeed.com/MAIX/Maixduino/core/Maixduino_core_v0.3.10.zip
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:139)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:73)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:55)
at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:101)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172)
... 1 more
Caused by: java.io.IOException: Received invalid http status code from server: 416
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:205)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:132)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:137)
... 5 more

@chegewara
Copy link

First of all i can download v0.3.10 without problem, maybe try one more time, and second of all i think your problem is duplicate of this:
#29

@KotNitro
Copy link
Author

I have updated MAIXDuino to V0.3.10, but I still see those messages on port monitor:

init mobile net, load kmodel from SD card, it may takes a long time

and after about 10 seconds

mobile net init fail

So, it looks like loading has been started, but crashes a bit later for some reason.
I use mobilenet_0x300000.kfpkg file renamed to m according to code. I also see "Loading..." on LCD, so file was found on uSD and it is not well-known uSD bug.

@chegewara
Copy link

chegewara commented Jul 31, 2019

Maybe try different card since it is "Loading...", which means card has been detected and file possibly has been found, i didnt try code with option: insert card with no file on it (i am using name model).

@KotNitro
Copy link
Author

KotNitro commented Aug 2, 2019

I tested a number of cards, 16 and 32 Gb, with the same result.
Are there any limitations for card size and file system?

@KotNitro
Copy link
Author

KotNitro commented Aug 3, 2019

Now it works!
In my case it was important to satisfy some requirements:

  • MAIXduino version is 0.3.10 (the latest for today)
  • MicroSD size is 16 Gb (8 Gb does not work for some reason) and formatted with FAT32 file system
  • downloaded mobilenet_0x300000.kfpkg needs to be unpacked as it is actually .zip file!
  • unpacked model file name should be the same as in code (single letter m without any extension by default).
    Thanks for help

@KotNitro KotNitro closed this as completed Aug 3, 2019
@sabas1080
Copy link
Contributor

sabas1080 commented Aug 26, 2019

I have the same problem, I have the appropriate configuration in Maix One Dock W

@excalibur-sa
Copy link

I changed a 16G size tf card to resolve it

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

4 participants