Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for riscv32imac-esp-espidf and riscv32imc-esp-espidf #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

thedevleon
Copy link

@thedevleon thedevleon commented Jan 8, 2025

Coming back to running a121-rs on an esp32c3/esp32c6 - and seems some things changed in the meantime, especially with this new a121-sys crate. I extended the bindings generation to set the correct cross-compilation target (riscv32-esp-elf), and to also automatically find the sysroot and include directories for the riscv32imac-esp-espidf and riscv32imc-esp-espidf targets, which are the c3 and c6 in combination with the std environment (via https://github.com/esp-rs/esp-idf-svc).

Will mark this as ready to merge once I have confirmed that this runs successfully on the c3/c6.

Still having a couple issues until we get there:

  1. riscv32-esp-elf-gcc is no longer installed by espup, and instead is only present in the .embuild folder of the main application crate (i.e. .embuild/espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin) or in an installation done by the VSCode extension (i.e. ~/.espressif/tools/riscv32-esp-elf/... -> I added a note to the readme about sourcing the esp installation first to make sure riscv32-esp-elf-gcc is in PATH.
  2. SpiDeviceDriver (from esp-idf-hal) doesn´t seem to be compatible with what the Radar's new method seems to expect → I have refactored a121-rs to not need an SPI adapter at all and work with the normal embedded_hal traits, a separate PR will follow

@thedevleon thedevleon marked this pull request as ready for review January 13, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant