Using SD card while in IDE

Discussion related to "under the hood" OpenMV topics.
dchesson93
Posts: 1
Joined: Mon Aug 15, 2016 11:53 pm

Using SD card while in IDE

Postby dchesson93 » Tue Aug 16, 2016 12:10 am

Hello, all!

I've been chomping at the bit to get into machine vision with OpenMV, but until now, school and work have prevented me from poking around too much. I've just downloaded the Mac IDE and started looking at examples to begin to familiarize myself with the board's capabilities. The basics worked just fine, but when I got to scripts which needed SD cards, I started having trouble. I have an SD card, but loading it into the board makes it completely unresponsive to the IDE, blinking blue and yellow. I imagine this is because the board is trying to find the main.py script, so I tried adding a script requiring an SD card (the basic differencing script is the one I used) to the SD card, but its behavior doesn't change. I also tried to run it without an SD card for kicks and got the error I expected about failing to write the requested bytes.

Any advice here? I'm really looking forward to the tutorials, because I am woefully unprepared for this machine vision jargon! Time to read up! If you have any sources for learning this topics, feel free to drop those here, too.

David
User avatar
kwagyeman
Posts: 4458
Joined: Sun May 24, 2015 2:10 pm

Re: Using SD card while in IDE

Postby kwagyeman » Tue Aug 16, 2016 12:24 am

Hi, you shouldn't be encounter in such problems. Um, try reformatting you as card for fat32. If the SD card is NTFS then the OpenMV cam can't read it. Also, use a less than 2gb SD card if possible.
Nyamekye,
mad474
Posts: 4
Joined: Tue Aug 16, 2016 4:27 am

Re: Using SD card while in IDE

Postby mad474 » Tue Aug 16, 2016 4:37 am

Hi, there really seems to be a new issue with microSD card handling (for me not IDE specific):

1. With "old" firmware

Code: Select all

Micro Python v1.4.4-189-g4f6880b on 2016-05-03; OPENMV2 with STM32F427
powering up with inserted microSD card everything looks fine:

Code: Select all

>>> import os
>>> os.getcwd()
'1:/'
2. With new (well, 2 days old) firmware binary (https://github.com/openmv/openmv/tree/m ... openmv.dfu):

Code: Select all

MicroPython v1.8-4338-g200e05f on 2016-08-14; OPENMV2 with STM32F427
powering up with inserted microSD card (the same tested working card as in case 1) leads to white led and "stuck system" (can't get REPL in terminal emulation).
Leaving sd card away is "o.k.":

Code: Select all

>>> import os
>>> os.getcwd()
'0:/'
Tested by reflashing back and forth (would you prefer github issue?).

Regards
User avatar
kwagyeman
Posts: 4458
Joined: Sun May 24, 2015 2:10 pm

Re: Using SD card while in IDE

Postby kwagyeman » Tue Aug 16, 2016 10:01 am

Yes, please make one. Ibrahim needs to get on this. We've been moving things around in the firmware to free up RAM and he's trying to remove the flash buffer (16KB) so that we can have a separate JPEG buffer for IDE streaming.
Nyamekye,
mad474
Posts: 4
Joined: Tue Aug 16, 2016 4:27 am

Re: Using SD card while in IDE

Postby mad474 » Tue Aug 16, 2016 11:18 am

kwagyeman wrote:Yes, please make one
Done
https://github.com/openmv/openmv/issues/148
Thanks!

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest