Updating SPIN to work with ESP.

Status
Not open for further replies.
Lol at this point i dint think ive gotten programmed at all either. I just ran your sketch from your esp32 library and i got the same readings as in the post above this one. But i still get the invalid segment length etc. gonna try the fix you gave in a minute.
 
Im out fir the night but i wanted to report that when uploading it starts doing its stuff in the bottom screen of the IDE then it goes to hard resetting but it never does any thing after that. Is that normal?

Also when i upload your code to the device and power it up, the board comes to life. When i upload the esp32 library from thier site, same thing. When i upload my library sketch nothing after applying power.

Think ill just go back to my t3.6 for now and do you said take baby steps. Plus i got side tracked 3D model for a case. Theres still plenty to work on with getting the rest of the functions working like pop-ups which are like word bubbles. And a keyboard and etc.

Hopefully support will pick up soon at the esp32 site. I appreciate the help thus far. Extemely!!! Also will fix the example and try what i didnt get to tonight before i hook the teensy back up.

Ive contacted ddebeer and gave him my fundings as well.
 
Last edited:
Again I don't have your module, but assuming it is one of his newer modules, than it should be similar to the I have...

I have my Arduino setup with verbose compile and upload options set (in preferences dialog).

The output to build the simple app to in theory change the LEDS, shows this when I compile and upload:
Code:
D:\arduino-1.8.2\arduino-builder -dump-prefs -logger=machine -hardware D:\arduino-1.8.2\hardware -hardware C:\Users\kurte\AppData\Local\Arduino15\packages -hardware C:\Users\kurte\Documents\Arduino\hardware -tools D:\arduino-1.8.2\tools-builder -tools D:\arduino-1.8.2\hardware\tools\avr -tools C:\Users\kurte\AppData\Local\Arduino15\packages -built-in-libraries D:\arduino-1.8.2\libraries -libraries C:\Users\kurte\Documents\Arduino\libraries -fqbn=espressif:esp32:esp32:FlashFreq=80,UploadSpeed=921600,DebugLevel=none -ide-version=10802 -build-path C:\Users\kurte\AppData\Local\Temp\arduino_build_945691 -warnings=none -build-cache C:\Users\kurte\AppData\Local\Temp\arduino_cache_203580 -prefs=build.warn_data_percentage=75 -verbose C:\Users\kurte\Documents\Arduino\zzz\zzz.ino
D:\arduino-1.8.2\arduino-builder -compile -logger=machine -hardware D:\arduino-1.8.2\hardware -hardware C:\Users\kurte\AppData\Local\Arduino15\packages -hardware C:\Users\kurte\Documents\Arduino\hardware -tools D:\arduino-1.8.2\tools-builder -tools D:\arduino-1.8.2\hardware\tools\avr -tools C:\Users\kurte\AppData\Local\Arduino15\packages -built-in-libraries D:\arduino-1.8.2\libraries -libraries C:\Users\kurte\Documents\Arduino\libraries -fqbn=espressif:esp32:esp32:FlashFreq=80,UploadSpeed=921600,DebugLevel=none -ide-version=10802 -build-path C:\Users\kurte\AppData\Local\Temp\arduino_build_945691 -warnings=none -build-cache C:\Users\kurte\AppData\Local\Temp\arduino_cache_203580 -prefs=build.warn_data_percentage=75 -verbose C:\Users\kurte\Documents\Arduino\zzz\zzz.ino
Using board 'esp32' from platform in folder: C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32
Using core 'esp32' from platform in folder: C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32
Detecting libraries used...
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/config" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bluedroid" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/app_update" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bootloader_support" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bt" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/driver" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/esp32" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/ethernet" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/fatfs" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/freertos" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/jsmn" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/log" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mdns" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mbedtls" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mbedtls_port" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/nvs_flash" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/openssl" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/soc" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/spi_flash" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/sdmmc" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/tcpip_adapter" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/ulp" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/vfs" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/xtensa-debug-module" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/coap" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/wpa_supplicant" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/expat" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/json" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/nghttp" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/lwip" -std=gnu++11 -fno-exceptions -fno-rtti -Os -g3 -Wpointer-arith -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti  -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10802 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32  -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32\cores\esp32" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32\variants\esp32" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\sketch\zzz.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/config" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bluedroid" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/app_update" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bootloader_support" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bt" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/driver" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/esp32" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/ethernet" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/fatfs" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/freertos" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/jsmn" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/log" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mdns" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mbedtls" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mbedtls_port" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/nvs_flash" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/openssl" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/soc" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/spi_flash" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/sdmmc" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/tcpip_adapter" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/ulp" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/vfs" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/xtensa-debug-module" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/coap" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/wpa_supplicant" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/expat" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/json" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/nghttp" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/lwip" -std=gnu++11 -fno-exceptions -fno-rtti -Os -g3 -Wpointer-arith -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti  -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10802 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32  -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32\cores\esp32" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32\variants\esp32" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\sketch\zzz.ino.cpp" -o "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\preproc\ctags_target_for_gcc_minus_e.cpp"
"D:\arduino-1.8.2\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/config" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bluedroid" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/app_update" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bootloader_support" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/bt" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/driver" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/esp32" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/ethernet" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/fatfs" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/freertos" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/jsmn" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/log" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mdns" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mbedtls" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/mbedtls_port" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/nvs_flash" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/openssl" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/soc" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/spi_flash" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/sdmmc" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/tcpip_adapter" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/ulp" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/vfs" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/xtensa-debug-module" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/coap" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/wpa_supplicant" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/expat" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/json" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/nghttp" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/lwip" -std=gnu++11 -fno-exceptions -fno-rtti -Os -g3 -Wpointer-arith -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10802 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32  -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32\cores\esp32" "-IC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32\variants\esp32" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\sketch\zzz.ino.cpp" -o "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\sketch\zzz.ino.cpp.o"
Compiling libraries...
Compiling core...
...
<Removed a lot of this as to get a reasonable size message >

