Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC32PINGUINO_blink_interrupt_example (by Olimex) can't be compiled
03-09-2015, 07:40 AM,
#1
PIC32PINGUINO_blink_interrupt_example (by Olimex) can't be compiled
HI...

The PIC32PINGUINO_blink_interrupt_example (by Olimex) can't be compiled,
Thanks...

Good Day Good Luck,

Cat3282828


STDOUT

if exist C:\pinguino-11\user\source\main32.o @del C:\pinguino-11\user\source\main32.o
if exist C:\pinguino-11\user\source\main32.elf @del C:\pinguino-11\user\source\main32.elf
if exist C:\pinguino-11\user\source\main32.hex @del C:\pinguino-11\user\source\main32.hex
if exist C:\pinguino-11\user\source\obj\non-free\processor.o @del C:\pinguino-11\user\source\obj\non-free\processor.o
C:\pinguino-11\compilers\p32\bin\p32-gcc.exe -march=m4k -EL -msoft-float -nostdlib -static -O3 -minterlink-mips16 -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-LC:\pinguino-11\user\source\obj\non-free -Wl,--defsym,_min_heap_size=512 -Wl,-Map=C:\pinguino-11\user\source\output.map -D __PIC32MX__ -D __32MX440F256H__ -D PIC32_PINGUINO_MICRO -TC:\pinguino-11\p32\lkr\32MX440F256H.ld -TC:\pinguino-11\p32\lkr\elf32pic32mx.x -LC:\pinguino-11\user\source\obj\non-free\usb -lm -lgcc -lc -fdollars-in-identifiers -IC:\pinguino-11\p32\include\non-free -IC:\pinguino-11\p32\include\pinguino\core -IC:\pinguino-11\p32\include\pinguino\libraries -IC:\pinguino-11\p32\lkr -ID:\PINGUINO\PIC32PINGUINO_blink_interrupt_example -IC:\pinguino-11\user\source\obj\non-free -mips16 -S -o C:\pinguino-11\user\source\main32.S C:\pinguino-11\user\source\main32.c
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:49:7: warning: conflicting types for 'Tmr1Interrupt'
void Tmr1Interrupt(void) __attribute__ ((interrupt));
^
C:\pinguino-11\user\source\user.c:46:36: note: previous implicit declaration of 'Tmr1Interrupt' was here
void ISR_wrapper_vector_4(void) { Tmr1Interrupt(); }
^
C:\pinguino-11\user\source\user.c:64:7: warning: conflicting types for 'init_timer1'
void init_timer1(void)
^
C:\pinguino-11\user\source\user.c:60:6: note: previous implicit declaration of 'init_timer1' was here
init_timer1();
^
C:\pinguino-11\user\source\user.c: In function 'init_timer1':
C:\pinguino-11\user\source\user.c:66:22: error: 'INT_SYSTEM_CONFIG_MULT_VECTOR' undeclared (first use in this function)
IntConfigureSystem(INT_SYSTEM_CONFIG_MULT_VECTOR);
^
C:\pinguino-11\user\source\user.c:66:22: note: each undeclared identifier is reported only once for each function it appears in
make: *** [compile] Error 1
Reply
03-09-2015, 09:07 AM,
#2
RE: PIC32PINGUINO_blink_interrupt_example (by Olimex) can't be compiled
That happens when the usage of a function comes *before* its declaration, and an implicit declaration is performed by the compiler, as you can see in the error log for the Tmr1Interrupt function. Try moving the line 'void Tmr1Interrupt(void) __attribute__ ((interrupt));' before the function that first use it, which seems to be ISR_wrapper_vector_4 Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)