Commit Graph

28211 Commits

Author SHA1 Message Date
Jeff Epler
c1b6c367ff
esp32 can allocate 88kB successfully 2022-07-13 13:53:08 -05:00
Jeff Epler
13be10ef14
rename function to avoid confusion 2022-07-13 13:28:51 -05:00
Jeff Epler
5c6ee20ca5
on esp32 need to initialize nvs before starting wifi
Also, change error handling so that the esp-idf error number
is shown in the traceback in the case of an error.

This allows scanning & connecting to work. I didn't try requests yet.
2022-07-13 11:57:38 -05:00
Jeff Epler
f620c2901c
Set a small but working heap size for esp32 without psram 2022-07-13 11:10:00 -05: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
Jeff Epler
953f44b46e
Fix spiram limit calculation on esp32
esp32 places the psram start at SOC_EXTRAM_DATA_LOW and it can extend
up to SOC_EXTRAM_DATA_SIZE. This is different than esp32-s2 and later,
which place the end at EXTRAM_DATA_HIGH and the limitation of
SOC_EXTRAM_DATA_SIZE was not previously identified as important.
Additionally, the esp32 has a reserved area within himem which was
not being accounted for.

With this change, the Feather ESP32 V2 feather can be used via thonny,
and the other "quick memory corruption tests" I was performing
also all succeed instead of failing.

Before this change, the incorrect address being used for spiram was
0x3fa00000..0x3fc00000 (2MiB). Now, it's 0x3f800000..0x3f9c0000 (1.75MiB)
due to the reserved area and the changed start address.

This is intended to be a no-effect change for other espressif chips besides
original esp32.
2022-07-13 10:52:15 -05:00
Jeff Epler
afbaa2eb6c
decode_backtrace: Show even more information
addr2line can show information about how functions were inlined,
including function names

