Thanks,
Just tested with alternate pin numbers
SPI1.setSCK(32);
SPI1.setMOSI(21);
SPI1.setMISO(5);
with EraseEverything and rawtest...
As for SPI2? I don't see any IO pins defined in table for SPI2... I see I2C2, but. Not sure about PTE... But will look.
If I am looking over these pins, as well as the SD card ones I think the pin definitions are?SPI2 would be back-pads if room (according to Paul's table)
44 MISO2
45 MOSI2
46 SCK2
47 CS2
PTB20-23 according to data sheet.
On-board SD card (dedicated 4-bit SDIO)
----------------
8 E2 PTE5 DISABLED PTE5 SPI1_PCS2 UART3_RX SDHC0_D2 FTM3_CH0
7 E3 PTE4 DISABLED PTE4/LLWU_P2 SPI1_PCS0 UART3_TX SDHC0_D3 TRACE_D0
4 E4 PTE3 ADC1_SE7a ADC1_SE7a PTE3 SPI1_SIN UART1_RTS_b SDHC0_CMD TRACE_D1 SPI1_SOUT
3 D1 PTE2 PTE2/LLWU_P1 ADC1_SE6a PTE2/LLWU_P1 SPI1_SCK UART1_CTS_b SDHC0_DCLK TRACE_D2
2 D2 PTE1 ADC1_SE5a ADC1_SE5a PTE1/LLWU_P0 SPI1_SOUT UART1_RX SDHC0_D0 TRACE_D3 I2C1_SCL SPI1_SIN
1 D3 PTE0 ADC1_SE4a ADC1_SE4a PTE0 SPI1_PCS1 UART1_TX SDHC1_D1 TRACE_CLKOUT I2C1_SDA RTC_CLKOUT
If room for pads on bottom…
40 138 B9 PTD9 DISABLED PTD9 I2C0_SDA LPUART0_TX FB_A17
41 137 C9 PTD8/LLWU_P24 DISABLED PTD8/LLWU_P24 I2C0_SCL LPUART0_RX FB_A16
42 14 G4 PTE11 DISABLED PTE11 I2C3_SCL I2S0_TX_FS LPUART0_RTS_b FTM3_CH6
43 13 F1 PTE10/LLWU_P16 DISABLED PTE10/LLWU_P18 I2C3_SDA I2S0_TXD0 LPUART0_CTS_b FTM3_CH5 USB1_ID
44 PTB23 DISABLED PTB23 SPI2_SIN SPI0_PCS5 FB_AD28/SDRAM_D28 CMP3_OUT
45 PTB22 DISABLED PTB22 SPI2_SOUT FB_AD29/SDRAM_D29 CMP2_OUT
46 PTB21 DISABLED PTB21 SPI2_SCK FB_AD30/SDRAM_D30 CMP1_OUT
47 99 D10 PTB20 DISABLED PTB20 SPI2_PCS0 FB_AD31/SDRAM_D31 CMP0_OUT
Looks like some chips might not overclock all the way to 240 MHz.
The chip I have here on my desk seems to run well for many hours at 240 MHz, but it does get noticeably warm.
Also not sure if any of these pins are accessible on the initial test boards?
[h=4]Features[/h]
- Windows compatible FAT/exFAT file system.
- Platform independent. Easy to port.
- Very small footprint for program code and work area.
- Various configuration options to support for:
- Multiple volumes (physical drives and partitions).
- Multiple ANSI/OEM code pages including DBCS.
- Long file name in ANSI/OEM or Unicode.
- exFAT file system.
- RTOS envilonment.
- Fixed or variable sector size.
- Read-only, optional API, I/O buffer and etc...
you know Elm Chan's SD-Code ?
http://elm-chan.org/fsw/ff/00index_e.html
Somebody saw EEPROM working? Using what method? I'd like to find a working starting point to prove my EEPROM working.
/*
eeprom perf (cycle power to confirm)
*/
#include <EEPROM.h>
unsigned long t;
void setup()
{
int i,val,errs=0;
Serial.begin(9600); while(!Serial); delay(5000);
Serial.print("EEPROM length: ");
Serial.println(EEPROM.length());
Serial.println("initial read");
for (i=0;i<100;i++) {
val = EEPROM.read(i);
if (val != i) {
Serial.print(val);
Serial.print(" should be ");
Serial.println(i);
errs++;
}
}
Serial.print("read errs "); Serial.println(errs);
#if 0
t=micros();
for (i=0;i<100;i++) EEPROM.write(i, i);
t=micros()-t;
Serial.print("write "); Serial.println(t);
#endif
}
void loop()
{
int i,val;
t=micros();
for (i=0;i<100;i++) val = EEPROM.read(i);
t=micros()-t;
Serial.print("100 reads (us) "); Serial.println(t);
Serial.println(val); // reference val
delay(2000);
}
this is just a variation of simple Arduino demo. fix #if to write something the first time
{...}
EDIT: the clear example, actually writes 0s -- not sure why that didn't work for you? speed problem?
Okay - never expected that will look at : static void flexram_wait(void) ?
<edit> it always reads 255 at high clock rates.
how many total digital i/o pins will this have?
EEPROM: On my Board, writing does not work with more than 120 MHz F_CPU
Paul - have you made a table for test areas like for the LC? This one needs columns for test speeds
40 on beta, 45 if there is room on production -- Paul knows best. see post #93
Also not sure if any of these pins are accessible on the initial test boards?
3.3V [] () GND
40 () () 41
42 () () 43
44 () () 45
46 () () 47
On teensy 3.2, no pin is wasted, would it be the same for this?