Skip to content

Commit 660822a

Browse files
committed
update esp-idf and enable riscv ulp
1 parent 89cad0c commit 660822a

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

ports/espressif/bindings/espulp/ULP.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//| Raises an exception if another ULP has been instantiated. This
2020
//| ensures that is is only used by one piece of code at a time.
2121
//|
22-
//| :param Architecture arch: The ulp arch. Only `FSM` architecture is currently supported.
22+
//| :param Architecture arch: The ulp arch.
2323
//| """
2424
//| ...
2525
static mp_obj_t espulp_ulp_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
@@ -103,7 +103,7 @@ static MP_DEFINE_CONST_FUN_OBJ_3(espulp_ulp_set_wakeup_period_obj, espulp_ulp_se
103103
//|
104104
//| :param ReadableBuffer program: the ULP binary.
105105
//| :param int entrypoint: Specifies the offset (in bytes) of the first instruction
106-
//| from the start of the program.
106+
//| from the start of the program (Only used by FSM ULP).
107107
//| :param Sequence[microcontroller.Pin] pins: Pins made available to the ULP.
108108
//| The pins are claimed and not reset until `halt()` is called."""
109109
//| ...

ports/espressif/esp-idf-config/sdkconfig-esp32s2.defaults

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ CONFIG_NEWLIB_NANO_FORMAT=y
5353
#
5454
CONFIG_ULP_COPROC_ENABLED=y
5555
CONFIG_ULP_COPROC_TYPE_FSM=y
56+
CONFIG_ULP_COPROC_TYPE_RISCV=y # Note: enabling both ULPs simultaneously only works due to a modification of adafruit/esp-idf
57+
# (see adafruit/esp-idf/pull/16) until espressif/esp-idf/issues/12999 is fixed.
5658
CONFIG_ULP_COPROC_RESERVE_MEM=8176
5759
# end of Ultra Low Power (ULP) Co-processor
5860

ports/espressif/esp-idf-config/sdkconfig-esp32s3.defaults

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ CONFIG_NEWLIB_NANO_FORMAT=y
9393
#
9494
CONFIG_ULP_COPROC_ENABLED=y
9595
CONFIG_ULP_COPROC_TYPE_FSM=y
96+
CONFIG_ULP_COPROC_TYPE_RISCV=y # Note: enabling both ULPs simultaneously only works due to a modification of adafruit/esp-idf
97+
# (see adafruit/esp-idf/pull/16) until espressif/esp-idf/issues/12999 is fixed.
9698
CONFIG_ULP_COPROC_RESERVE_MEM=8176
9799
# end of Ultra Low Power (ULP) Co-processor
98100

0 commit comments

Comments
 (0)