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

Can't bulid firmware on Windows/Powershell #70

Open
felipejfc opened this issue Jun 18, 2024 · 3 comments
Open

Can't bulid firmware on Windows/Powershell #70

felipejfc opened this issue Jun 18, 2024 · 3 comments
Assignees

Comments

@felipejfc
Copy link
Contributor

Is building the firmware on powershell supposed to work? I get the error that template is not defined on all examples:

go run .\cmd\zigbee\main.go --config .\examples\factory_reset\zigbee.yaml firmware build 2024/06/18 12:39:43 generator.go:106: Device: "nrf52840dongle_nrf52840", selected bootloader: "nrf52_legacy", forced bootloader: false 2024/06/18 12:39:43 main.go:46: generate base: write app src: write template: execute source template "main.c.tpl": template: main.c.tpl:34:4: executing "main.c.tpl" at <maybeRenderExtender .Template "top_level" (sensorCtx 0 $.Device nil .)>: error calling maybeRenderExtender: extender template "peripherals/buttons" is not defined exit status 1

go run .\cmd\zigbee\main.go --config .\examples\battery_measurement\zigbee.yaml firmware build 2024/06/18 12:40:52 generator.go:106: Device: "arduino_nano_33_ble", selected bootloader: "arduino", forced bootloader: false 2024/06/18 12:40:52 main.go:46: generate base: write app src: write template: execute source template "main.c.tpl": template: main.c.tpl:34:4: executing "main.c.tpl" at <maybeRenderExtender .Template "top_level" (sensorCtx 0 $.Device nil .)>: error calling maybeRenderExtender: extender template "peripherals/adc" is not defined exit status 1

@felipejfc
Copy link
Contributor Author

Tried on WSL/Linux and on it I get this other error:

go run ../../cmd/zigbee/main.go --config zigbee.yaml firmware build 2024/06/18 12:55:01 generator.go:106: Device: "xiao_ble", selected bootloader: "adafruit_nrf52_sd140_v7", forced bootloader: true 2024/06/18 12:55:01 ncs_finder.go:75: requested toolchain version: "v2.5.0", available versions: [v2.6.1 v2.5.0] 2024/06/18 12:55:01 device.go:156: found toolchain version "v2.5.0", requested version "v2.5.0" usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ... west: unknown command "build"; do you need to run this inside a workspace? 2024/06/18 12:55:02 main.go:46: build firmware: run command "west": exit status 1 exit status 1

generation of project worked fine but west is not recognizing the build command

@ffenix113
Copy link
Owner

Hello @felipejfc,

I didn't try to use it on Windows, but I can guess how to solve the problem in your original message.
For the second one - probably caused by this single delete.

Thank you for reporting this, will work on it.

@ffenix113
Copy link
Owner

I have just merged some changes related to this.

Unfortunately, it will not work on Windows for now, as some paths are hardcoded. A good issue to work on.

Though on WSL it probably should work, if nRF SDK is installed as VSCode would(see this).

If not - please tell how the SDK was installed and where it is located(do you build other firmwares with this install, or only use it for this project?).

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

No branches or pull requests

2 participants