Browse Source

Added PSRAM-flag to Lolin D32 pro

master
Torsten Stauder 5 years ago
parent
commit
25830b1ce4
  1. BIN
      PCBs/Wemos Lolin D32/Infos/sch_d32_v1.0.0.pdf
  2. BIN
      PCBs/Wemos Lolin32/Infos/LOLIN32_Circuit.png
  3. 9
      platformio.ini
  4. 1
      src/main.cpp
  5. 4
      src/settings-lolin32.h
  6. 2
      src/settings-lolin_d32_pro.h

BIN
PCBs/Wemos Lolin D32/Infos/sch_d32_v1.0.0.pdf

BIN
PCBs/Wemos Lolin32/Infos/LOLIN32_Circuit.png

After

Width: 1183  |  Height: 883  |  Size: 167 KiB

9
platformio.ini

@ -24,7 +24,7 @@ lib_deps_external =
; https://github.com/pschatzmann/ESP32-A2DP.git ; https://github.com/pschatzmann/ESP32-A2DP.git
[env:common] [env:common]
build_flags = -DHAL=1 -DHAL=3
build_flags = -DHAL=1 -DHAL=3 -DHAL=4
; Don't forget to run this script if you changed the html-files provided in any way ; Don't forget to run this script if you changed the html-files provided in any way
extra_scripts = extra_scripts =
pre:processHtml.py pre:processHtml.py
@ -44,6 +44,7 @@ lib_deps =
${common.lib_deps_external} ${common.lib_deps_external}
[env:lolin32] [env:lolin32]
;https://docs.platformio.org/en/latest/boards/espressif32/lolin32.html
platform = espressif32 platform = espressif32
board = lolin32 board = lolin32
framework = arduino framework = arduino
@ -59,6 +60,7 @@ upload_port = /dev/cu.SLAB_USBtoUART
monitor_port = /dev/cu.SLAB_USBtoUART monitor_port = /dev/cu.SLAB_USBtoUART
[env:lolin_d32] [env:lolin_d32]
;https://docs.platformio.org/en/latest/boards/espressif32/lolin_d32.html
platform = espressif32 platform = espressif32
board = lolin_d32 board = lolin_d32
framework = arduino framework = arduino
@ -74,6 +76,7 @@ upload_port = /dev/cu.SLAB_USBtoUART
monitor_port = /dev/cu.SLAB_USBtoUART monitor_port = /dev/cu.SLAB_USBtoUART
[env:lolin_d32_pro] [env:lolin_d32_pro]
;https://docs.platformio.org/en/latest/boards/espressif32/lolin_d32_pro.html
platform = espressif32 platform = espressif32
board = lolin_d32_pro board = lolin_d32_pro
framework = arduino framework = arduino
@ -87,8 +90,11 @@ lib_deps =
extra_scripts = ${env:common.extra_scripts} extra_scripts = ${env:common.extra_scripts}
upload_port = /dev/cu.wchusbserial1410 upload_port = /dev/cu.wchusbserial1410
monitor_port = /dev/cu.wchusbserial1410 monitor_port = /dev/cu.wchusbserial1410
build_flags = -DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
[env:nodemcu-32s] [env:nodemcu-32s]
;https://docs.platformio.org/en/latest/boards/espressif32/nodemcu-32s.html
platform = espressif32 platform = espressif32
board = nodemcu-32s board = nodemcu-32s
framework = arduino framework = arduino
@ -104,6 +110,7 @@ upload_port = /dev/cu.SLAB_USBtoUART
monitor_port = /dev/cu.SLAB_USBtoUART monitor_port = /dev/cu.SLAB_USBtoUART
[env:az-delivery-devkit-v4] [env:az-delivery-devkit-v4]
;https://docs.platformio.org/en/latest/boards/espressif32/az-delivery-devkit-v4.html
platform = espressif32 platform = espressif32
board = az-delivery-devkit-v4 board = az-delivery-devkit-v4
framework = arduino framework = arduino

1
src/main.cpp

@ -4156,6 +4156,7 @@ void setup() {
snprintf(logBuf, serialLoglength, "%s: %u", (char *) FPSTR(freeHeapAfterSetup), ESP.getFreeHeap()); snprintf(logBuf, serialLoglength, "%s: %u", (char *) FPSTR(freeHeapAfterSetup), ESP.getFreeHeap());
loggerNl(logBuf, LOGLEVEL_DEBUG); loggerNl(logBuf, LOGLEVEL_DEBUG);
Serial.printf("PSRAM: %u bytes\n", ESP.getPsramSize());
} }

4
src/settings-lolin32.h

@ -7,8 +7,8 @@
Infos: https://arduino-projekte.info/wemos-lolin32/ Infos: https://arduino-projekte.info/wemos-lolin32/
Caveats: None Caveats: None
Status: Status:
tested with 2x SPI, RC522, SD (by biologist79)
tested with 1x SPI, PN5180, MMC (by biologist79)
tested with 2x SPI: RC522 & SD (by biologist79)
tested with 1x SPI: PN5180, SD (MMC) (by tueddy)
*/ */
//################## GPIO-configuration ############################## //################## GPIO-configuration ##############################

2
src/settings-lolin_d32_pro.h

@ -8,7 +8,7 @@
Schematics: https://www.wemos.cc/en/latest/_static/files/sch_d32_pro_v2.0.0.pdf Schematics: https://www.wemos.cc/en/latest/_static/files/sch_d32_pro_v2.0.0.pdf
Caveats: GPIO35 (battery monitoring) + SD can't be changed, it's built in Caveats: GPIO35 (battery monitoring) + SD can't be changed, it's built in
Status: Status:
tested with 2xSPI & RC522 (by biologist79)
tested with 2xSPI: RC522 & SD (by biologist79)
*/ */
//################## GPIO-configuration ############################## //################## GPIO-configuration ##############################

Loading…
Cancel
Save