Page 1 of 1

Not compiled code

Posted: Sun Sep 27, 2020 4:10 am
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?

Re: Not compiled code

Posted: Sun Sep 27, 2020 1:26 pm
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]|

Re: Not compiled code

Posted: Sun Sep 27, 2020 2:02 pm
by v-proto
Just test some example project for codeblocks stm32. And all completely fine, no errors.

Re: Not compiled code

Posted: Sun Sep 27, 2020 5:59 pm
by johu
Did you follow the instructions in readme.md ? Seems like you're not using the modified libopencm3

Re: Not compiled code

Posted: Sun Sep 27, 2020 9:34 pm
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 ?