Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #57426 > unrolled thread

R\W Memory Card SDHC under Forth

Started byjean-pierre@buechi-schmitt.ch
First post2017-04-16 01:36 -0700
Last post2017-04-23 23:56 -0700
Articles 7 — 7 participants

Back to article view | Back to comp.lang.forth


Contents

  R\W Memory Card SDHC under Forth jean-pierre@buechi-schmitt.ch - 2017-04-16 01:36 -0700
    R\W Memory Card SDHC under Forth Mark Wills <markwills1970@gmail.com> - 2017-04-16 02:47 -0700
    Re: R\W Memory Card SDHC under Forth albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-04-16 12:44 +0200
    Re: R\W Memory Card SDHC under Forth David Schultz <abuse@127.0.0.1> - 2017-04-16 06:59 -0500
      Re: R\W Memory Card SDHC under Forth rickman <gnuarm@gmail.com> - 2017-04-16 11:04 -0400
    Re: R\W Memory Card SDHC under Forth stephen@mpeforth.com (Stephen Pelc) - 2017-04-17 15:34 +0000
    Re: R\W Memory Card SDHC under Forth pbjtech@gmail.com - 2017-04-23 23:56 -0700

#57426 — R\W Memory Card SDHC under Forth

Fromjean-pierre@buechi-schmitt.ch
Date2017-04-16 01:36 -0700
SubjectR\W Memory Card SDHC under Forth
Message-ID<1dca4aba-23e6-4df2-b538-cf4261657b3d@googlegroups.com>
Hello,
Question 1:
I am looking for information on
The read \ write protocols of the memory cards
Type SDHC used in cameras Videos for example.
Are there Libraries under Forth?
Thank you for your answers.

Question 2:
I am looking for information on the types of connectors for mounting SDHC memory cards on a printed circuit board.
Thank you for your answers

cordially
Jean-Pierre Schmitt

[toc] | [next] | [standalone]


#57432

FromMark Wills <markwills1970@gmail.com>
Date2017-04-16 02:47 -0700
Message-ID<6f63365d-11f5-4350-9f76-8110f924cfc1@googlegroups.com>
In reply to#57426
There's quite a few Arduino libraries written in c that use SPI. They use FAT 16 and FAT 32. They are in C but should be easy to port.

[toc] | [prev] | [next] | [standalone]


#57434

Fromalbert@cherry.spenarnc.xs4all.nl (Albert van der Horst)
Date2017-04-16 12:44 +0200
Message-ID<ocvhtp$4n6$1@cherry.spenarnc.xs4all.nl>
In reply to#57426
In article <1dca4aba-23e6-4df2-b538-cf4261657b3d@googlegroups.com>,
 <jean-pierre@buechi-schmitt.ch> wrote:
>Hello,
>Question 1:
>I am looking for information on
>The read \ write protocols of the memory cards
>Type SDHC used in cameras Videos for example.
>Are there Libraries under Forth?
>Thank you for your answers.
>
>Question 2:
>I am looking for information on the types of connectors for mounting SDHC memory cards on a printed circuit board.
>Thank you for your answers

One tip. Instead of using hard to find connectors for micro cards,
use the micro to normal size adapter. Solder the gold pads, and you're
good to go.
>
>cordially
>Jean-Pierre Schmitt

Groetjes Albert
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

[toc] | [prev] | [next] | [standalone]


#57435

FromDavid Schultz <abuse@127.0.0.1>
Date2017-04-16 06:59 -0500
Message-ID<--udndPqZb0xwW7FnZ2dnUU7-cfNnZ2d@earthlink.com>
In reply to#57426
On 04/16/2017 03:36 AM, jean-pierre@buechi-schmitt.ch wrote:
> Hello, Question 1: I am looking for information on The read \ write
> protocols of the memory cards Type SDHC used in cameras Videos for
> example. Are there Libraries under Forth? Thank you for your
> answers.
> 

I have used the specification to write code to access SD(HC) cards in C
and Forth. Mostly using SPI but currently the high speed hardware in the
Teensy 3.6. The standard is up to version 4 now.

https://www.sdcard.org/downloads/pls/

Damn, make that 5. I put a version for SPI up here:
http://home.earthlink.net/~schultdw/msp430/eforth/sd/index.html

