Skip to content

Commit

Permalink
Update LVGL and bindings
Browse files Browse the repository at this point in the history
Support some LVGL external libs. Related: lvgl/lv_binding_micropython#180

ESP32: Freeze lv_spi.py and sdcard.py. Related: lvgl/lv_binding_micropython#186, lvgl/lv_binding_micropython#69
  • Loading branch information
amirgon committed Oct 20, 2021
1 parent 3212545 commit c96e610
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lv_bindings
1 change: 1 addition & 0 deletions ports/esp32/modules/lv_spi.py
1 change: 1 addition & 0 deletions ports/esp32/modules/sdcard.py

8 comments on commit c96e610

@amirgon
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@embeddedt @eudoxos - Any idea why RPi CI is failing?

Run fiam/arm-none-eabi-gcc@v1
  with:
    release: 9-2019-q4
downloading gcc 9-2019-q4 from https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
(node:1640) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
extracting to /tmp/tmp-1640Hmm390KSnzuv/gcc-9-2019-q4
internal/streams/legacy.js:59
      throw er; // Unhandled stream error in pipe.
      ^

TypeError: Cannot read property '0' of undefined
    at f (/home/runner/work/_actions/fiam/arm-none-eabi-gcc/v1/dist/index.js:21619:34)
    at Object.module.exports.370.bzip2.decompress (/home/runner/work/_actions/fiam/arm-none-eabi-gcc/v1/dist/index.js:12277:13)
    at decompressBlock (/home/runner/work/_actions/fiam/arm-none-eabi-gcc/v1/dist/index.js:25151:29)
    at decompressAndQueue (/home/runner/work/_actions/fiam/arm-none-eabi-gcc/v1/dist/index.js:25168:20)
    at Stream.end (/home/runner/work/_actions/fiam/arm-none-eabi-gcc/v1/dist/index.js:25203:17)
    at _end (/home/runner/work/_actions/fiam/arm-none-eabi-gcc/v1/dist/index.js:13066:9)
    at Stream.stream.end (/home/runner/work/_actions/fiam/arm-none-eabi-gcc/v1/dist/index.js:13075:5)
    at PassThrough.onend (_stream_readable.js:692:10)
    at Object.onceWrapper (events.js:299:28)
    at PassThrough.emit (events.js:210:5)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

@embeddedt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it may have been a spurious failure, since STM32 uses the exact same action for setting up GCC and it succeeded.

@amirgon
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@embeddedt stm32 fails too but with a different error:

arm-none-eabi-ld: build-STM32F7DISC/lib/lv_bindings/lvgl/src/extra/libs/gif/gifdec.o: in function `gif_open':
gifdec.c:(.text.gif_open+0x24): undefined reference to `fputs'
arm-none-eabi-ld: gifdec.c:(.text.gif_open+0x1a0): undefined reference to `_impure_ptr'

@eudoxos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rp2 build is failing in JS (node.js), as I am reading the error, that must be some action setup not directly related to the port (unlike the stm32 which is an error from the linker).

@amirgon
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have an idea how to fix these problems?

@eudoxos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same action error seems to be already reported here: fiam/arm-none-eabi-gcc#17, the warning is probably unrelated (but also reported here: fiam/arm-none-eabi-gcc#24). This is perhaps the most pertinent? fiam/arm-none-eabi-gcc#11: github actions occasionally fail due to stalls/timout. Can you just try to re-run the CI to see if it fails again?

@amirgon
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just try to re-run the CI to see if it fails again?

Sure, I just restarted the RPi CI and it passed.
Now only the stm32 failure remains. @embeddedt - I don't think this is Micropython related. It would probably fail on an stm32 C project as well.

@embeddedt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's caused by an fprintf call. I'm guessing this was an oversight as the other error messages in that file all use LVGL logging, so I've changed this one to use the same.

Please sign in to comment.