Hello all, I am using mmc.frt and writing works very well. The problem is reading. Bytes are clobbered in a consistent pattern with something else (see below). I know the lc-tech sd card reader is not the problem because I have tried reading my 16M SD card using my bus pirate without problems ( http://nada-labs.net/2010/using-the-buspirate-with-a-sd-card/ ).
Thank you for any and all clues! Andreas andreas@w530 ~/D/c/code> cat corpus.txt The glyphs are stylized human, animal, vegetable and geometric shapes, and often form compounds. Nearly all those with heads are oriented head up and are either seen face on or in profile to the right, in the direction of writing. It is not known what significance turning a glyph head-down or to the left may have had. Heads often have characteristic projections on the sides which may be eyes (as on the sea turtle glyph below, and more clearly on sea-turtle petroglyphs) but which often resemble ears (as on the anthropomorphic petroglyph in the next section). Birds are common; many resemble the frigatebird (see image directly below) which was associated with the supreme god Makemake.[21][note 4] Other glyphs look like fish or arthropods. A few, but only a few, are similar to petroglyphs found throughout the island. andreas@w530 ~/D/c/code> sudo ired /dev/mmcblk0 [0x00000000]> ? s[+-addr] seek to relative or absolute address b[+-size] change block size w[hex|"str"] write hexpair or string /[hex|"str"] search hexpair or string x[size] hexdump X[size] hexpair dump p[fmt] print formatted current block ('p' for help) r[+-[num]] truncate or -remove N bytes .[file] interpret file <[file] load file in current seek >[file] dump current block to file !cmd run shell command ?expr calculate numeric expression q quit [0x00000000]> <corpus.txt [0x00000000]> x 0x00000000: 5468 6520 676c 7970 6873 2061 7265 2073 The glyphs are s 0x00000010: 7479 6c69 7a65 6420 6875 6d61 6e2c 2061 tylized human, a 0x00000020: 6e69 6d61 6c2c 2076 6567 6574 6162 6c65 nimal, vegetable 0x00000030: 2061 6e64 2067 656f 6d65 7472 6963 2073 and geometric s 0x00000040: 6861 7065 732c 2061 6e64 206f 6674 656e hapes, and often 0x00000050: 2066 6f72 6d20 636f 6d70 6f75 6e64 732e form compounds. 0x00000060: 204e 6561 726c 7920 616c 6c20 7468 6f73 Nearly all thos 0x00000070: 6520 7769 7468 2068 6561 6473 2061 7265 e with heads are 0x00000080: 206f 7269 656e 7465 6420 6865 6164 2075 oriented head u 0x00000090: 7020 616e 6420 6172 6520 6569 7468 6572 p and are either 0x000000a0: 2073 6565 6e20 6661 6365 206f 6e20 6f72 seen face on or 0x000000b0: 2069 6e20 7072 6f66 696c 6520 746f 2074 in profile to t 0x000000c0: 6865 2072 6967 6874 2c20 696e 2074 6865 he right, in the 0x000000d0: 2064 6972 6563 7469 6f6e 206f 6620 7772 direction of wr 0x000000e0: 6974 696e 672e 2049 7420 6973 206e 6f74 iting. It is not 0x000000f0: 206b 6e6f 776e 2077 6861 7420 7369 676e known what sign [0x00000000]> ^C⏎ andreas@w530 ~/D/c/code> sudo sync andreas@w530 ~/D/c/code> andreas@w530 ~/D/c/c/wetland-mcu-nodes> make term PORT=/dev/ttyUSB0 python2.7 /home/andreas/Dropbox/cranberrynet/code/wetland-mcu-nodes/../amforth/trunk/tools/amforth-shell.py -p /dev/ttyUSB0 -s 19200 -i |I=appl_defs: 0 loaded |I=Entering amforth interactive interpreter |I=getting MCU name.. |I=successfully loaded register definitions for atmega328p |I=getting filenames on the host |I= Reading . (ATmega328P)> mmc_init . 0 ok (ATmega328P)> $100 0 0 mmc_read . 0 ok (ATmega328P)> mmc_buf $100 dump 0848 84 04 27 04 55 08 21 12 04 15 63 04 55 01 32 15 Th...lyphs?..e s 0864 16 21 27 04 55 01 00 32 04 17 27 04 55 44 32 97 ty...ed hu..., a 0880 10 05 27 04 55 44 32 18 01 03 27 04 55 98 08 01 ni..., veg...ble 0896 32 97 27 04 55 03 01 11 09 01 27 04 55 99 32 15 a...geome...c s 0912 04 97 27 04 55 44 32 97 10 00 63 04 55 16 01 10 ha..., and?..ten 0928 32 02 27 04 55 32 99 11 09 12 27 04 55 00 15 46 f... comp...ds. 0944 32 78 27 04 55 08 21 32 97 08 27 04 55 04 11 15 N...ly al...hos 0960 01 32 27 04 55 04 32 04 01 97 27 04 55 97 14 01 e ...h hea...are 0976 32 11 27 04 55 10 16 01 00 32 27 04 55 00 32 17 o...nted ...d u 0992 12 32 27 04 55 32 97 14 01 32 27 04 55 04 01 14 p ... are ...her 1008 32 15 27 04 55 32 02 97 99 01 63 04 55 32 11 14 s... face?.. or 1024 32 05 27 04 55 14 11 02 05 08 27 04 55 11 32 16 i...rofil...o t 1040 04 01 63 04 55 03 04 16 44 32 27 04 55 16 04 01 he?..ght, ...the 1056 32 00 27 04 55 99 16 05 11 10 63 04 55 32 19 14 d...ction?.. wr 1072 05 16 27 04 55 46 32 73 16 32 27 04 55 10 11 16 it.... It ...not 1088 32 07 27 04 55 10 32 19 04 97 27 04 55 05 03 10 k...n wha...ign ok (ATmega328P)> mmc_buf $100 $61 fill ok (ATmega328P)> mmc_buf $100 dump 0848 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0864 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0880 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0896 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0912 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0928 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0944 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0960 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0976 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 0992 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 1008 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 1024 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 1040 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 1056 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 1072 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa 1088 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 aaaaaaaaaaaaaaaa ok (ATmega328P)> $100 0 0 mmc_write . 0 ok (ATmega328P)> $100 0 0 mmc_write . 0 ok (ATmega328P)> $100 0 0 mmc_write . 0 ok (ATmega328P)> $100 0 0 mmc_write . 0 ok (ATmega328P)> $100 0 0 mmc_write . 0 ok (ATmega328P)> $100 0 0 mmc_write . 0 ok (ATmega328P)> $100 0 0 mmc_write . 4 ok (ATmega328P)> Aborted with keyboard interrupt fish: Job 1, “make term PORT=/dev/ttyUSB1 ” terminated by signal SIGINT (Quit request from job control (^C)) andreas@w530 ~/D/c/c/wetland-mcu-nodes> sudo ired /dev/mmcblk0 [0x00000000]> x 0x00000000: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000010: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000020: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000030: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000040: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000050: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000060: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000070: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000080: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x00000090: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x000000a0: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x000000b0: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x000000c0: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x000000d0: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x000000e0: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa 0x000000f0: 6161 6161 6161 6161 6161 6161 6161 6161 aaaaaaaaaaaaaaaa [0x00000000]> ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel