These are chat archives for esp8266/Arduino

11th
Aug 2016
Mehrdad K
@mkeyno
Aug 11 2016 07:22
@me-no-dev when HW SPI will be ready to use ? and to how fast we can get by SW SPI
Ivan Grokhotkov
@igrr
Aug 11 2016 07:47
built-in SPI library uses hardware SPI
Mehrdad K
@mkeyno
Aug 11 2016 07:49
you mean flowing code is HW SPI
void SPIClass::begin() {
    pinMode(SCK, SPECIAL);  ///< GPIO14
    pinMode(MISO, SPECIAL); ///< GPIO12
    pinMode(MOSI, SPECIAL); ///< GPIO13

    SPI1C = 0;
    setFrequency(1000000); ///< 1MHz
    SPI1U = SPIUMOSI | SPIUDUPLEX | SPIUSSE;
    SPI1U1 = (7 << SPILMOSI) | (7 << SPILMISO);
    SPI1C1 = 0;
}
Ivan Grokhotkov
@igrr
Aug 11 2016 07:49
yep
Mehrdad K
@mkeyno
Aug 11 2016 07:50
I thought it is only bitbang initiation , however how fast can I get with this lib
I've already over clock cpu and flash speed but need very faster SPI
Ivan Grokhotkov
@igrr
Aug 11 2016 07:55
SPI hardware can go up to 80 MHz
Mehrdad K
@mkeyno
Aug 11 2016 07:55
cool, how can I set the parameters so could reach such speed
Ivan Grokhotkov
@igrr
Aug 11 2016 07:56
SPI.setFrequency(80000000);
Mehrdad K
@mkeyno
Aug 11 2016 07:56
that's all
Mehrdad K
@mkeyno
Aug 11 2016 19:19
@igrr I'll get section `.text' will not fit in region `iram1_0_seg' compile error when change debug level from none to any , does any kind of memory get full or somethings
sticilface
@sticilface
Aug 11 2016 21:18
@mkeyno are you using the arduino IDE to compile or platformio?