![]() Sd_card_example_main:95:32: error: invalid conversion from 'int' to 'spi_host_device_t' Sd_card_example_main:27:22: error: invalid conversion from 'int' to 'gpio_num_t' ĭ:\esp\esp-idf\examples\storage\sd_card\sdspi\main\sd_card_example_main\sd_card_example_main.ino:94:27: note: in expansion of macro 'PIN_NUM_CS' In file included from C:\Users\Val V\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0-rc1/tools/sdk/esp32s2/include/driver/include/driver/spi_master.h:12,įrom C:\Users\Val V\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0-rc1/tools/sdk/esp32s2/include/driver/include/driver/sdspi_host.h:14,įrom C:\Users\Val V\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0-rc1/tools/sdk/esp32s2/include/fatfs/vfs/esp_vfs_fat.h:20,įrom D:\esp\esp-idf\examples\storage\sd_card\sdspi\main\sd_card_example_main\sd_card_example_main.ino:14:Ĭ:\Users\Val V\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0-rc1/tools/sdk/esp32s2/include/driver/include/driver/spi_common.h:139:48: note: initializing argument 1 of 'esp_err_t spi_bus_initialize(spi_host_device_t, const spi_bus_config_t*, spi_dma_chan_t)'Įsp_err_t spi_bus_initialize(spi_host_device_t host_id, const spi_bus_config_t *bus_config, spi_dma_chan_t dma_chan) Ret = spi_bus_initialize(host.slot, &bus_cfg, SPI_DMA_CHAN) Sd_card_example_main:85:35: error: invalid conversion from 'int' to 'spi_host_device_t' Serial.println("Ethernet cable is not connected.I did change to SPI and made some progress but still getting errors.different Errors :\esp\esp-idf\examples\storage\sd_card\sdspi\main\sd_card_example_main\sd_card_example_main.ino: In function 'void app_main()': Now when I run the following init function void Ethernet_Init(void) SPI.begin(HSPI_SCLK, HSPI_MISO, HSPI_MOSI, HSPI_SS) It was SPIClass SPI(VSPI) and i think it is fixed unfortunatlyĪnd I changed here void Enc28J60Network::initSPI() ![]() I forced this command SPIClass SPI(HSPI) #define SPI_ETHERNET_SETTINGS SPISettings(spiClk, MSBFIRST, SPI_MODE0)īut still getting not connection with the HW shield… #define CSPASSIVE digitalWrite(csPin, HIGH) #define CSACTIVE digitalWrite(csPin, LOW) Static const int spiClk = 6000000 // 6 MHz Where the variables are the following #define HSPI_MISO 12 PinMatrixOutAttach(HSPI_MOSI, 0, false, false) PinMatrixOutAttach(HSPI_SCLK, 0, false, false) Hspi->begin(HSPI_SCLK, HSPI_MISO, HSPI_MOSI, HSPI_SS) //SCLK, MISO, MOSI, SS I have tried to modify the code in the following way … void New_SPI_init (void) My concern is that If have the following Hw configurationįrom the code it seems that I can only set the CS pin… I need to set all the pins correctly or verify that they are using the right oneĪny idea of what, how or where Can I verify this ? Serial.println("Ethernet cable is not connected.") Įach time it tells that it cannot find the hw… It does not recognize the shield… :(") ĭelay(1) // do nothing, no point running without Ethernet hardware Serial.println("Ethernet shield was not found. If (Ethernet.hardwareStatus() = EthernetNoHardware) start the Ethernet connection and the server: Serial.println("Ethernet WebServer Example") Open serial communications and wait for port to open: You can use Ethernet.init(pin) to configure the CS pinĮthernet.init(15) // Most Arduino shields ![]() with the IP address and port you want to useīool printWebData = true // set to false for better speed measurement Initialize the Ethernet server library The IP address will be dependent on your local network: Enter a MAC address and IP address for your controller below. I just tried one example and It didn’t work, #include
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |