[En-Nut-Discussion] owibus sample fails to build
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Fri Aug 17 22:28:00 CEST 2012
>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:
Harald> When trying to build app/owibus for the FLECX board (LPC1768), I
Harald> got the following error: make -C owibus make[1]: Entering
Harald> directory
Harald> `E:/ethernut/ethernut-5.0.5/flecx10a-cm3-gcc-app/owibus' " [CC]
Harald> owibus.c" owibus.c: In function 'main': owibus.c:48:4: warning:
Harald> #warning "Please defined the UART to use for the One-Wire Bus
Harald> for your board" [-Wcpp] owibus.c:56:39: error: 'devUsartStm32_1'
Harald> undeclared (first use in this function) owibus.c:56:39: note:
Harald> each undeclared identifier is reported only once for each
Harald> function it appears in make[1]: *** [owibus.o] Error 1 make[1]:
Harald> Leaving directory
Harald> `E:/ethernut/ethernut-5.0.5/flecx10a-cm3-gcc-app/owibus' make:
Harald> *** [all] Error 2
When writing I thought that the warning was adequate. However as a missing
definition aborts compile, I see it is not adequate...
Harald> To be able to move on, I temporarily moved the sample to hwtest.
Harald> Please note, that all samples shall compile on all platforms. If
Harald> any hardware requirement is missing, the sample should report
Harald> this at runtime, not compile time.
How should we handle that case? There is no intrinsic connection of either
some of the UARTs or a port pin to the OWI device. The board either has such
a connection or not. So to use some default UART or port pin to let the
example compile seems inadequate. But if the owibus example is not in the
app directory, chances are much lower that people detect the example. Any
ideas?
B.t.w. thanks for the style/licence/etc corrections. I will try to learn for
future contribytions.
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list