Creating a target #991
-
You know me already 😆 Is it a "target" or a "platform" or a "sub platform" that I'm creating? I'm passing it to mcconfig's
Where? In the moddable source tree? I don't see anywhere I can specify where my sub-platform definitions live. How does that fare when I upgrade the moddable SDK? Assumes I notice one definition of SPI pins in So I took a stab at the sub-platform definition, looks pretty straight-forward. But of course I fat fingered something and the esp32 is in a boot loop...
I'm gonna go back and see what I fat-fingered, but I wonder how one finds out what happens when the esp32 crashes? I'm used to seeing the ESP-IDF crash info, which typ. includes an error messages and backtrace info. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You're creating a subplatform of the esp32 platform. We generally use "target" to refer to either a platform (e.g.
We generally do just drop them into
Defines ripple through to native (C) code. See the Using defines in manifests document for details. In this case, I suspect that those defines in the manifest were erroneously carried over from another platform.
The ESP-IDF log output and the Moddable SDK xsbug output are not always compatible with each other. When diagnosing native crashes, we often use instrumented builds instead ( |
Beta Was this translation helpful? Give feedback.
You're creating a subplatform of the esp32 platform. We generally use "target" to refer to either a platform (e.g.
-p esp8266
) or a platform/subplatform combination (e.g.-p esp32/moddable_two
). You are correct that theesp32/targets
folder probably should actually be namedesp32/subplatforms
. The historical reasons that it is not are not especially interesting.