Missing git branch for firmware build #1

Closed
opened 2020-08-12 11:36:34 +08:00 by Jmetzner · 4 comments

I am trying to install the latest firmware on our thermostat by followoing the instructions in the readme. I get an error in several places related to imports from
https://github.com/thalesfragoso/stm32f4xx-hal?branch=pwm-impl#cfd073e094daa9be9dd2b0a1f859a4e1c6be2b77.

This branch does not seem to exist but is explicitly called in several locations.
Is there a new codebase coming soon, or any other instructions for installing the latest firmware?

Any guidance in getting the thermostat microcontroller flashed would be greatly appreciated.

Thanks,

Jmetzner

I am trying to install the latest firmware on our thermostat by followoing the instructions in the readme. I get an error in several places related to imports from https://github.com/thalesfragoso/stm32f4xx-hal?branch=pwm-impl#cfd073e094daa9be9dd2b0a1f859a4e1c6be2b77. This branch does not seem to exist but is explicitly called in several locations. Is there a new codebase coming soon, or any other instructions for installing the latest firmware? Any guidance in getting the thermostat microcontroller flashed would be greatly appreciated. Thanks, Jmetzner
Owner

What commands did you type exactly and what error did you get?
Also there are Nix files that successfully build the firmware on Hydra, try following those.

What commands did you type exactly and what error did you get? Also there are Nix files that successfully build the firmware on Hydra, try following those.
Author

Unfortunately I am trying to build the firmware on windows.
I have installed rust and cloned the repository and run the commands

rustup toolchain install nightly
rustup update
rustup target add thumbv7em-none-eabihf --toolchain nightly
rustup default nightly
cargo build --release

and get the error:
error: failed to resolve patches for https://github.com/rust-lang/crates.io-index

Caused by:
failed to load source for dependency stm32f4xx-hal

Caused by:
Unable to update https://github.com/thalesfragoso/stm32f4xx-hal?branch=pwm-impl#cfd073e0

Caused by:
object not found - no match for id (cfd073e094daa9be9dd2b0a1f859a4e1c6be2b77); class=Odb (9); code=NotFound (-3)

I have had partial success when removing that branch in the build file but get the error:
error[E0432]: unresolved imports stm32f4xx_hal::pwm, stm32f4xx_hal::pwm

Unfortunately I am trying to build the firmware on windows. I have installed rust and cloned the repository and run the commands rustup toolchain install nightly rustup update rustup target add thumbv7em-none-eabihf --toolchain nightly rustup default nightly cargo build --release and get the error: error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index` Caused by: failed to load source for dependency `stm32f4xx-hal` Caused by: Unable to update https://github.com/thalesfragoso/stm32f4xx-hal?branch=pwm-impl#cfd073e0 Caused by: object not found - no match for id (cfd073e094daa9be9dd2b0a1f859a4e1c6be2b77); class=Odb (9); code=NotFound (-3) I have had partial success when removing that branch in the build file but get the error: error[E0432]: unresolved imports `stm32f4xx_hal::pwm`, `stm32f4xx_hal::pwm`
Owner
Try upstream. https://github.com/stm32-rs/stm32f4xx-hal/pull/125
Owner

Should be fixed now

Should be fixed now
sb10q closed this issue 2020-09-04 12:13:01 +08:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/thermostat#1
No description provided.