lupyuen / pinetime-updater

Flash firmware to PineTime the friendly wired way with OpenOCD
Apache License 2.0
65 stars 10 forks source link

Error of compilation i guess #11

Closed KNG6 closed 2 years ago

KNG6 commented 2 years ago

image I'm on raspberry pi do you have an idea ?

lupyuen commented 2 years ago

Try editing src/flash/nor/jtagspi.c, line 262 and change it to:

uint32_t status = 0;

I haven't seen this error before.

KNG6 commented 2 years ago

image

lupyuen commented 2 years ago

Sorry I'm not using Pi any more, I can't check on this. Could you ask the folks in PineTime Chatroom on Matrix? Thanks

KNG6 commented 2 years ago

I will, thanks

anbcodes commented 2 years ago

For anyone else with the same problem, the solution that worked for me (suggested on matrix) was to downgrade gcc from 11 to 9

lupyuen commented 2 years ago

Ah great thanks!

anbcodes commented 2 years ago

There's actually a pull request on your other repository for fixing it to work with GCC 10, which appears to be the current default on the Raspberry PI OS. (I had been using GCC 11, as I was using ubuntu on the raspberry pi)

lupyuen commented 2 years ago

Yep I just merged it, sorry I missed that :-)