On Mon, 8 Jul 2019 19:48:39 -0700 (PDT), Steven Coddington
<
drstevec...@gmail.com> declaimed the
following:
>2. downloaded compressed image file Debian 9.5 2018-10-07 4GB eMMC IoT
>Flasher
>3. un zipped using 7-zip.
>4. used etcher to copy unzip file to micro card
FYI: Etcher is capable of correctly writing XZ files -- no need to
unzip first.
>5. booted board by powering with usb cable
It is strongly recommended that you use a dedicated (wall wart) power
supply when flashing the eMMC. The USB connector may not provide quite
enough power for successful flashing (especially as the -blue has some 12V
circuits).
Unless things have changed, I'm under the impression that a "flasher"
image is /already/ configured to run the flasher process so should not need
the above edits. Inserting the card and then applying power should have
been sufficient to start flashing. (Hmm, I note the instructions for
converting SD images to flashers have been removed from the download page)
>>
>> Compiling /var/lib/cloud9/sandbox/librobotcontrol/examples/src/rc_blink.c
>> ...
>> cc rc_blink.c -o rc_blink
I don't see anything telling it to include the library during the
linkage phase.
Compare to the Makefile for the examples...
# compiler and linker programs
CC := gcc
LINKER := gcc
# compile flags
WFLAGS := -Wall -Wextra -Werror=float-equal -Wuninitialized \
-Wunused-variable -Wdouble-promotion -pedantic -Wmissing-prototypes \
-Wmissing-declarations -Werror=undef
CFLAGS := -g -pthread -I $(INCLUDEDIR)
LDFLAGS := -lm -lrt -pthread -L $(LIBDIR) -l:librobotcontrol.so.1
$(BINDIR)/% : $(SRCDIR)/%.c
@mkdir -p $(BINDIR)
@$(CC) -o $@ $< $(CFLAGS) $(WFLAGS) $(DEBUGFLAG) $(LDFLAGS)
@echo "made: $@"
Note that the build command (taking into account the macro definitions)
becomes (for rc_blink -- not sure what $< represents -- guessing that is
the source file; also skipping all the WFLAGS strings)
gcc -o rc_blink rc_blink.c -g -pthread -I ../library/include -lm -lrt
-pthread -L ../library/lob -l:librobotcontrol.so.1
That is MUCH different from your bare
cc rc_blink.c -o rc_blink
--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/