khoih-prog / WiFiNINA_Generic

Enables WiFiNINA network connection (local and Internet) for SAM DUE, SAMD21, SAMD51, Teensy, AVR Mega, STM32, RP2040-based boards, etc. in addition to Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Arduino UNO WiFi Rev.2 , Nano 33 IoT, Nano_RP2040_Connect. Now with fix of severe limitation to permit sending much larger data than total 4K
GNU General Public License v3.0
38 stars 13 forks source link

WiFiNiNa generic STM32F446RE with AirLift WiFi ESP32 co-processor - doesn't communicate #7

Closed vilkovaleksandrstupino closed 3 years ago

vilkovaleksandrstupino commented 3 years ago

Hello, thank you for work with library. I try to connect to wifi by using Airlift ESP32 which controls by STM32F446RE. I done requirements in changing pinout, but whatever I done I always receive this in serial port.

15:26:34.947 -> Start ScanNetworks on NUCLEO_F446RE
15:26:34.947 -> Version 1.7.2
15:26:35.701 -> Communication with WiFi module failed!

I am not sure what do wrong. P.S. I try not my code but example.

khoih-prog commented 3 years ago

Thanks for your interest in the library.

I'm sorry with that so little information, I'm afraid nobody can help you and can only suggest that you follow these ways

  1. Ask for support in the Adafruit Feather forum
  2. Use the Adafruit's WiFiNINA library
  3. Check Adafruit AirLift FeatherWing - ESP32 WiFi Co-Processor for more information on how to use
  4. Be sure to add to WiFiNINA_Pinout_Generic.h from line #395
#if defined(ARDUINO_NUCLEO_L053R8)
    // For Nucleo-64 NUCLEO_L053R8
    #warning You have to modify pin usage according to actual connection for NUCLEO_L053R8
    #define PINS_COUNT           (60u)
    //NINA
    #define NINA_GPIO0  (6u)                             //not used
    #define NINA_RESETN (D2)
    #define NINA_ACK    (D3)

    #define SPIWIFI_SS       D10   //PIN_SPI1_SS           //10
    #define SPIWIFI_ACK      D3   //NINA_ACK               //3
    #define SPIWIFI_RESET    D2   //NINA_RESETN            //2

  #elif definned(ARDUINO_NUCLEO_F446RE)
    / For Nucleo-64 ARDUINO_NUCLEO_F446RE
    #warning You have to modify pin usage according to actual connection for ARDUINO_NUCLEO_F446RE
    #define PINS_COUNT           (60u)
    //NINA
    #define NINA_GPIO0  (6u)        // to be changed accordingly
    #define NINA_RESETN (D2)        // to be changed accordingly
    #define NINA_ACK    (D3)        // to be changed accordingly

    #define SPIWIFI_SS       D10   //PIN_SPI1_SS         // to be changed accordingly
    #define SPIWIFI_ACK      D3    //NINA_ACK              // to be changed accordingly
    #define SPIWIFI_RESET    D2    //NINA_RESETN     // to be changed accordingly
  #else  
    #warning You have to modify pin usage according to actual connection for STM32
    #define PINS_COUNT           (60u)
    //NINA
    #define NINA_GPIO0  (26u)                             //26
    #define NINA_RESETN (27u)
    #define NINA_ACK    (28u)

    #define SPIWIFI_SS       24   //PIN_SPI1_SS            //24
    #define SPIWIFI_ACK      28   //NINA_ACK               //28 
    #define SPIWIFI_RESET    27   //NINA_RESETN            //27
  #endif

I'm afraid I can not help any further as I don't have either Airlift ESP32 or STM32F446RE.

Good Luck,