mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
core: add prints to main loop
This commit is contained in:
parent
3fcbf7179b
commit
65ee44b636
@ -48,6 +48,7 @@ int main(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
printf("CORE: Starting main loop\n");
|
||||||
// Stack limit should be less than real stack size, so we have a chance
|
// Stack limit should be less than real stack size, so we have a chance
|
||||||
// to recover from limit hit.
|
// to recover from limit hit.
|
||||||
mp_stack_set_top(&_estack);
|
mp_stack_set_top(&_estack);
|
||||||
@ -63,9 +64,11 @@ int main(void) {
|
|||||||
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
|
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
|
||||||
|
|
||||||
// Run the main script
|
// Run the main script
|
||||||
|
printf("CORE: Executing main script\n");
|
||||||
pyexec_frozen_module("main.py");
|
pyexec_frozen_module("main.py");
|
||||||
|
|
||||||
// Run REPL
|
// Run REPL
|
||||||
|
printf("CORE: Executing REPL\n");
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (pyexec_friendly_repl() != 0) {
|
if (pyexec_friendly_repl() != 0) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user