Hello,
what a fantastic project and initiative! I would really like to contribute here. Well, maybe with some error logs first. I managed to compile the code for ESP32 and flashed it on my ESP32Dev v4. Worked like a charm. I then connected to the wifi accesspoint. Launched MP and tried to connect via tcp (192.168.4.1 on 5760 with 115200 baud rate).
Unfortunately, without success. MP gives me a timeout. I checked my firewall and disabled it (I’m running on Ubuntu). Still no success.
The tcp seems to be there:
telnet 192.168.4.1 5760
Trying 192.168.4.1...
Connected to 192.168.4.1.
Escape character is '^]'.
This is what ninja monitor gives me:
Anyone knows what is going on? I have no SD-Card reader attached. Could this be the culprit?
Oh and as for the sensors: I use MPU9250 and BMP280 on SPI …
rst:0x1 (POWERON_RESET),boot:0x1a (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4976
load:0x40078000,len:15300
ho 0 tail 12 room 4
load:0x40080400,len:3776
entry 0x40080620
I (559) cpu_start: Multicore app
I (559) cpu_start: Pro cpu up.
I (560) cpu_start: Starting app cpu, entry point is 0x40085698
I (0) cpu_start: App cpu up.
I (577) cpu_start: Pro cpu start user code
I (577) cpu_start: cpu freq: 240000000
I (577) cpu_start: Application information:
I (582) cpu_start: ELF file SHA256: 871207bb39df5054...
I (588) cpu_start: ESP-IDF: v4.4.6-502-g6897e4e0fa
I (594) cpu_start: Min chip rev: v0.0
I (599) cpu_start: Max chip rev: v3.99
I (604) cpu_start: Chip rev: v3.0
I (609) heap_init: Initializing. RAM available for dynamic allocation:
I (616) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (622) heap_init: At 3FFC6508 len 00019AF8 (102 KiB): DRAM
I (628) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (634) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (641) heap_init: At 40096508 len 00009AF8 (38 KiB): IRAM
I (648) spi_flash: detected chip: generic
I (652) spi_flash: flash io: qio
I (667) esp_core_dump_uart: Init core dump to UART
I (667) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
virtual void ESP32::Scheduler::init():70 running with CONFIG_FREERTOS_HZ=500
OK created task _main_thread
AnalogIn: eFuse Two Point: NOT supported
AnalogIn: eFuse Vref: Supported
OK created task _timer_thread
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
OK created task _rcout_thread
RCOե�}ѡɕ��5
OK created task _uart_thread
Mounting sd
I (757) SD...: Initializing SD card as SDMMC
Init ArduCopter V4.5.0-dev (00a65632)
Free RAM: 110592
OK created task _io_thread
OK created task _storage_thread
Firmware change: erasing EEPROM...
done.
E (785) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (785) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
sdcard is not mounted
load_all took 2399174us
I (3183) wifi:wifi driver task: 3ffd9800, prio:23, stack:6656, core=0
I (3183) system_api: Base MAC address is not set
I (3183) system_api: read default base MAC address from EFUSE
I (3189) wifi:wifi firmware version: 1fd20f4
I (3193) wifi:wifi certification version: v7.0
I (3197) wifi:config NVS flash: disabled
I (3201) wifi:config nano formating: disabled
I (3205) wifi:Init data frame dynamic rx buffer num: 16
I (3211) wifi:Init static rx mgmt buffer num: 5
I (3215) wifi:Init management short buffer num: 32
I (3219) wifi:Init dynamic tx buffer num: 16
I (3223) wifi:Init static rx buffer size: 1600
I (3227) wifi:Init static rx buffer num: 2
I (3231) wifi:Init dynamic rx buffer num: 16
I (3235) wifi_init: tcpip mbox: 32
I (3239) wifi_init: udp mbox: 6
I (3243) wifi_init: tcp mbox: 6
I (3247) wifi_init: tcp tx win: 5744
I (3251) wifi_init: tcp rx win: 5744
I (3255) wifi_init: tcp mss: 1436
I (3259) wifi_init: WiFi RX IRAM OP enabled
I (3419) phy_init: phy_version 4791,2c4672b,Dec 20 2023,16:06:06
I (3493) wifi:mode : softAP (aa:42:e3:48:f7:0c)
I (3495) wifi:Total power save buffer number: 8
I (3495) wifi:Init max length of beacon: 752/752
I (3495) wifi:Init max length of beacon: 752/752
OK created task _wifi_thread
AnalogIn: adding ardupin:255-> which is adc1_offset:-1
AnalogIn: channel:0 created but using delayed adc and gpio pin configuration
spi device constructed SPI:bmp280:0:0
No Compass backends available
spi device constructed SPI:mpu9250:0:1
Init GyroI (17249) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
I (17249) wifi:station: 52:02:7b:0d:a0:db join, AID=1, bgn, 40U
I (17547) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2