This is enough to get data on and off the card but does not provide a
file system, FAT or otherwise. The code is unfortunately in a form
suitable for an assembler since it is used with an eForth implementation.

> Question 2: I am looking for information on the types of connectors
> for mounting SDHC memory cards on a printed circuit board. Thank you
> for your answers

I get 'em from Mouser. (Warning: They are all surface mount.)


-- 
David W. Schultz
http://home.earthlink.net/~david.schultz
"Life without stock is barely worth living..." - Anthony Bourdain

[toc] | [prev] | [next] | [standalone]


#57443

Fromrickman <gnuarm@gmail.com>
Date2017-04-16 11:04 -0400
Message-ID<od0108$1qi$2@dont-email.me>
In reply to#57435
On 4/16/2017 7:59 AM, David Schultz wrote:
> On 04/16/2017 03:36 AM, jean-pierre@buechi-schmitt.ch wrote:
>> Hello, Question 1: I am looking for information on The read \ write
>> protocols of the memory cards Type SDHC used in cameras Videos for
>> example. Are there Libraries under Forth? Thank you for your
>> answers.
>>
>
> I have used the specification to write code to access SD(HC) cards in C
> and Forth. Mostly using SPI but currently the high speed hardware in the
> Teensy 3.6. The standard is up to version 4 now.
>
> https://www.sdcard.org/downloads/pls/
>
> Damn, make that 5. I put a version for SPI up here:
> http://home.earthlink.net/~schultdw/msp430/eforth/sd/index.html
>
> This is enough to get data on and off the card but does not provide a
> file system, FAT or otherwise. The code is unfortunately in a form
> suitable for an assembler since it is used with an eForth implementation.
>
>> Question 2: I am looking for information on the types of connectors
>> for mounting SDHC memory cards on a printed circuit board. Thank you
>> for your answers
>
> I get 'em from Mouser. (Warning: They are all surface mount.)

For prototyping you might want a connector mounted to a module.  They 
can be found many places such as sparkfun.com, eBay and Aliexpress.

-- 

Rick C

[toc] | [prev] | [next] | [standalone]


#57494

Fromstephen@mpeforth.com (Stephen Pelc)
Date2017-04-17 15:34 +0000
Message-ID<58f4df0a.5496086@news.eternal-september.org>
In reply to#57426
On Sun, 16 Apr 2017 01:36:13 -0700 (PDT),
jean-pierre@buechi-schmitt.ch wrote:

>Hello,
>Question 1:
>I am looking for information on
>The read \ write protocols of the memory cards
>Type SDHC used in cameras Videos for example.
>Are there Libraries under Forth?
>Thank you for your answers.

The Professional versions of the MPE cross compilers for 32 bit CPUs
include a FAT12/16/32 file system and several SD/MMC card drivers.
The feature matrix can be found at:
  http://www.mpeforth.com/software/forth-cross-compilers/forth-7-cross-compilers/

Stephen

-- 
Stephen Pelc, stephenXXX@mpeforth.com
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeforth.com - free VFX Forth downloads

[toc] | [prev] | [next] | [standalone]


#57969

Frompbjtech@gmail.com
Date2017-04-23 23:56 -0700
Message-ID<2470bc62-ac5b-40ce-8610-ab390f923e09@googlegroups.com>
In reply to#57426
I have interfaced SDHC and FAT32 running on a virtual memory layer all in Tachyon Forth for the Parallax Propeller. You can open up to 4 files and simply access the files with an offset or other means. You can use a file or the volume as a virtual memory. My Ethernet server use this layer to serve up files but I also do a lot of data logging to them as well. I can even run a file as a script or load it as source etc.

EASYFILE SDHC FAT32
https://www.dropbox.com/s/0rdvs8zfqixj8jf/EASYFILE-V4r3.FTH?dl=0

General Tachyon Forth folder - lots of useful stuff
https://www.dropbox.com/sh/yzrczasnorqp5i9/AAAFn8MPpVN4jsSQ74mqNBUDa?dl=0

As for connectors they are very very cheap when you buy them by the box load but when I first prototyped I just used a card edge connector with the right pitch. Of course the microSD + soldered carrier is probably the quickest and cheapest way these days to prototype with connectors.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.forth


csiph-web