Not compiled code

Post Reply
v-proto
Posts: 26
Joined: Tue Sep 03, 2019 11:35 pm

Not compiled code

Post by v-proto »

Hello

When i try to compiled source code inverter and charge get error
codeblocks 16 and 17 version
libopeninv/src/stm32_can.cpp|425|error: invalid operands of types 'void' and 'int' to binary 'operator>'|

and

src/inc_encoder.cpp|571|error: 'timer_get_ic_value' was not declared in this scope; did you mean 'timer_set_oc_value'?|

Some one can help me?
v-proto
Posts: 26
Joined: Tue Sep 03, 2019 11:35 pm

Re: Not compiled code

Post by v-proto »

When i try to make test , get this result .


test.h|20|warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]|
v-proto
Posts: 26
Joined: Tue Sep 03, 2019 11:35 pm

Re: Not compiled code

Post by v-proto »

Just test some example project for codeblocks stm32. And all completely fine, no errors.
User avatar
johu
Site Admin
Posts: 6754
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 382 times
Been thanked: 1575 times
Contact:

Re: Not compiled code

Post by johu »

Did you follow the instructions in readme.md ? Seems like you're not using the modified libopencm3
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
v-proto
Posts: 26
Joined: Tue Sep 03, 2019 11:35 pm

Re: Not compiled code

Post by v-proto »

Yes, libopencm3 not correct.
Thank you.

Also when compiling your libopencm3
i see repeated error.
../common/timer_common_all.c: In function 'timer_get_ic_value':
../common/timer_common_all.c:1654:1: warning: control reaches end of non-void function [-Wreturn-type]

You have same problem ?
Post Reply