Hello!
I am programming an RTL-AMEBA_DEV01_1V0 (RTL8195) dev board using Arduino 1.8.16 on Linux Peppermint Linux version 5.4. amd64 (Ubuntu 7.5.0-3ubuntu1~18.04).
I added support to Realtekboards using this link:
https://www.amebaiot.com/en/ameba-arduino-getting-started/
I have installed 2.0.11 version but I have tried with versions 2.0.5 to 2.0.11 without luck.
After I load the example from File → Examples → AmebaWifi → ConnectWithWPA
this is what I get in the console:
========================================================= ROM Version: 0.3Build ToolChain Version: gcc version 4.8.3 (Realtek ASDK-4.8.3p1 Build 2003)
=========================================================
Check boot type form eFuse
SPI Initial
Image1 length: 0x3a88, Image Addr: 0x10000bc8
Image1 Validate OK, Going jump to Image1
BOOT from Flash:YES
===== Enter Image 1 ====
SDR Controller Init
load NEW fw 0
Flash Image2:Addr 0xb000, Len 64124, Load to SRAM 0x10006000
Image3 length: 0x2b298, Image3 Addr: 0x30000000
Img2 Sign: RTKWin, InfaStart @ 0x10006049
===== Enter Image 2 ====
addr:1002C070 size:00043F90
addr:300308EC size:001CF714
interface 0 is initialized
interface 1 is initialized
Initializing WIFI …
WIFI initializedRTL8195A[Driver]: set ssid [RED]
RTL8195A[Driver]: start auth to 38:80:df:0d:3c:0f
RTL8195A[Driver]: auth success, start assoc
RTL8195A[Driver]: association success(res=4)
I can not see the output of the line:
Serial.print("You're connected to the network");
The SSID and password are OK.
It seems that program won’t return from this call:
Breakpoint 4, wifi_connect (ssid="RED", security_type=RTW_SECURITY_WPA2_AES_PSK, password="123456780", ssid_len=3, password_len=9, key_id=0, semaphore=) at ../../../component/common/api/wifi/wifi_conf.c:414
Its called from int8_t WiFiDrv::wifiSetPassphrase at wifi_drv.cpp(116)
Realtek board can connect with the AP if security is disabled (tested with the example ConnectNoEncryption).
ESP32 can connect to the AP using WPA encryption (tested with the example WiFiClient for ESP32 boards).
Can someone help me to debug this issue? Could be a Layer 8 problem?