Typical new output:
```
0x400dec57: mp_obj_get_type at /home/jepler/src/circuitpython/ports/espressif/../../py/obj.c:68
 (inlined by) mp_obj_print_helper at /home/jepler/src/circuitpython/ports/espressif/../../py/obj.c:133
 (inlined by) mp_obj_print_helper at /home/jepler/src/circuitpython/ports/espressif/../../py/obj.c:114
0x400e1a25: fun_builtin_1_call at /home/jepler/src/circuitpython/ports/espressif/../../py/objfun.c:75
0x400dd016: mp_call_function_n_kw at /home/jepler/src/circuitpython/ports/espressif/../../py/runtime.c:665
0x400eac99: mp_execute_bytecode at /home/jepler/src/circuitpython/ports/espressif/../../py/vm.c:936
0x400e1ae9: fun_bc_call at /home/jepler/src/circuitpython/ports/espressif/../../py/objfun.c:297 (discriminator 4)
0x400dd016: mp_call_function_n_kw at /home/jepler/src/circuitpython/ports/espressif/../../py/runtime.c:665
0x400dd03a: mp_call_function_0 at /home/jepler/src/circuitpython/ports/espressif/../../py/runtime.c:638
0x40117c03: parse_compile_execute at /home/jepler/src/circuitpython/ports/espressif/../../shared/runtime/pyexec.c:146
0x4011800d: pyexec_friendly_repl at /home/jepler/src/circuitpython/ports/espressif/../../shared/runtime/pyexec.c:734
0x400eeded: run_repl at /home/jepler/src/circuitpython/ports/espressif/../../main.c:823
 (inlined by) main at /home/jepler/src/circuitpython/ports/espressif/../../main.c:922
0x400ef5e3: app_main at /home/jepler/src/circuitpython/ports/espressif/supervisor/port.c:410
0x401bb461: main_task at /home/jepler/src/circuitpython/ports/espressif/build-adafruit_feather_esp32_v2/esp-idf/../../esp-idf/components/freertos/port/port_common.c:141
```
2022-07-12 16:28:33 -05:00
Dan Halbert
9d77a36fbf update samd-peripherals submodule 2022-07-08 22:47:36 -04:00
Dan Halbert
3f8b8d4b2f update frozen libraries 2022-07-08 22:42:13 -04:00
Dan Halbert
fa62c87536 ESP32 .bin only; update nvm.toml 2022-07-08 20:37:47 -04:00
Dan Halbert
2c7ad7a39f make translate and pre-commit formatting fixes 2022-07-08 16:53:53 -04:00
Dan Halbert
a9d4f09360 Update ci_check_duplicate_usb_vid_pid.py for ESP32 2022-07-08 16:11:01 -04: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
Scott Shawcroft
f95bd243c6
Merge pull request #6569 from pypewpew/pewpewlcd-tag101
Upgrade the pewpew-lcd frozen library to tag 1.0.1
2022-07-08 11:23:21 -07:00
Dan Halbert
afbf4de071 Uncomment or remove debugging changes 2022-07-08 12:53:25 -04:00
Dan Halbert
c3cd32e773 CPU freq to 240 MHz, redo sdkconfigs 2022-07-08 10:50:00 -04:00
Dan Halbert
75208573f4 tweak sdkconfig; add temp logging to mp_make_function_from_raw_code 2022-07-08 09:53:29 -04:00
Radomir Dopieralski
9c2633820c Upgrade the pewpew-lcd frozen library to tag 1.0.1 2022-07-08 00:18:36 +02:00
Dan Halbert
4e88d795e1 Thonny causing crash emitglue.c:199: 2022-07-06 23:01:19 -04:00
Dan Halbert
4c20b3cb63
Merge pull request #6564 from adafruit/7.3.x
7.3.x
2022-07-06 15:25:24 -04:00
Dan Halbert
fc9ced6d4e
Merge pull request #6561 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-07-06 10:16:38 -04:00
Maxime Leroy
591390ad85
Translated using Weblate (French)
Currently translated at 99.5% (981 of 985 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2022-07-06 07:15:31 +02:00
Scott Shawcroft
dce8953d47
Merge pull request #6557 from thetazero/building-typo
Correct typo in building instructions
2022-07-05 13:08:30 -07:00
Scott Shawcroft
18d7165e0f
Merge pull request #6550 from crackmonkey/rp2040-wait-pin-bounds
issue adafruit#6538 loose bounds checking on WAIT PIO instruction
2022-07-05 12:56:14 -07:00
Scott Shawcroft
257f8084aa
Merge pull request #6545 from jepler/clarify-workflow-branding
Add WiFi workflow to the section about branding
2022-07-05 12:12:28 -07:00
Scott Shawcroft
459f5d0479
Merge pull request #6256 from askpatrickw/lolin-c3-mini
Wemos Lolin C3 Mini Board
2022-07-05 12:11:02 -07:00
thetazero
046af7629e
Correct typo 2022-07-05 12:03:04 -04:00
Dan Halbert
0bc296406d
Merge pull request #6551 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-07-05 10:35:51 -04:00
Hosted Weblate
18aa37302c
Merge remote-tracking branch 'origin/main' 2022-07-04 16:33:39 +02:00
Dan Halbert
724bea7187
Merge pull request #6532 from jepler/use-actions-gcc
Use arm-none-eabi-gcc-action
2022-07-04 10:33:31 -04:00
Wellington Terumi Uemura
2879cc21b3
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (985 of 985 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-07-03 02:22:05 +02:00
Maxime Leroy
5522ba5322
Translated using Weblate (French)
Currently translated at 98.9% (975 of 985 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2022-07-03 02:22:04 +02:00
Nick Lopez
dce9396fe3 issue adafruit#6538 loose bounds checking on WAIT PIO instruction 2022-07-02 14:32:20 -07:00
Dan Halbert
c1b00442a1
Merge pull request #6547 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-07-01 22:51:32 -04:00
Patrick
c3cf9ba9ce remove wifi max from sdkconfig 2022-07-01 14:50:47 -07:00
Patrick
aaeda97818 update PHY section, correct name 2022-07-01 14:50:47 -07:00
Patrick
aa53d36934 setting CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER to 8.5 2022-07-01 14:50:47 -07:00
Patrick
7e367eeb58 Update "D" mappings 2022-07-01 14:50:47 -07:00
Patrick
d4b26daf1b correct creator and creation IDs 2022-07-01 14:50:47 -07:00
Patrick
6c7faf0eba Change USB VID & PID to Creator and Creation IDs 2022-07-01 14:50:47 -07:00
Patrick
3253ae2503 tested and corrected several pins 2022-07-01 14:50:47 -07:00
Patrick
f10fa566aa REPL works. Based on QTPYC3. 2022-07-01 14:50:47 -07:00
Patrick
a3070f6c2a Changes to Pin Mappings 2022-07-01 14:50:46 -07:00
Patrick
b37236f83f C3 does not have PSRAM 2022-07-01 14:50:46 -07:00
Patrick
03c1871d6b Folders have underscores not dashes 2022-07-01 14:50:46 -07:00
Patrick
f95edd93a0 C3 boards are Bin only 2022-07-01 14:50:46 -07:00
Patrick
af629ab180 Add assumed PID value 2022-07-01 14:50:46 -07:00
Patrick
c1e6003d26 remove comment that breaks {ID Checker 2022-07-01 14:50:46 -07:00