Commit Graph

51 Commits

Author SHA1 Message Date
Jeff Epler 46d7771152
tinyuf2 adopted the partition scheme called "1ota"
.. which irritated our partition table parser in build_memory_info, so
make it work again.
2023-07-26 09:41:10 -05:00
Jeff Epler 9edd8957a1
Add a "4MB without OTA" partition scheme
This is needed on the camera board, because we have a lot of code.
2023-07-26 08:38:30 -05:00
MicroDev f7167bd735
Merge pull request #5999 from anecdata/ESP32-S3-DevKitC-1-N32R8
Espressif ESP32-S3 DevKitC-1-N32R8
2023-01-29 10:27:08 +05:30
Scott Shawcroft a7b12de6ee
Merge pull request #7473 from MicroDev1/espulp
Add ULP FSM
2023-01-26 09:57:35 -08:00
MicroDev a6861adb1f
Merge branch 'main' of origin into ESP32-S3-DevKitC-1-N32R8 2023-01-26 11:21:43 +05:30
MicroDev 90e8f9d4a8
fix espressif 32MB partition table 2023-01-26 11:19:22 +05:30
MicroDev 9487fb51a4
prettify espressif partition tables 2023-01-25 19:40:14 +05:30
MicroDev 2bb12293f8
add ulp fsm 2023-01-21 17:44:08 +05:30
Scott Shawcroft b354cec8cb
Three small ESP web workflow fixes
* Set nonblock on all accepted sockets. Not just ones for user code.
* Close an open websocket if another is accepted.
* Set debug level to INFO rather than DEBUG because DEBUG crashes
  on ESP32-S3 USB OTG.
2022-12-06 11:49:04 -08:00
Dan Halbert df0150ff0e Add common settings to sdkconfig-esp32c3.defaults 2022-11-21 15:15:26 -05:00
MicroDev 3a418379d3
Merge branch 'main' of origin into ESP32-S3-DevKitC-1-N32R8 2022-11-18 09:40:20 +05:30
microDev 83b54d003d
implement more checks in coproc module
- check memory address range
- check firmware size at an earlier stage
2022-10-22 19:05:48 +05:30
microDev 5232e3f6c3
add coproc module 2022-10-20 09:09:44 +05:30
microDev fb91c2f436
cleanup `sdkconfig-esp32.defaults`
- remove log level: set by -opt or -debug sdkconfig
- remove lwip hostname: set by board specific sdkconfig
2022-10-17 22:05:20 +05:30
microDev 5114ae7a31
fix `2MB-no-uf2` partition table 2022-10-17 19:44:08 +05:30
microDev f86377e0f1
fix `4MB-no-uf2` partition table 2022-10-17 19:42:41 +05:30
microDev 66b539d768
fix espressif log level 2022-10-14 11:33:10 +05:30
Jeff Epler a64c1a11c5
move nina-fw certificates so it can be shared with other ports 2022-10-05 14:56:25 -05:00
Jeff Epler 5040e1b7a5
Merge pull request #6684 from jepler/espressif-camera-2
Rewrite camera support for the Espressif port
2022-08-09 18:50:25 -05:00
Dan Halbert 4021b44a39 increase main task stack size from 8kB to 16kB 2022-08-09 15:00:01 -04:00
Jeff Epler 1da8065d6b
Merge remote-tracking branch 'origin/main' into espressif-camera-2 2022-08-05 16:38:51 -05:00
Jeff Epler 5db6db0128
add esp32-camera
This uses the esp32-camera code instead of our own homebrewed camera code.
In theory it supports esp32, esp32-s2 and esp32-s3, as long as they have
PSRAM.

This is very basic and doesn't support changing any camera parameters,
including switching resolution or pixelformat.

This is tested on the Kaluga (ESP32-S2) and ESP32-S3-Eye boards.

First, reserve some PSRAM by putting this line in `CIRCUITPY/_env`:
```
CIRCUITPY_RESERVED_PSRAM=524288
```
and hard-reset the board for it to take effect.

Now, the following script will take a very low-resolution jpeg file and print
it in the REPL in escape coded form:

```python
import board
import esp32_camera

c = esp32_camera.Camera(
    data_pins=board.CAMERA_DATA,
    external_clock_pin=board.CAMERA_XCLK,
    pixel_clock_pin=board.CAMERA_PCLK,
    vsync_pin=board.CAMERA_VSYNC,
    href_pin=board.CAMERA_HREF,
    pixel_format=esp32_camera.PixelFormat.JPEG,
    i2c=board.I2C(),
    external_clock_frequency=20_000_000)

m = c.take()
if m is not None:
    print(bytes(m))
```

