WiFi in Multitasking-CP/M with TTGO VGA32
guidol70 opened this issue · comments
Hi,
I did compile the Multitasking-CP/M for a TTGO VGA32.
After the first compile WIFISCAN did told me to activate HAS_WIFI in /src/defs.h
but here it was already activated with
#define HAS_WIFI
So I checked the source and found in /src/HAL.h
#ifndef _ESP32_SOC_H_
#undef HAS_WIFI
#endif
which I then commented out. It seems that the TTGO VGA32 isnt recongnized as a
ESP32_SOC_H :( (configured a ESP32 Dev Module in the Arduino-IDE)
After the next compile, when I do get the prompt I have serveral
"^@^@^@^@^@^@^@^@^@" after the A> prompt
WIFISCAN does work :)
When I try to connect to WiFi with
WIFI SSID PWD
it fails (WiFi has WPA and WPA2-PSK and also a DCHP Server)
Connecting WiFi...failed!
Anything else that I could try to connect/check WiFi?
(PSRAM is enabled at compile-time like said in Issue 248)
PS: I have enabled SDCard Support on the TTGO VGA32 with the follwoing lines:
(are they correct (it does work) or is there a better way?)
// SPI "2,12,14,13" for TTGO_VGA32 / PICO-D4 (MISO, MOSI, CLK, CS)
// allocationUnitSize 16*1024 = 16384
static int allocationUnitSize = 16*1024;
static int MISO = 2;
static int MOSI = 12;
static int CLK = 14;
static int CS = 13;
if (FileBrowser::mountSDCard(FORMAT_ON_FAIL, SDCARD_MOUNT_PATH, MAXFILES, allocationUnitSize, MISO, MOSI, CLK, CS))
basepath = SDCARD_MOUNT_PATH;
else if (FileBrowser::mountSPIFFS(FORMAT_ON_FAIL, SPIFFS_MOUNT_PATH, MAXFILES))
basepath = SPIFFS_MOUNT_PATH;
In my case wifiscan does not work in MultitaskingCPM, even if I comment the line with #undef HAS_WIFI
, but it answers:
Scanning...-2 network(s) found
It answered like this even before I commented the line with #undef HAS_WIFI
(I have remembered to save changes), i.e. _ESP32_SOC_H_
is defined in my case. If I try to connect to a known WiFi router it answers:
Connecting WiFi...failed!
Scanning for WiFi and connecting to this router and others works in NetworkTerminal for me even to WPA2.
I Serial Monitor it outputs the following when i do WIFISCAN:
17:35:38.614 -> E (643728) wifi:create wifi task: failed to create task
I use TTGO VGA32_V1.4 21-2-20 and Arduino 1.8.19 installed from Microsoft Store. PSRAM is enabled for this sketch only, but all other settings are the normal for FabGL-sketches. The BAS-demos that don't use ADC or GPIO work, e.g. GRAPH.BAS
and SPRITE.BAS
work. They didn't work before I enabled PSRAM, but this had no effect on wifiscan
.