"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-ar" cru  "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/arduino.ar" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\core\esp32-hal-adc.c.o"
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-ar" cru  "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/arduino.ar" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\core\esp32-hal-bt.c.o"
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-ar" cru  "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/arduino.ar" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\core\esp32-hal-dac.c.o"
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-ar" cru  "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/arduino.ar" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\core\esp32-hal-gpio.c.o"
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-ar" cru  "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/arduino.ar" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\core\esp32-hal-i2c.c.o"

... < More removed >
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-ar" cru  "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/arduino.ar" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\core\main.cpp.o"
Archiving built core (caching) in: C:\Users\kurte\AppData\Local\Temp\arduino_cache_203580\core\core_espressif_esp32_esp32_FlashFreq_80,UploadSpeed_921600,DebugLevel_none_be8fe55b1819ff794bcaca44ffd90a8e.a
Linking everything together...
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc" -nostdlib "-LC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/lib" "-LC:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/ld" -T esp32_out.ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority  -Wl,--start-group "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691\sketch\zzz.ino.cpp.o" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/arduino.ar" -lgcc -lstdc++ -lapp_update -lbootloader_support -lbt -lbtdm_app -lc -lc_nano -lcoap -lcoexist -lcore -lcxx -ldriver -lesp32 -lethernet -lexpat -lfatfs -lfreertos -lhal -ljsmn -ljson -llog -llwip -lm -lmbedtls -lmdns -lmicro-ecc -lnet80211 -lnewlib -lnghttp -lnvs_flash -lopenssl -lphy -lpp -lrtc -lsdmmc -lsmartconfig -lsoc -lspi_flash -ltcpip_adapter -lulp -lvfs -lwpa -lwpa2 -lwpa_supplicant -lwps -lxtensa-debug-module -Wl,--end-group -Wl,-EL -o "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/zzz.ino.elf"
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/gen_esp32part.exe" -q "C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/partitions/default.csv" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/zzz.ino.partitions.bin"
"C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/esptool.exe" --chip esp32 elf2image --flash_mode "dio" --flash_freq "80m" --flash_size "4MB" -o "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/zzz.ino.bin" "C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/zzz.ino.elf"
esptool.py v2.0-beta2

Sketch uses 103510 bytes (9%) of program storage space. Maximum is 1044464 bytes.
Global variables use 9420 bytes (3%) of dynamic memory, leaving 285492 bytes for local variables. Maximum is 294912 bytes.
C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/esptool.exe --chip esp32 --port COM17 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_freq 80m --flash_mode dio --flash_size 4MB 0x1000 C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/sdk/bin/bootloader.bin 0x8000 C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/zzz.ino.partitions.bin 0xe000 C:\Users\kurte\Documents\Arduino\hardware\espressif\esp32/tools/partitions/boot_app0.bin 0x10000 C:\Users\kurte\AppData\Local\Temp\arduino_build_945691/zzz.ino.bin 
esptool.py v2.0-beta2
Connecting........__
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Attaching SPI flash...
Configuring flash size...
Flash params set to 0x022f
Compressed 12352 bytes to 7462...

