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

Adding XIAO ESP32C6 with BLE support #5421

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

Conversation

alexbegoon
Copy link
Contributor

Related to #4692
The main purpose of this PR is to enhance the ESP32-C6 target by integrating BLE functionality

protobufs Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

Ths is a part of platformio-custom.py - is this needed by cmake?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason, the call to platformio-custom.py and the following part:

# General options that are passed to the C and C++ compilers
projenv.Append(
    CCFLAGS=[
        "-DAPP_VERSION=" + verObj["long"],
        "-DAPP_VERSION_SHORT=" + verObj["short"],
        "-DAPP_ENV=" + env.get("PIOENV"),
    ]
)

has no effect.

I tried adding the following lines to the end of platformio-custom.py:

env.Append(
   BUILD_FLAGS=[
      "-DAPP_VERSION=" + verObj["long"],
      "-DAPP_VERSION_SHORT=" + verObj["short"],
      "-DAPP_ENV=" + env.get("PIOENV"),
   ]
)

but it didn't work either.

What eventually worked was adding this line with the pre instruction:

extra_scripts = pre:bin/version_script.py

It seems that ESP-IDF adds its own CMakeLists.txt to the root of the project during compilation, which might cause the root platformio.ini to become disconnected.

Maybe another pair of eyes can help here. 🙂

Copy link
Member

Choose a reason for hiding this comment

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

No problem, i just hate duplicate code. i am not python savvy but maybe we can 'include' the new file in the existing one, replacing that part?

Copy link
Contributor Author

@alexbegoon alexbegoon Nov 25, 2024

Choose a reason for hiding this comment

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

src/main.cpp Outdated Show resolved Hide resolved
@caveman99
Copy link
Member

caveman99 commented Nov 24, 2024

I am testing a few corner cases with this. Especially with the other C6 board (TLora C6) we have. Is it ok to push minor corrections to your branch?

@alexbegoon
Copy link
Contributor Author

I am testing a few corner cases with this. Especially with the other C6 board (TLora C6) we have. Is it ok to push minor corrections to your branch?

Sure, I am fine with that!

@alexbegoon
Copy link
Contributor Author

@caveman99 just FYI, I'm fixing the failed builds for other targets... 🤷

@alexbegoon alexbegoon requested a review from caveman99 December 30, 2024 19:58
@alexbegoon
Copy link
Contributor Author

Hi @caveman99 ,

I think we're good to go now. Could you take a look please?

@alexbegoon alexbegoon changed the title [WIP] Adding XIAO ESP32C6 with BLE support Adding XIAO ESP32C6 with BLE support Dec 30, 2024
@alexbegoon alexbegoon marked this pull request as ready for review December 30, 2024 20:12
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.

3 participants