Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
delayMicroseconds function
03-10-2015, 11:46 AM, (This post was last modified: 03-10-2015, 11:47 AM by machocastellano.)
#1
delayMicroseconds function
Hello everybody:

I'm trying to read temperature from DHT22 sensor, and I need to use delayMicroseconds() function, but it doesn't compile.

stdout:
Code:
# ------------------------------------------------------------------
# cleaning all build files
# ------------------------------------------------------------------
rm -f -v /home/txema/.pinguino/source/main32.o
«/home/txema/.pinguino/source/main32.o» borrado
rm -f -v /home/txema/.pinguino/source/main32.elf
rm -f -v /home/txema/.pinguino/source/main32.hex
rm -f -v /home/txema/.pinguino/source/obj/non-free/processor.o
«/home/txema/.pinguino/source/obj/non-free/processor.o» borrado
# ------------------------------------------------------------------
# adding proc. definitions
# ------------------------------------------------------------------
cp /home/txema/.pinguino/source/obj/non-free/32MX440F256H.o /home/txema/.pinguino/source/obj/non-free/processor.o
# ------------------------------------------------------------------
# compiling and linking
# ------------------------------------------------------------------
#/usr/bin/p32-gcc -march=m4k -EL -msoft-float -nostdlib -static -O3 -minterlink-mips16 -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-L/home/txema/.pinguino/source/obj/non-free -Wl,--defsym,_min_heap_size=1024 -Wl,-Map=/home/txema/.pinguino/source/output.map -D __PIC32MX__ -D __32MX440F256H__ -D PIC32_PINGUINO_OTG -T/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/procdefs.ld -T/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/elf32pic32mx.x -L/home/txema/.pinguino/source/obj/non-free/usb -lm -lgcc -lc -fdollars-in-identifiers -I/usr/share/pinguino-11/p32/include/non-free -I/usr/share/pinguino-11/p32/include/pinguino/core -I/usr/share/pinguino-11/p32/include/pinguino/libraries -I/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG -I/home/txema/Escritorio -I/home/txema/.pinguino/source/obj/non-free -o /home/txema/.pinguino/source/main32.elf /home/txema/.pinguino/source/main32.c
/usr/bin/p32-gcc -march=m4k -EL -msoft-float -nostdlib -static -O3 -minterlink-mips16 -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-L/home/txema/.pinguino/source/obj/non-free -Wl,--defsym,_min_heap_size=1024 -Wl,-Map=/home/txema/.pinguino/source/output.map -D __PIC32MX__ -D __32MX440F256H__ -D PIC32_PINGUINO_OTG -T/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/procdefs.ld -T/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/elf32pic32mx.x -L/home/txema/.pinguino/source/obj/non-free/usb -lm -lgcc -lc -fdollars-in-identifiers -I/usr/share/pinguino-11/p32/include/non-free -I/usr/share/pinguino-11/p32/include/pinguino/core -I/usr/share/pinguino-11/p32/include/pinguino/libraries -I/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG -I/home/txema/Escritorio -I/home/txema/.pinguino/source/obj/non-free -mips16 -c -g -Wa,-a,-ad /home/txema/.pinguino/source/main32.c > /home/txema/.pinguino/source/main32.lst
In file included from /home/txema/.pinguino/source/define.h:4:0,
                from /home/txema/.pinguino/source/main32.c:30:
/usr/share/pinguino-11/p32/include/pinguino/libraries/__cdc.c:126:65: warning: backslash and newline separated by space
#if !defined(__32MX220F032D__) && !defined(__32MX220F032B__) && \
^
/usr/bin/p32-gcc -march=m4k -EL -msoft-float -nostdlib -static -O3 -minterlink-mips16 -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-L/home/txema/.pinguino/source/obj/non-free -Wl,--defsym,_min_heap_size=1024 -Wl,-Map=/home/txema/.pinguino/source/output.map -D __PIC32MX__ -D __32MX440F256H__ -D PIC32_PINGUINO_OTG -T/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/procdefs.ld -T/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/elf32pic32mx.x -L/home/txema/.pinguino/source/obj/non-free/usb -lm -lgcc -lc -fdollars-in-identifiers -I/usr/share/pinguino-11/p32/include/non-free -I/usr/share/pinguino-11/p32/include/pinguino/core -I/usr/share/pinguino-11/p32/include/pinguino/libraries -I/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG -I/home/txema/Escritorio -I/home/txema/.pinguino/source/obj/non-free -mips16 -c -o /home/txema/.pinguino/source/main32.o /home/txema/.pinguino/source/main32.c
In file included from /home/txema/.pinguino/source/define.h:4:0,
                from /home/txema/.pinguino/source/main32.c:30:
/usr/share/pinguino-11/p32/include/pinguino/libraries/__cdc.c:126:65: warning: backslash and newline separated by space
#if !defined(__32MX220F032D__) && !defined(__32MX220F032B__) && \
^
/usr/bin/p32-gcc -march=m4k -EL -msoft-float -nostdlib -static -O3 -minterlink-mips16 -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-L/home/txema/.pinguino/source/obj/non-free -Wl,--defsym,_min_heap_size=1024 -Wl,-Map=/home/txema/.pinguino/source/output.map -D __PIC32MX__ -D __32MX440F256H__ -D PIC32_PINGUINO_OTG -T/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/procdefs.ld -T/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/elf32pic32mx.x -L/home/txema/.pinguino/source/obj/non-free/usb -lm -lgcc -lc -fdollars-in-identifiers -I/usr/share/pinguino-11/p32/include/non-free -I/usr/share/pinguino-11/p32/include/pinguino/core -I/usr/share/pinguino-11/p32/include/pinguino/libraries -I/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG -I/home/txema/Escritorio -I/home/txema/.pinguino/source/obj/non-free -o /home/txema/.pinguino/source/main32.elf\
/home/txema/.pinguino/source/main32.o\
/home/txema/.pinguino/source/obj/non-free/crt0.S\
/home/txema/.pinguino/source/obj/non-free/processor.o\
/home/txema/.pinguino/source/obj/non-free/usb/libcdc.a\
/home/txema/.pinguino/source/obj/non-free/usb/libadb.a\
/usr/share/pinguino-11/p32/lkr/PIC32_PINGUINO_OTG/ISRwrapper.S\
/usr/share/pinguino-11/p32/include/non-free/p32xxxx.h\
-lm -lgcc -lc
/home/txema/.pinguino/source/main32.o: In function `loop':
(.text.loop+0xa6): undefined reference to `DelaymsMicroseconds'
collect2: error: ld returned 1 exit status
/home/txema/.pinguino/source/Makefile32.linux:136: recipe for target 'compile' failed
make: *** [compile] Error 1

As you can see, it's transformed in "DelaymsMicroseconds" function which doesn't exist in core libraries (at least I didn't find it).

What do you think it's the problem?

IDE: Pinguino IDE 11.0-beta.3
OS: Ubuntu 15.04 32 bits
Card: PIC32 Pinguino OTG

Thanks a lot,

Machocastellano.

Updated: Same SW compiles on Windows 7 IDE.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)