micropython: upgrade to 1.26.0, reverted single commit.
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 3m23s
Check code formatting / Check-C-Format (push) Successful in 6s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 5s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 3m23s
Check code formatting / Check-C-Format (push) Successful in 6s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 5s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s
Migrated all patches from the previous version. A change in the Findpicotool.cmake script in the pico-sdk led to a downgrade of picotool, which incorporated mbedtls into the build, which itself is not buildable with cmake versions < 3.5. The commit which made this isolated change was reverted. Future versions of micropython will use pico-sdk 2.2.0 or newer, where this problem is fixed, and picotool is pinned to a release version.
This commit is contained in:
Submodule software/lib/micropython updated: ccdecf255d...281615c157
@@ -90,9 +90,9 @@ static mp_obj_t audiocore_put(mp_obj_t self_in, mp_obj_t buffer)
|
|||||||
(void)self;
|
(void)self;
|
||||||
mp_buffer_info_t bufinfo;
|
mp_buffer_info_t bufinfo;
|
||||||
if (!mp_get_buffer(buffer, &bufinfo, MP_BUFFER_READ))
|
if (!mp_get_buffer(buffer, &bufinfo, MP_BUFFER_READ))
|
||||||
mp_raise_ValueError("not a read buffer");
|
mp_raise_ValueError(MP_ERROR_TEXT("not a read buffer"));
|
||||||
if (bufinfo.typecode != 'b' && bufinfo.typecode != 'B')
|
if (bufinfo.typecode != 'b' && bufinfo.typecode != 'B')
|
||||||
mp_raise_ValueError("unsupported buffer type");
|
mp_raise_ValueError(MP_ERROR_TEXT("unsupported buffer type"));
|
||||||
unsigned to_copy = bufinfo.len;
|
unsigned to_copy = bufinfo.len;
|
||||||
|
|
||||||
const uint32_t flags = spin_lock_blocking(shared_context.lock);
|
const uint32_t flags = spin_lock_blocking(shared_context.lock);
|
||||||
@@ -144,7 +144,7 @@ static mp_obj_t audiocore_set_volume(mp_obj_t self_in, mp_obj_t volume_obj)
|
|||||||
struct audiocore_obj *self = MP_OBJ_TO_PTR(self_in);
|
struct audiocore_obj *self = MP_OBJ_TO_PTR(self_in);
|
||||||
const int volume = mp_obj_get_int(volume_obj);
|
const int volume = mp_obj_get_int(volume_obj);
|
||||||
if (volume < 0 || volume > 255)
|
if (volume < 0 || volume > 255)
|
||||||
mp_raise_ValueError("volume out of range");
|
mp_raise_ValueError(MP_ERROR_TEXT("volume out of range"));
|
||||||
multicore_fifo_push_blocking(AUDIOCORE_CMD_SET_VOLUME);
|
multicore_fifo_push_blocking(AUDIOCORE_CMD_SET_VOLUME);
|
||||||
multicore_fifo_push_blocking(AUDIOCORE_MAX_VOLUME * volume / 255);
|
multicore_fifo_push_blocking(AUDIOCORE_MAX_VOLUME * volume / 255);
|
||||||
wake_core1();
|
wake_core1();
|
||||||
|
|||||||
@@ -66,9 +66,9 @@ static mp_obj_t sdcard_readblocks(mp_obj_t self_obj, mp_obj_t block_obj, mp_obj_
|
|||||||
const int start_block = mp_obj_get_int(block_obj);
|
const int start_block = mp_obj_get_int(block_obj);
|
||||||
mp_buffer_info_t bufinfo;
|
mp_buffer_info_t bufinfo;
|
||||||
if (!mp_get_buffer(buf_obj, &bufinfo, MP_BUFFER_WRITE))
|
if (!mp_get_buffer(buf_obj, &bufinfo, MP_BUFFER_WRITE))
|
||||||
mp_raise_ValueError("Not a write buffer");
|
mp_raise_ValueError(MP_ERROR_TEXT("Not a write buffer"));
|
||||||
if (bufinfo.len % SD_SECTOR_SIZE != 0)
|
if (bufinfo.len % SD_SECTOR_SIZE != 0)
|
||||||
mp_raise_ValueError("Buffer length is invalid");
|
mp_raise_ValueError(MP_ERROR_TEXT("Buffer length is invalid"));
|
||||||
const int nblocks = bufinfo.len / SD_SECTOR_SIZE;
|
const int nblocks = bufinfo.len / SD_SECTOR_SIZE;
|
||||||
for (int block = 0; block < nblocks; block++) {
|
for (int block = 0; block < nblocks; block++) {
|
||||||
// TODO: Implement CMD18 read multiple blocks
|
// TODO: Implement CMD18 read multiple blocks
|
||||||
@@ -85,9 +85,9 @@ static mp_obj_t sdcard_writeblocks(mp_obj_t self_obj, mp_obj_t block_obj, mp_obj
|
|||||||
const int start_block = mp_obj_get_int(block_obj);
|
const int start_block = mp_obj_get_int(block_obj);
|
||||||
mp_buffer_info_t bufinfo;
|
mp_buffer_info_t bufinfo;
|
||||||
if (!mp_get_buffer(buf_obj, &bufinfo, MP_BUFFER_READ))
|
if (!mp_get_buffer(buf_obj, &bufinfo, MP_BUFFER_READ))
|
||||||
mp_raise_ValueError("Not a read buffer");
|
mp_raise_ValueError(MP_ERROR_TEXT("Not a read buffer"));
|
||||||
if (bufinfo.len % SD_SECTOR_SIZE != 0)
|
if (bufinfo.len % SD_SECTOR_SIZE != 0)
|
||||||
mp_raise_ValueError("Buffer length is invalid");
|
mp_raise_ValueError(MP_ERROR_TEXT("Buffer length is invalid"));
|
||||||
const int nblocks = bufinfo.len / SD_SECTOR_SIZE;
|
const int nblocks = bufinfo.len / SD_SECTOR_SIZE;
|
||||||
for (int block = 0; block < nblocks; block++) {
|
for (int block = 0; block < nblocks; block++) {
|
||||||
// TODO: Implement CMD25 write multiple blocks
|
// TODO: Implement CMD25 write multiple blocks
|
||||||
|
|||||||
Reference in New Issue
Block a user