diff --git a/ref_app/target/micros/xtensa_esp32_s3/startup/coprocessor_binary.S b/ref_app/target/micros/xtensa_esp32_s3/startup/coprocessor_binary.S index 8bdd0fb19..dd1ba8893 100644 --- a/ref_app/target/micros/xtensa_esp32_s3/startup/coprocessor_binary.S +++ b/ref_app/target/micros/xtensa_esp32_s3/startup/coprocessor_binary.S @@ -20,8 +20,8 @@ coprocessor_bin: .byte 0x01, 0xA0, 0x00, 0x00, 0x37, 0x15, 0x00, 0x50, 0x13, 0x05, 0x05, 0x0B, 0x82, 0x80, 0x00, 0x00 .byte 0x41, 0x11, 0x06, 0xC6, 0xC5, 0x3F, 0x83, 0x47, 0x05, 0x00, 0x81, 0xE7, 0x85, 0x47, 0x23, 0x00 .byte 0xF5, 0x00, 0xB2, 0x40, 0x41, 0x01, 0x82, 0x80, 0x01, 0x45, 0x81, 0x45, 0x82, 0x80, 0x00, 0x00 - .byte 0x82, 0x80, 0x00, 0x00, 0x23, 0x14, 0xB5, 0x00, 0x82, 0x80, 0x00, 0x00, 0x82, 0x80, 0x00, 0x00 - .byte 0x05, 0x45, 0x82, 0x80, 0x00, 0x00, 0x00, 0x00, 0xB1, 0x45, 0x09, 0xB7, 0x41, 0x11, 0x01, 0x45 + .byte 0x82, 0x80, 0x00, 0x00, 0x05, 0x45, 0x82, 0x80, 0x00, 0x00, 0x00, 0x00, 0x23, 0x14, 0xB5, 0x00 + .byte 0x82, 0x80, 0x00, 0x00, 0x82, 0x80, 0x00, 0x00, 0xB1, 0x45, 0x09, 0xB7, 0x41, 0x11, 0x01, 0x45 .byte 0x06, 0xC6, 0xF9, 0x3F, 0xB2, 0x40, 0x01, 0x45, 0x41, 0x01, 0x5D, 0xBF, 0x00, 0x00, 0x00, 0x00 .byte 0x41, 0x11, 0x06, 0xC6, 0xE5, 0x37, 0x37, 0x17, 0x00, 0x50, 0x13, 0x07, 0x47, 0x0B, 0x83, 0x57 .byte 0x67, 0x00, 0x83, 0x55, 0x47, 0x00, 0xB7, 0x1E, 0x00, 0x50, 0xA9, 0x66, 0x37, 0x08, 0x00, 0xF8 @@ -257,8 +257,8 @@ coprocessor_bin: .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x01, 0x00, 0x50, 0x48, 0x01, 0x00, 0x50 - .byte 0x40, 0x01, 0x00, 0x50, 0x34, 0x01, 0x00, 0x50, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x01, 0x00, 0x50, 0x48, 0x01, 0x00, 0x50 + .byte 0x34, 0x01, 0x00, 0x50, 0x3C, 0x01, 0x00, 0x50, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00 .byte 0x05, 0x00, 0x06, 0x00, 0x07, 0x00, 0x08, 0x00, 0x09, 0x00, 0x0A, 0x00, 0x0B, 0x00, 0x0C, 0x00 .byte 0x0D, 0x00, 0x0E, 0x00, 0x0F, 0x00, 0x10, 0x00, 0x11, 0x00, 0x12, 0x00, 0x13, 0x00, 0x14, 0x00 .byte 0x15, 0x00, 0x16, 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, 0x1A, 0x00, 0x1B, 0x00, 0x1C, 0x00 diff --git a/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/make/xtensa_esp32_s3_riscv_cop_flags.gmk b/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/make/xtensa_esp32_s3_riscv_cop_flags.gmk index 59c51b29e..2bb9eee84 100644 --- a/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/make/xtensa_esp32_s3_riscv_cop_flags.gmk +++ b/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/make/xtensa_esp32_s3_riscv_cop_flags.gmk @@ -1,4 +1,4 @@ -# Copyright Christopher Kormanyos 2022 - 2024. +# Copyright Christopher Kormanyos 2022 - 2025. # Distributed under the Boost Software License, # Version 1.0. (See accompanying file LICENSE_1_0.txt # or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -26,15 +26,6 @@ WARN_FLAGS := -Wall -Wunreachable-code \ -Wmissing-include-dirs \ -Wpointer-arith \ - -Wno-maybe-uninitialized \ - -Wno-unused-function \ - -Wno-unused-but-set-variable \ - -Wno-unused-variable \ - -Wno-deprecated-declarations \ - -Wno-unused-parameter \ - -Wno-unused-but-set-parameter \ - -Wno-missing-field-initializers \ - -Wno-sign-compare \ -Wno-main @@ -63,10 +54,12 @@ TGT_AFLAGS = $(TGT_ALLFLAGS) TGT_LDFLAGS = -nostdlib \ -nostartfiles \ - -fno-lto \ + -flto \ -e _start \ -Wl,-Map,$(APP).map \ -T $(LINKER_DEFINITION_FILE) \ + --specs=nano.specs \ + --specs=nosys.specs \ $(TGT_ALLFLAGS) diff --git a/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Appli/main.cpp b/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Appli/main.cpp index 11a498c6c..96a8054bc 100644 --- a/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Appli/main.cpp +++ b/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Appli/main.cpp @@ -5,22 +5,22 @@ // or copy at http://www.boost.org/LICENSE_1_0.txt) // -// Originally from (but strongly mdofied from): +// Originally from (but strongly modified from): /****************************************************************************************** Filename : main.c - + Core : RISC-V - + MCU : ESP32-S3 - + Author : Chalandi Amine - + Owner : Chalandi Amine - + Date : 22.02.2025 - + Description : Application main function for ULP-RISC-V Co-processor - + ******************************************************************************************/ #include @@ -46,7 +46,7 @@ namespace { using pwm_port_type = mcal::port::port_pin; - using pwm_type = mcal::pwm::pwm_port; + using pwm_type = mcal::pwm::pwm_port; using duty_type = typename pwm_type::duty_type; @@ -78,6 +78,8 @@ extern "C" auto main() -> int { mcal::init(); + static_cast(my_pwm.init()); + unsigned prescaler { UINT8_C(0) }; for(;;) diff --git a/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Startup/IntVectTable.S b/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Startup/IntVectTable.S index 324135dd1..f8ea5d607 100644 --- a/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Startup/IntVectTable.S +++ b/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Startup/IntVectTable.S @@ -5,7 +5,7 @@ // or copy at http://www.boost.org/LICENSE_1_0.txt) // -// Originally from: +// Originally from (but strongly modified from): /****************************************************************************************** Filename : IntVectTable.S diff --git a/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Startup/boot.S b/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Startup/boot.S index bac4872d7..c1ed6e6b7 100644 --- a/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Startup/boot.S +++ b/ref_app/target/micros/xtensa_esp32_s3_riscv_cop/startup/from_no_sdk/Code/Startup/boot.S @@ -5,7 +5,7 @@ // or copy at http://www.boost.org/LICENSE_1_0.txt) // -// Originally from: +// Originally from (but strongly modified from): /****************************************************************************************** Filename : boot.S