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

Fix zephyr build scripts invocation from pio script. #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

waltergallegog
Copy link

@waltergallegog waltergallegog commented Oct 27, 2022

  • Add "build" to the command for invocation of zephyr scripts from platformio, as the zephyr scripts have been moved.
  • Add invocation of script that autogenerates the sterror_table.h file, based on the other invocations already present, and on the equivalent zephyr file lib/libc/minimal/CMakeLists.txt

Please note that I am not developer of zephyr or platformio so the modifications may not be correct.

With the modifications the build does not fail because of the missing file / scripts, but still fails with:
"Architecture unsupported"

Closes #1

 - Add "build" to the command for invocation of zephyr scripts from
   platformio, as the zephyr scripts have been moved.
 - Add invocation of script that autogenerates the sterror_table.h
   file, based on the other invocations already present, and on the
   equivalent zephyr file lib/libc/minimal/CMakeLists.txt

Please note that I am not developer of zephyr or platformio so the
modifications may not be correct.

With the modifications the build does not fail because of the missing
file / scripts, but still fails with:
"Architecture unsupported"
@pwilkowski
Copy link

I can confirm that this should have fixed the issue however I am getting some errors
framework-zephyr/include/zephyr/toolchain/common.h:96:6: error: #error Architecture unsupported

@waltergallegog did you manage to compile some project using this script?

@waltergallegog
Copy link
Author

Hi @pwilkowski. Nope, I was not able to successfully compile my project. The modifications on this PR is as far as I got attempting to solve the issue.

@Hygdrasil
Copy link

Hey, im working on a integration of Zephyr 3 based on maxgerhardts work. Zephyr added a Buildstep between v2 and v3. Max Gerhardt has build a workaround for it.
I just patched the workaround to compile the main and link the Libraries found by PlatformIO.

See https://github.com/Hygdrasil/platformIO_zephyr3/tree/piosupport31.

@pwilkowski
Copy link

@Hygdrasil unfortunately, while your branch builds, OS is stuck at booting.

@Hygdrasil
Copy link

@pwilkowski can you try this repo?
Im short at hardware and tested it only in qemu. If that works, please send me your repo so I can dig into the issue.
Zephyr is probably linking a week default main. You can check that in the memory inspector of platformio.
My actual goal is to get an esp32 (there i have hardware) running, but its not quite the same as the stm32 platform.

@pwilkowski
Copy link

@Hygdrasil I actually wanted it to run at nrf52 so im not sure about stm32 either, so im not sure how am i suppose to use that repo?

@Hygdrasil
Copy link

@pwilkowski I updated the .ini for an nrf32, can you try to run this repo? These are both st based plaforms so it probably ether works with both or none.

@pwilkowski
Copy link

@Hygdrasil I still do not know how can i "try to run" that repo. Do you perhaps use a discord?

@Hygdrasil
Copy link

@pwilkowski i have a account, can you point me to a server and we meet there?

@pwilkowski
Copy link

@Hygdrasil official zephyr discord https://discord.gg/zephyrproject my nick there is Kaminaris

@Hygdrasil
Copy link

sorry i cant find you there

@pwilkowski
Copy link

@Hygdrasil just posted something on #general

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.

zephyr scripts not found and missing auto generated header
3 participants