Then on desktop open a python repl and run something like
```python
>>> with open("my.jpg", "wb") as f: f.write(<BIG PASTE FROM REPL>)
```
and open my.jpg in a viewer.
2022-08-04 15:11:50 -05:00
Dan Halbert d4e8c19b49 merge from main 2022-08-04 12:43:23 -04:00
Dan Halbert b027d111a9 remove custom console UART from sdkconfig-esp32.defaults 2022-08-02 22:00:59 -04:00
Scott Shawcroft 9661d3256c
Add more ESP32 boards and enable web workflow 2022-08-01 15:52:08 -07:00
Dan Halbert 3817d007aa clean up esp32 sdkconfigs 2022-07-28 17:52:27 -04:00
Jeff Epler ea52ca66dc
Disable SPIRAM bankswitch on esp32
We don't use this facility, which was reserving the last 256kiB of
psram.
2022-07-13 10:56:58 -05:00
Dan Halbert c316b950c7 merge from adafruit/main 2022-07-08 15:42:19 -04:00
Dan Halbert d869b441f4 further ESP32 sdkconfig fixes; add CIRCUITPY_STATUS_BAR 2022-07-08 15:27:00 -04:00
Dan Halbert 76e32dcf93 remove need for CIRCUITPY_ESP_PSRAM 2022-07-08 14:54:55 -04:00
Dan Halbert c3cd32e773 CPU freq to 240 MHz, redo sdkconfigs 2022-07-08 10:50:00 -04:00
Dan Halbert ca64950503 wip fixes 2022-06-28 18:32:08 -04:00
Scott Shawcroft 41039445c9
Clean up and add docs 2022-06-27 13:39:09 -07:00
Scott Shawcroft 4f0a7aedfd
WIP adding devices.json and auth 2022-06-27 13:34:13 -07:00
Dan Halbert 55784c93de wip; compiles 2022-06-26 21:22:22 -04:00
Dan Halbert 02069eb0b5 wip 2022-06-23 15:59:06 -04:00
Scott Shawcroft 623b6fad16
Fix nested categories in update_sdkconfig.py
Also, mark QTPy C3 as BIN only.
2022-03-21 17:04:19 -07:00
Scott Shawcroft 6dd9db31b3
Add USB to Serial/JTAG support for REPL
Adds Adafruit QT Py C3 board that uses it. Also revamps size
check script to work for S3 and C3 as well.

Fixes #6030
2022-03-21 14:03:57 -07:00
Michael Himing 11bbe48ede Espressif: add partitions-4MB-no-uf2 2022-02-15 08:42:15 +11:00
Michael Himing ca5095c94b Add AI thinker esp32c3s 2M 2022-02-15 07:00:38 +11:00
anecdata e4837a4a61 ESP32-S3 increase max sockets - issue #5915 (partial) 2022-02-11 16:00:45 -06:00
anecdata a6585c7cb7 Espressif ESP32-S3 DevKitC-1-N32R8 2022-02-08 23:25:07 -06:00
Scott Shawcroft 5a6f456dbb
Add BLE scanning for S3 and C3.
Everything else should raise NotImplementedError.

First step in #5926
2022-01-25 16:28:46 -08:00
Scott Shawcroft d99847b410
Refactor pin reset on ESP
This makes it easier to blanket never reset flash and USB pins. It
also allows us to set a custom state after reset. The first case
is for the double tap reset that needs to be pulled low.

Fixes #5893
2022-01-20 12:40:41 -08:00
Scott Shawcroft c839d9b3cc
Fix S2 builds by not turning on USB with wifi 2022-01-18 15:50:32 -08:00
Scott Shawcroft f6cf15de43
Switch CP to core 1 on S3 2022-01-14 12:22:38 -08:00
Scott Shawcroft 39639ecd17
Rework configs to take target into account
New script will filter settings to different tiers.
2022-01-13 15:55:37 -08:00
microDev dddc282e34
update default sdkconfig and correct bootloader offset 2021-11-26 22:44:22 +05:30
microDev 3da86b0ac2
add initial esp32c3 support 2021-09-26 09:39:40 +05:30
microDev dcfde14bf9
move pins and sdkconfig into soc specific directories 2021-09-18 19:47:18 +05:30