diff --git a/extmod/modopenamp_remoteproc.c b/extmod/modopenamp_remoteproc.c index 20e4a47c18..82719dca96 100644 --- a/extmod/modopenamp_remoteproc.c +++ b/extmod/modopenamp_remoteproc.c @@ -137,7 +137,7 @@ mp_obj_t openamp_remoteproc_make_new(const mp_obj_type_t *type, size_t n_args, s } if (mp_obj_is_int(args[ARG_entry].u_obj)) { - self->rproc.bootaddr = mp_obj_get_int(args[ARG_entry].u_obj); + self->rproc.bootaddr = mp_obj_int_get_truncated(args[ARG_entry].u_obj); } else { #if MICROPY_PY_OPENAMP_REMOTEPROC_ELFLD_ENABLE // Load firmware.