54 Commits

Author SHA1 Message Date
Gordon Williams
2bdf05f910 ESP32: Remove FlashFS, adjust partitions to increase available Storage from 256kB to 896kB 2025-04-02 10:39:00 +01:00
Gordon Williams
dd1cf3e231 Update ESP32 pins as per https://github.com/orgs/espruino/discussions/7702 2025-03-14 08:54:33 +00:00
Gordon Williams
b84efeca3e Change ioBuffer FIFO from 4 byte blocks to variable length blocks. Far more efficient for USB/BLE/other block data 2025-02-26 16:22:58 +00:00
Gordon Williams
0681322ca8 Copy SPI pin decls from #2603 to other boards, and fix naming of SPI SCLK line so it's detected properly 2025-01-29 08:50:46 +00:00
Simon Andrews
3e5f861c68 testing fix for #2601 in ESP32 build - Fixed SCL typo in ESP32.py 2025-01-28 17:17:21 +00:00
Simon Andrews
bdfb4a4fbb Testing Action Builds for #2601 fix 2025-01-28 14:39:16 +00:00
Simon Andrews
f50ed228a7 Fixes for #2589 I2C1 and I2C2 pin defaults in ESP32.py and Revert Debug =1 for build action workflow testing, 2025-01-19 14:26:53 +00:00
Gordon Williams
3c11580f1e Adding better declarations for ESP32 peripherals (at minimum allows us to make nicer docs pages, maybe good for https://github.com/espruino/Espruino/issues/2589)
fix default pin for ESP32 SPI2
2025-01-06 14:56:52 +00:00
Gordon Williams
640b45e861 ESP32: properly negate button value, and ensure setWatch works ok 2024-12-14 16:24:03 +00:00
Gordon Williams
85ddf2c702 ESP32 fix hard-coded ADC pins, get them from pinInfo (py file) 2024-05-15 14:51:31 +01:00
Gordon Williams
18472be484 ESP32: Fix build with asserts enabled
ESP32: Add BTN1 (D0/BOOT) and LED1 (D2) as these appear to be reasonably common in boards
2023-01-24 15:22:41 +00:00
Gordon Williams
8596bf29ea Misc ESP32 tweaks to help with memory availability and dfata transfer 2022-12-09 15:45:44 +00:00
Gary Ott
99c57f3cb2 Correction: 4 bits = max 15 references 2022-12-01 08:16:45 +00:00
Gary Ott
2824079f1f Clarified/corrected note about 'variables' parameter. 2022-11-30 18:04:12 +00:00
Gary Ott
5aaa4baf92 ESP32: Take advantage of JsVars being smaller without exceeding addressable limit. 2022-11-30 15:44:36 +00:00
Gordon Williams
01288d5170
Merge pull request #1885 from MaBecker/esp32_improvements
add 6x8 font
2020-07-15 20:13:12 +01:00
MaBecker
e47163c815 add 6x8 font
there is enough space an ESP32 to have have 6x8 font
2020-07-15 17:36:28 +02:00
Gary Ott
161982b53e Added code to jsuGetFreeStack() for ESP32 and introduced ESP_STACK_SIZE constant. 2020-07-14 11:09:05 +01:00
MaBecker
433708fd8f updates using new partitions_espruino.bin 2020-03-12 22:51:57 +01:00
Gordon Williams
8628817311
Merge pull request #1688 from AkosLukacs/patch-2
ESP32 'speed' was wrong
2019-12-09 15:00:59 +00:00
Mike Fikes
31a12a3b3f
Fix typo in partitions_espruino.csv reference 2019-11-30 21:16:22 -05:00
Ákos Lukács
349252ba77
ESP32 'speed' was wrong
Is this used anywhere in the code or build, or just docs?

The sdkconfig in ESP32's directory says 240:
```
CONFIG_ESP32_DEFAULT_CPU_FREQ_80=
CONFIG_ESP32_DEFAULT_CPU_FREQ_160=
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240
```
2019-08-15 11:29:54 +02:00
Gordon Williams
6ddb231172 minor refactoring to allow differing JsVar sizes to be used at boot 2018-06-01 14:35:32 +01:00
jumjum123
0054b39c00 ESP32.py
- added variables_mode in config.
build_platform_config.py
- added define for variables_mode
jsvar.h
- added jsVarsSize;  //size of jsVars for option malloc
- added support of malloc jsVars in jsvInit
jsvar.c
- added definition jsVars for variables_mode_malloc
jshardwareESP32.h
- new file with functions to set/get enable status of BLE and Wifi
jshardwareESP32.c
- new file with functions to set/get enable status of BLE and Wifi
ESP32.make
- added jshardware.c to SOURCES
main.c
- added handling for Wifi enabled
- added calculation for jsVars
- initialise jsVars based on calculation
jshardware.c
- used new API call to get Serial Number, even if Wifi is not enabled
- initialises BLE, if BLE is enabled (in NVS storage)
bluetooth.c
- check if BLE is enabled before initialising
jswrap_esp32.h
- defines functions to enable BLE and/or Wifi
jswrap_esp32.c
- wrapper for functions to enable BLE/Wifi, remove code from Flash, to avoid overflow in jsVars
- added status for BLE/Wifi to ESP32.getStatus
esp32_gap_func.c
- get mac adress even if Wifi is not enabled

 Changes to be committed:
	modified:   boards/ESP32.py
	modified:   make/family/ESP32.make
	modified:   scripts/build_platform_config.py
	modified:   src/jsvar.c
	modified:   src/jsvar.h
	modified:   targets/esp32/BLE/esp32_gap_func.c
	modified:   targets/esp32/bluetooth.c
	modified:   targets/esp32/jshardware.c
	new file:   targets/esp32/jshardwareESP32.c
	new file:   targets/esp32/jshardwareESP32.h
	modified:   targets/esp32/jswrap_esp32.c
	modified:   targets/esp32/jswrap_esp32.h
	modified:   targets/esp32/main.c
2018-06-01 12:23:00 +02:00
wilberforce
15c3a9ae93 update esp-idf to v3.0. BLE support - thanks to @jumjum. 2500 vars. Erase flash before flashing 2018-05-13 14:24:17 +12:00
wilberforce
883000cf81 update esp-idf to v3.0. BLE support - thanks to @jumjum. 2500 vars. Erase flash before flashing 2018-05-13 13:54:02 +12:00
wilberforce
3f99ffe896
Correct saved code location 0x2C0000 2018-05-12 00:21:32 +12:00
Rhys Williams
c33d1102dd correct firmware size 2018-05-11 21:09:41 +12:00
Rhys Williams
c01485b175 New partition table and layout - partitions_espruino.bin needs to be flashed 2018-05-11 20:58:48 +12:00
wilberforce
761d8cebee intial esp-idf 3.0 build 2018-04-30 21:44:19 +12:00
Gordon Williams
27d9572ce2 make SHA256/512 switchable 2018-04-26 09:14:30 +01:00
wilberforce
1547b9591f set adc to 2 so board generate works 2017-08-20 11:01:56 +12:00
Gordon Williams
4a128868ea fix page link 2017-04-19 09:36:36 +01:00
Gordon Williams
b302de426d alter ESP32 build to produce binaries with the same names as other builds 2017-04-19 09:03:50 +01:00
wilberforce
a167bd3eeb add build type FLASHFS 2017-03-23 01:05:20 +13:00
Gordon Williams
fe15d14d14 ESP8266 and ESP32 builds now working 2017-03-07 14:12:46 +00:00
MaBecker
0639179694 fix pins 2017-02-18 15:24:22 +01:00
MaBecker
18285d2a3e Merge branch 'ESP32' into ESP32 2017-02-17 09:36:59 +01:00
MaBecker
84d2a5d7aa fix pin order 2017-02-17 09:24:37 +01:00
Rhys.Williams
dde21f544c major update to bring ESP32 branch upto current master 1v91.381 2017-02-16 19:48:31 +13:00
kolban
e41040993c Initial files for the ESP32 environment. 2017-02-16 17:40:08 +13:00
MaBecker
85e06c0a1f add ESP32 image and pins
use scripts/build_board_docs.py ESP32
to generate boards/ESP32.html
2017-02-15 21:24:57 +01:00
jumjum123
f45434dbd2 Added D23 to list of available GPIOs 2017-02-08 09:40:41 +01:00
jumjum123
8210eccb80 Oops, correct typo in esp32.py
pins 12 to 20 are now available again
2017-02-06 12:03:44 +01:00
jumjum123
52c6136c3c Added support for Serial2 and Serial3
Setup is supported for Serial2 and Serial3 only
Flowcontrol is UART_HW_FLOWCTRL_DISABLE only
2017-01-31 11:33:11 +01:00
jumjum123
eca56f1f4e Removed GPIOs, that are already used for Flash chip and rtc(xtal)
Added docu for PWM and Pulse
2017-01-22 22:43:48 +01:00
Rhys.Williams
a8520c61a8 allow I2C2 device, and test - yes working with HD44780. Read not tested 2017-01-16 18:34:03 +13:00
jumjum123
65f74e4d52 Fill gaps in GPIO list
Add definition for DAC pins (GPIO25/26)
2017-01-10 17:54:32 +01:00
Rhys.Williams
ec55df522c Add jshFlashGetFree - assume 4Mb memory 2016-12-19 21:26:15 +13:00
kolban
d5dba169dc Addition of first pass at SPI functions. 2016-10-26 22:46:22 -05:00