Search found 33 matches

by AwesomeCronk
Tue Jul 26, 2022 1:26 pm
Forum: Programs, Libraries and Tools
Topic: ESP32-targeted alternative to Ampy
Replies: 11
Views: 9537

Re: ESP32-targeted alternative to Ampy

For anyone using uPyFile, I have updated it! The CLI is much more user-friendly now and the tool itself is far, far faster! Same story for installation, just check out the readme at https://github.com/AwesomeCronk/uPyFile . Current version is 2.0.1, please feel free to raise a GitHub issue if you fi...
by AwesomeCronk
Fri Jul 22, 2022 8:26 pm
Forum: ESP32 boards
Topic: machine.PWM with duty=0 not staying low
Replies: 4
Views: 2796

Re: machine.PWM with duty=0 not staying low

I'll be honest I have no idea what happened but it works now. I built a newer version of MicroPython and flashed it, now the original code works. I'm so lost.
by AwesomeCronk
Tue Jul 19, 2022 12:28 pm
Forum: ESP32 boards
Topic: machine.PWM with duty=0 not staying low
Replies: 4
Views: 2796

Re: machine.PWM with duty=0 not staying low

So then why, when both pins were initialized to low, does the PWM object, when initialized to duty=0, not go to duty=0?
by AwesomeCronk
Mon Jul 18, 2022 12:00 pm
Forum: ESP32 boards
Topic: machine.PWM with duty=0 not staying low
Replies: 4
Views: 2796

machine.PWM with duty=0 not staying low

I am developing a device that must control a DC motor (must have speed control and be reversible). I am realizing, however, that for some reason machine.PWM isn't letting me stop the motor. For hardware, I have a motor driver chip with PWM input on IO27 and IO10. Here is the motor driver's datasheet...
by AwesomeCronk
Mon Feb 28, 2022 4:25 am
Forum: ESP32 boards
Topic: ESP32-MINI-1 Firmware?
Replies: 1
Views: 936

Re: ESP32-MINI-1 Firmware?

I got a board definition, with a mod to the ESP32 port itself and a custom board definition, MicroPython for an ESP32 GENERIC_UNICORE is made available in this PR: https://github.com/micropython/micropython/pull/8365
by AwesomeCronk
Mon Feb 28, 2022 4:23 am
Forum: Development of MicroPython
Topic: [ESP32] FreeRTOS Unicore Mode Assertion Failure
Replies: 3
Views: 2912

Re: [ESP32] FreeRTOS Unicore Mode Assertion Failure

Got it, finally! I added a #if to ports/esp32/mphalport.h and a MICROPY_UNICORE definition in /ports/esp32/boards/GENERIC_UNICORE/mpconfigboard.h.
by AwesomeCronk
Sun Feb 27, 2022 1:31 pm
Forum: Development of MicroPython
Topic: [ESP32] FreeRTOS Unicore Mode Assertion Failure
Replies: 3
Views: 2912

Re: [ESP32] FreeRTOS Unicore Mode Assertion Failure

I finally found a way to trace the code. I ran this command on the backtrace addresses: $ addr2line -e build-GENERIC_UNICORE/micropython.elf -pfiaC 0x40094482 0x4009357e:0x3ffb71d0 0x40093c21:0x3ffb71f0 0x400975fa:0x3ffb7210 0x40094482:0x3ffb7280 0x40094621:0x3ffb72a0 0x400d4bc2:0x3ffb72e0 0x400d350...
by AwesomeCronk
Sat Feb 26, 2022 3:19 am
Forum: Development of MicroPython
Topic: [ESP32] FreeRTOS Unicore Mode Assertion Failure
Replies: 3
Views: 2912

Re: [ESP32] FreeRTOS Unicore Mode Assertion Failure

Here's the line in tasks.c that's failing the assertion: /* Assure that xCoreID is valid or we'll have an out-of-bounds on pxCurrentTCB You will assert here if e.g. you only have one CPU enabled in menuconfig and are trying to start a task on core 1. */ configASSERT( xCoreID == tskNO_AFFINITY || xCo...
by AwesomeCronk
Wed Feb 23, 2022 8:58 pm
Forum: Development of MicroPython
Topic: [ESP32] FreeRTOS Unicore Mode Assertion Failure
Replies: 3
Views: 2912

[ESP32] FreeRTOS Unicore Mode Assertion Failure

I am trying to make a board definition for the ESP32 port that works on single-core ESP32 modules, such as the ESP32-MINI-1 (core CPU is ESP32-U4WDH). I have a created a board definition that is a copy of GENERIC, except with names changed and a file called sdkconfig.board: CONFIG_FREERTOS_UNICORE=y...
by AwesomeCronk
Wed Feb 23, 2022 4:04 am
Forum: Development of MicroPython
Topic: Make error while compiling for ESP32 with unicore support
Replies: 3
Views: 1965

Re: Make error while compiling for ESP32 with unicore support

It should be noted that up to this point, the board definition linked in the first post of this thread has not changed.