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

make flash error in ESP32 DIY tracker #17

Open
AviraMatti opened this issue Jul 11, 2019 · 3 comments
Open

make flash error in ESP32 DIY tracker #17

AviraMatti opened this issue Jul 11, 2019 · 3 comments

Comments

@AviraMatti
Copy link

I have problem...what is this solution?
I don't believe that "if" shold be wrong place in ldpc.ccp file...

Matti

error codes after make flash:

matti@matti-Latitude-E6420:~/esp/esp32-ogn-tracker$ make flash
Toolchain path: /home/matti/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: esp32-2019r1
Compiler version: 8.2.0
Python requirements from /home/matti/esp/esp-idf/requirements.txt are satisfied.

App "app-template" version: 88b0918-dirty
CXX build/main/ldpc.o
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp: In function 'void LDPC_Encode(const uint8_t*, uint8_t*, const uint32_t ()[5])':
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:671:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(Count&1) ParByte|=Mask; Mask<<=1;
^~
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:671:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(Count&1) ParByte|=Mask; Mask<<=1;
^~~~
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp: In function 'void LDPC_Encode(const uint32_t
, uint32_t*, uint8_t, uint8_t, const uint32_t*)':
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:692:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(Count&1) Parity[ParIdx]|=Mask; Mask<<=1;
^~
/home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:692:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(Count&1) Parity[ParIdx]|=Mask; Mask<<=1;
^~~~
cc1plus: some warnings being treated as errors
/home/matti/esp/esp-idf/make/component_wrapper.mk:289: recipe for target 'ldpc.o' failed
make[1]: *** [ldpc.o] Error 1
/home/matti/esp/esp-idf/make/project.mk:582: recipe for target 'component-main-build' failed
make: *** [component-main-build] Error 2

@pjalocha
Copy link
Contributor

pjalocha commented Jul 11, 2019 via email

@AviraMatti
Copy link
Author

Ok...is it CMAKE better ...Do you have a good alternative combiler to Linux ... i don't have much experience.

I have also ESP32 Heltec at same time connected to USB0 (ls /dev/tty* works correctly)

@AviraMatti
Copy link
Author

I did check GNU Make (Makefile) to convert CMake (CMakeList.txt) what it needs... conversion isn't simple. My source files DIY Tracker includes Makefile...is it some equivalent compiler what use same Makefile?

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