Where to find any docs about upy FULL FEATURE PORTING guides?
Posted: Wed Apr 03, 2019 2:29 pm
Hi there,
I tried to build upy recently, it is really great! Amazing work.
After serial days hard work, I still have little idea about porting to a custom board, there are lots of boards can be refrenced though. Because not all of these boards support a particular feature, and don't know what to do about it, sometimes it is not there at all. I have made some modifications but not all of them because of lacking details.
There are confusing comments about some features too, e.g. :
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
#define MICROPY_HW_HAS_FLASH (1)
MICROPY_HW_HAS_FLASH - somewhere saids internal flash, but it is much more like to be SPIFLASH here???
And something comes up suddenly in mpconfigboard.h:
#define MICROPY_HW_SPIFLASH_SIZE_BITS (128 * 1024 * 1024)
#define MICROPY_HW_SPIFLASH_CS (pin_E11)
#define MICROPY_HW_SPIFLASH_SCK (pin_E10)
#define MICROPY_HW_SPIFLASH_MOSI (pin_E12)
#define MICROPY_HW_SPIFLASH_MISO (pin_E13)
What are the patterns of these definitions: "MICROPY_HW_SPIFLASH_CS" ???
Well, it is ued by
const mp_spiflash_config_t spiflash_config = {
.bus_kind = MP_SPIFLASH_BUS_SPI,
.bus.u_spi.cs = MICROPY_HW_SPIFLASH_CS,
.bus.u_spi.data = (void*)&soft_spi_bus,
.bus.u_spi.proto = &mp_soft_spi_proto,
.cache = &spi_bdev_cache,
};
in bdev.c, but without #include "mpconfigboard.h", did I miss something?
And so on.
Honestly speaking, it drives me crazy sometimes.
So, where can i find a full list of the upy detailed features?
I tried to build upy recently, it is really great! Amazing work.
After serial days hard work, I still have little idea about porting to a custom board, there are lots of boards can be refrenced though. Because not all of these boards support a particular feature, and don't know what to do about it, sometimes it is not there at all. I have made some modifications but not all of them because of lacking details.
There are confusing comments about some features too, e.g. :
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
#define MICROPY_HW_HAS_FLASH (1)
MICROPY_HW_HAS_FLASH - somewhere saids internal flash, but it is much more like to be SPIFLASH here???
And something comes up suddenly in mpconfigboard.h:
#define MICROPY_HW_SPIFLASH_SIZE_BITS (128 * 1024 * 1024)
#define MICROPY_HW_SPIFLASH_CS (pin_E11)
#define MICROPY_HW_SPIFLASH_SCK (pin_E10)
#define MICROPY_HW_SPIFLASH_MOSI (pin_E12)
#define MICROPY_HW_SPIFLASH_MISO (pin_E13)
What are the patterns of these definitions: "MICROPY_HW_SPIFLASH_CS" ???
Well, it is ued by
const mp_spiflash_config_t spiflash_config = {
.bus_kind = MP_SPIFLASH_BUS_SPI,
.bus.u_spi.cs = MICROPY_HW_SPIFLASH_CS,
.bus.u_spi.data = (void*)&soft_spi_bus,
.bus.u_spi.proto = &mp_soft_spi_proto,
.cache = &spi_bdev_cache,
};
in bdev.c, but without #include "mpconfigboard.h", did I miss something?
And so on.
Honestly speaking, it drives me crazy sometimes.
So, where can i find a full list of the upy detailed features?