Writing at 0x00001000... (100 %)
Wrote 12352 bytes (7462 compressed) at 0x00001000 in 0.1 seconds (effective 837.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 105...

Writing at 0x00008000... (100 %)
Wrote 3072 bytes (105 compressed) at 0x00008000 in 0.0 seconds (effective 3510.9 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...

Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 5957.7 kbit/s)...
Hash of data verified.
Compressed 188192 bytes to 57231...

Writing at 0x00010000... (25 %)
Writing at 0x00014000... (50 %)
Writing at 0x00018000... (75 %)
Writing at 0x0001c000... (100 %)
Wrote 188192 bytes (57231 compressed) at 0x00010000 in 1.7 seconds (effective 891.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
And the output on the Debug terminal monitor showed:
Code:
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0008,len:8
load:0x3fff0010,len:2036
load:0x40078000,len:9988
load:0x40080000,len:252
entry 0x40080034
Again no other output as this program did not do Serial outputs.

I assume you have seen some of his blogs about things like Arduino settings: http://news.ezsbc.com/esp32-board-selection-arduino/

Also if you have not done so recently I always sync up the Arduino ESP32 git project on my machine, as they continue to make updates.

Edit: And it might help if you posted a picture of your board as to make sure you have the same board that he is currently selling (http://www.ezsbc.com/index.php/featured-products-list-home-page/wifi01-30.html#.WPyrnca1suV)
or https://www.tindie.com/products/ddebeer/esp32-dev-board-wifibluetooth-with-ftdi-/

As it looks like he was originally build the board around a different ESP32 chip, but was having difficulties getting them.
I think this blog shows the other version as well: http://blog.tindie.com/2017/03/esp32-dev-board/
 
Last edited:
Ok the MCU I have is the one listed in the third link in post #53. Yep I looked at all the settings stuff and made appropriate changes then tried again. Nothing new to report.

I've been looking at buying the regular black unit that you are using but I can't seem to find one with out pins pre-soldered to it. It kinda screws me up with the pins being under the MCU. See on my MCU's like my teensy's I have the pins on top and folded over. This allows it have the lowest profile setting allowable.

With the pins on backwards like the black units, it adds to the profile height and can't be made any tighter by bending the pins. It just adds 5mm.
 
Ok so there is literally no support for ESP32 on thier site. I have been asking questions since before we started working on this and only one question has been answered. On the other Ddebeer is trying to help me as much as he can but he has a job too so I can understand him being busy.

All right as mentioned Ddebeer is helping but it's a lil here and a lil there. Last night he sent me a link to this.......

https://github.com/marcmerlin/IoTuz

From what I can tell its support for some kind of esp32 devboard that acts like a game system? But it kind of defeats the purpose a lil plus these boards are non-existent. I can't even prove one was ever made.

So can you take a look at it? I just want to be able to include my own libraries with out having to use all the excess stuff. I have no idea what any that is.

Heres a couple pics of my case straight off the printer






Edit::::

I downloaded the library and put it in my arduino bin and I just got it to compile after making a some edits. I guess this library was compatible for the Wrover system so I've had to go through and mark out all the adafruit module code includes. Also had to correct the references that point to Kurt's ili9341 library.

Haven't tried to run it on my esp32 yet but I'm gonna try to soon and see if it works. And the pin outs match the silk screens on my board.

Looks like it less stuff than I thought. I can probably condense it a tad. But if it works it's just for this board. I'm definitely ordering the black board.
 
Last edited:
Ok so there is literally no support for ESP32 on thier site. I have been asking questions since before we started working on this and only one question has been answered. On the other Ddebeer is trying to help me as much as he can but he has a job too so I can understand him being busy.

All right as mentioned Ddebeer is helping but it's a lil here and a lil there. Last night he sent me a link to this.......
Again another reason why I like to use Teensy... As I mentioned I have one of these coming by the end of the week. I am a little curious if it works at all, and since it was < $20 shipped, I thought I would try one.

But again it is great here with lots of people who understand the boards and who are willing to help out.
 
Rest assured KurtE - your under $20 board is now listed at $25 on Amazon. Unless you got one of the broken batch they were dumping ;)

The ESP8266 was about a year before it was understood and generally usable and supported. The ESP32 has some better docs the 8266 never did perhaps and isn't wholly new - but is a much more complex item.
 
It arrived today, so I thought I would try one of the baby steps programs to see if could at least talk to it.
Code:
uint8_t counter = 0;
void setup() {
    // maybe do some Serial.... if needed
    pinMode(16, OUTPUT);
    pinMode(17, OUTPUT);
    pinMode(18, OUTPUT);
}
void loop() {
    counter++;
    if (counter == 8)
        counter = 0;
    digitalWrite(16, (counter & 1) ? HIGH : LOW);
    digitalWrite(17, (counter & 2) ? HIGH : LOW);
    digitalWrite(18, (counter & 4) ? HIGH : LOW);
    delay(250);
}
The program compiled and downloaded and the led is cycling through colors. So the basics are working

I also tried loading up one of the platform example programs: wifi scan, it again it uploaded and it does see my one wifi network.
 
I should also mention, my ILI9341 library appears to work on the display as well. Still some holes in my implementation of reads, but:

After I soldered in the headers:
ESP32-ILI9341-EzSBC.jpg

Same pins and code as I used on the other one.
 
Is that the EZSBC version?

Well I'd love to do some more testing but my computer now refuses to recognize USB devices. I completely erased all the USB drivers then did a full format and install. I plug a device in and it downloads the drivers then immediately bricks them. I've tried every USB device I have and it's the same thing every time.
 
Can a uart device be used to program with. When i was trying to figure out why my drivers were bricking themselves i accidently knocked off the usb port.

Ive got my cocktail arcade cabinet computer but it has no wifi. I tried adding a usb 8011wifi but nothing works. Im just having a terrible time with this and im so close. Im ready to build games.
 
Is that the EZSBC version?
As defragster deduced - Yes that is the one by EzSBC - As it is using the same Arduino setup as my other ESP32 board, Just had to hook it up with the same pins...

Well I'd love to do some more testing but my computer now refuses to recognize USB devices. I completely erased all the USB drivers then did a full format and install. I plug a device in and it downloads the drivers then immediately bricks them. I've tried every USB device I have and it's the same thing every time.
Sounds like the main thing you need to figure out. If Windows and you are not on Windows 10 I would suggest updating to it. Boards like Teensy will run without additional drivers. The ESP32 by Ezsbc uses an FTDI chip so you need to have a working version.


Can a uart device be used to program with. When i was trying to figure out why my drivers were bricking themselves i accidently knocked off the usb port.

Sorry, but I would suggest that you ask this up on his forum: http://forum.ezsbc.com/viewtopic.php?f=12&t=8817
He did put up a posting saying that the USB connection is weak...

Quick look at Schematic and it looks like the output of the FTDI chip goes to some pins on the external connector (TXD, RXD), so if you have an external FTDI cable/breakout board that outputs at 3.3v you could probably connect it up to there. I am not sure if you will be able to wire it up to automatically reboot the board into program mode, but maybe? (IO0)... Note places like Sparkfun/Adafruit sell USB to serial adapters...

But again for $17 plus shipping you can have a second one...
 
ok so after a bunch of working and formatting ive come to the conclusion my computer is dying. It lost the ability to use memory cards and flash drives a while back and the USB's are just winding themselves down. Plus it gets stuck with a not responding error on most apps. I do a pretty good job of making sure i get every thing compatible when downloading software but i get what you mean by the technology and software used to do this stuff.

Impretty sure i have an FTDI around here but Ill just order a new board as well.

Well ill be back soon!!

Edit:::::

http://blob.tomerweller.com/esp32-first-steps
 
Last edited:
When I first started this project so many moons ago, I did a lot of reading about the TFT shields or PCB's themselves. Looked at a bunch of stuff I still don't understand with in the data sheets as well. What I noticed was these TFT shields have onboard RAM to drive the graphics.

So why are we using RAM from the MCU and not the chip on board the shield?
 
Last edited:
The TFT RAM is only accessible via individual SPI updates.

AFAIK :: Having a RAM image on the MCU allows intermediate 'screen' updates to be performed 'internally' without partial SPI transactions. Then more efficient BULK SPI transactions are performed when possible to transfer the MCU RAM image to the TFT device - Full screen this applies to the T_3.6 with enough RAM and then optionally a DMA transfer can run on demand or perpetually without having the MCU actively involved in the transfer. Though IIRC there are cases where font/text with for/back-ground are cached in RAM then pushed?

These refinements/improvements are generally an optional update to the perfectly functional and efficient TFT screen update process the T_3.2 and others are generally capable of.
 
As Defragster said!

But in addition another reason for the MCU memory version is it allows you to control when the bits go out to the screen.

It makes it easier to do sloppy screen updates without seeing the flashes.

That is you can simply do things like clear the screen, draw all of the next text and graphic outputs for the next display and then say update me now. Which will simply blast up all the new pixels. For all those places that the screen is the same, you will see no difference.

If however you do the same code using the graphic primitives going direct to the screen, you will see the screen flash as you clear everything and then redraw everything...

You can however in most cases can do the screen updates without the external frame buffer without flashing if you carefully write your code.

For example if you have a text field at position (100, 100) - (200, 150), That you wish to update. You can use Opaque text and draw the new text over the previous text. If the new text does not fully cover the old text you then blank out those portions of the old text with fillRect(s)..
 
That makes sense. Thank you both!!

I've been working on your library today, adding all the usual display functions plus most of the gaming aspect functions like collision, more bitmap functions and some frame rate stuff. But I'm having trouble with drawChar() when I compile your version I get an error saying undefined reference to glcdFont. I replaced from the GFX master but I would like to use yours since it's connected to the frame buffer.

Also I've asked every where but here I think. Would you happen to know where I can find examples on rendering multi-color bitmaps? I've been stacking binary images to create a 2 to 6 color bitmap image. It's fine but progmem heavy as I'm sure any bitmap functions are but it would make things easier if the user didn't have to separate each image into individual bitmaps to produce the image.

Is there a certain way to save the bitmap or something like raw? Or do you still use progmem?

View attachment ili9341_esp_KE_gaming.zip
 
Last edited:
PROGMEM has no place or value in Teensy. The ARM architecture has a flat memory address space. Anything const will be stored in FLASH - but read accessible just like if it was in RAM without needing the manipulation an AVR chip uses with PROGMEM.

Seems there should be some bitmap samples - can't say I've ever used them. I found this that is suggestive with a quick tree search:
Code:
I:\arduino-1.8.1\hardware\teensy\avr\libraries\Adafruit_ILI9341\examples\spitftbitmap\spitftbitmap.ino:
    1  /***************************************************
    2:   This is our Bitmap drawing example for the Adafruit ILI9341 Breakout and Shield
    3    ----> http://www.adafruit.com/products/1651
...
   51: // This function opens a Windows Bitmap (BMP) file and
   52  // displays it at the given coordinates.  It's sped up
   53  // by reading many pixels worth of data at a time
 
I need to start looking more at my teensy libraries!!! Ok so from the example you led me to......

Looks promising!!! It pulls the bitmaps from the SD which is freakin awesome and will allow much bigger games using t3.2 and up and any MCU with enough RAM to support the TFT.
 
Ok after further examination and from the top.......

Why is it calling to perform the display function in void setup?

Now looking at the function below the empty void loop you get the actual bitmap function. I can see the way the function is called in the set up but the definition has all this stuff about bitmap depth and image offset. Do I need to know all that or is it reading the bmp file for all of that?

I can actually put the whole example in my library so it's already included and ready to use.

The question is it has its own lil buffer written into it, will this mess with the screen buffer in your library?

Edit:::

Ok on my teensy library I added the drawbmp() to it but it wanted to use setaddresswindow() to set the bitmaps but my library uses setaddr() and setaddresswindow_cont. I switched it to setaddr but should I have set it to setaddresswindow_cont?
 
Last edited:
I know this is off topic but I didn't think it wise to start a whole thread.

I've been using Windows visual studio express 2013 for the past few years as my go to for opening up .cpp and .h files. Well it takes up 5gb of space which I am now in need of. Barring Notepad what cheap on HDD alternatives are out there. What do you guys use?

I like to use it over note pad because it high lights stuff and makes things easier to go through visually. Also how do I make the stuff like int16_t and uint16_t light up? Some of my libraries do some don't. I've looked the keywords.txt files looking for the answer but I just don't get it.
 
Check out this thread. SublimeText is my new editor - even took the option and paid for it! Program folder is under 23 MB, and sitting in RAM windows see it as 2 MB and my machine has been up 23 days with it sitting open most of the time I expect.

Then as noted on that thread hooked up the STINO and it replaces the IDE.

Notepad++ was my throw away editor - and for SOURCE TREE wide 'search' I used my 20 year old editor - SublimeText does all that well.
 
Status
Not open for further replies.
Back
Top