Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

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

Closed
vilkovaleksandrstupino opened this issue Jan 28, 2021 · 1 comment
Labels
Support Library support

Comments

@vilkovaleksandrstupino
Copy link

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
Copy link
Owner

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,

@khoih-prog khoih-prog added the Support Library support label Jan 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Support Library support
Projects
None yet
Development

No branches or pull requests

2 participants