defragster
Senior Member+
Yes. Always the same x3c ID , I have two of them. If you give me tips I can set up a teensy slave quickly
... Also would it help to setup one or more T3.2s with maybe the client demo program?
Can you post a SLAVE and SCANNER that you have tested to work? Ideally with the Scanner adjustable across the Wire#'s.
---------------------------------------------------
Bus Status Summary
---------------------------------------------------
Wire Config: MASTER,18/19,I2C_PULLUP_EXT,Rate:400000Hz
Wire1 Config: MASTER,37/38,I2C_PULLUP_EXT,Rate:400000Hz
Wire2 Config: MASTER,3/4,I2C_PULLUP_EXT,Rate:400000Hz
Wire3 Config: MASTER,42/43,I2C_PULLUP_EXT,Rate:400000Hz
---------------------------------------------------
Starting scan: Wire
Config: MASTER,18/19,I2C_PULLUP_EXT,Rate:400000Hz
---------------------------------------------------
Addr 0x30
Addr 0x31
Addr 0x32
Addr 0x33
Addr 0x34
Addr 0x35
Addr 0x36
Addr 0x37
Addr 0x38
Addr 0x39
Addr 0x3A
Addr 0x3B
Addr 0x3C ACK
Addr 0x3D
Addr 0x3E
Addr 0x3F
---------------------------------------------------
Starting scan: Wire1
Config: MASTER,37/38,I2C_PULLUP_EXT,Rate:400000Hz
---------------------------------------------------
Addr 0x30
Addr 0x31
Addr 0x32
Addr 0x33
Addr 0x34
Addr 0x35
Addr 0x36
Addr 0x37
Addr 0x38
Addr 0x39
Addr 0x3A
Addr 0x3B
Addr 0x3C ACK
Addr 0x3D
Addr 0x3E
Addr 0x3F
---------------------------------------------------
Starting scan: Wire2
Config: MASTER,3/4,I2C_PULLUP_EXT,Rate:400000Hz
---------------------------------------------------
Addr 0x30
Addr 0x31
Addr 0x32
Addr 0x33
Addr 0x34
Addr 0x35
Addr 0x36
Addr 0x37
Addr 0x38
Addr 0x39
Addr 0x3A
Addr 0x3B
Addr 0x3C ACK
Addr 0x3D
Addr 0x3E
Addr 0x3F
---------------------------------------------------
Starting scan: Wire3
Config: MASTER,42/43,I2C_PULLUP_EXT,Rate:400000Hz
---------------------------------------------------
Addr 0x30 Timeout
Addr 0x31 Timeout
Addr 0x32 Timeout
Addr 0x33 Timeout
Addr 0x34 Timeout
Addr 0x35 Timeout
Addr 0x36 Timeout
Addr 0x37 Timeout
Addr 0x38 Timeout
Addr 0x39 Timeout
Addr 0x3A Timeout
Addr 0x3B Timeout
Addr 0x3C Timeout
Addr 0x3D Timeout
Addr 0x3E Timeout
Addr 0x3F Timeout
Starting scan: Wire1
Config: MASTER,37/38,I2C_PULLUP_EXT,Rate:400000Hz
---------------------------------------------------
Addr 0x3C ACK
Addr 0x3D ACK
@nox771 - I have an extra SSD1306 display and some FRAM chips rated for 1 MHz I2C. Would any of these help? We could send them tomorrow.
<dir> �C�#B.d� <dir> �C�#C�.d�
<dir> �C%��#.Dd�
<dir> C##CS".d�
<dir> %C##C#.Dd�
320 UDU5C.$�
4294967055 @��.��
<dir> �D��.�
<dir> �t��5U".�
96 3cB.
192 d�4�.
192 �4U$d�4.�
4279173120 0P.`�
192 �4U$d��.
4294967055 0P.`�
192 �4U$d��."
Hm..same effect again with writing a new file:
Code:<dir> �C�#B.d� <dir> �C�#C�.d� <dir> �C%��#.Dd� <dir> C##CS".d� <dir> %C##C#.Dd� 320 UDU5C.$� 4294967055 @��.�� <dir> �D��.� <dir> �t��5U".� 96 3cB. 192 d�4�. 192 �4U$d�4.� 4279173120 0P.`� 192 �4U$d��. 4294967055 0P.`� 192 �4U$d��."
The existing filenames are destroyed.
Hm, these files and filenames were ok (written with PC) - i wrote a new file, and this lead to the listing above - the fat got destroyed somehow..
edit: a pure ascii filename.
Hm..same effect again with writing a new file:
Code:<dir> �C�#B.d� <dir> �C�#C�.d� <dir> �C%��#.Dd� <dir> C##CS".d� <dir> %C##C#.Dd� 320 UDU5C.$� 4294967055 @��.�� <dir> �D��.� <dir> �t��5U".� 96 3cB. 192 d�4�. 192 �4U$d�4.� 4279173120 0P.`� 192 �4U$d��. 4294967055 0P.`� 192 �4U$d��."
The existing filenames are destroyed.
@wmxz: perhaps this (https://github.com/WMXZ-EU/uSDFS/pull/2/commits/967b70b4ec3933360fbb5d8a2fac5e6ae19feed0) is part of the problem.
SDCLK Frequency Select
Used to select the frequency of the SDCLK pin. The frequency is not programmed directly. Rather this
register holds the prescaler (this register) and divisor (next register) of the base clock frequency register.
Setting 00h bypasses the frequency prescaler of the SD Clock. Multiple bits must not be set, or the
behavior of this prescaler is undefined. The two default divider values can be calculated by the frequency
of SDHC clock and the following divisor bits.
The frequency of SDCLK is set by the following formula: Clock frequency = (Base clock) / (prescaler x
divisor)
For example, if the base clock frequency is 96 MHz, and the target frequency is 25 MHz, then choosing
the prescaler value of 01h and divisor value of 1h will yield 24 MHz, which is the nearest frequency less
than or equal to the target. Similarly, to approach a clock value of 400 kHz, the prescaler value of 08h and
divisor value of eh yields the exact clock value of 400 kHz. The reset value of this field is 80h, so if the
input base clock ( SDHC clock ) is about 96 MHz, the default SD clock after reset is 375 kHz.
According to the SD Physical Specification Version 1.1 and the SDIO Card Specification Version 1.2, the
maximum SD clock frequency is 50 MHz and shall never exceed this limit.
Only the following settings are allowed:
01h Base clock divided by 2.
02h Base clock divided by 4.
04h Base clock divided by 8.
08h Base clock divided by 16.
10h Base clock divided by 32.
20h Base clock divided by 64.
40h Base clock divided by 128.
80h Base clock divided by 256.
48 45 4C 4C 4F 34 20 20 54 58 54 20 00 00 D8 A6 E6 48 E6 48 00 00 D8 A6 E6 48 6A 67 4A 00 00 00 03 13 03 65 F4 44 A7 E3 14 D5 03 32 00 06 97 2A 5E 64 8E 64 80 00 08 16 50 94 59 B6 69 09 D6 60 04 84 54 C4 C4 F3 42 02 05 45 85 42 00 00 08 9A 5E 64 80 00 00 00 08 9A 5E 64 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
HELLO4 TXT ..ئæHæH..ئæHjgJ......eôD§ã.Õ.2..—*^dŽd€...P”Y¶i.Ö`.„TÄÄóB..E…B...š^d€....š^d€.....
Create a new file (hello10.txt). Write a text data. (Hello world!)
Close the file.
Open same file (hello10.txt).
Failed with rc=4.
..After several more tests:
It works good <144 MHZ.
With 144 MHZ i get a corupted FAT.
This time, i just reformatted the card and copied nothing to it.
The card was empty.