Generating dependencies..
makedepend: warning: boot.c (reading openchronos.h, line 32): cannot find include file "msp430.h"
not in ./msp430.h
not in gcc/msp430.h
makedepend: warning: boot.c (reading openchronos.h, line 34): cannot find include file "stdlib.h"
not in ./stdlib.h
not in gcc/stdlib.h
makedepend: warning: drivers/display.c, line 58: cannot find include file "string.h"
not in ./string.h
not in gcc/string.h
makedepend: warning: drivers/display.c, line 59: cannot find include file "stdlib.h"
not in ./stdlib.h
not in gcc/stdlib.h
makedepend: warning: drivers/pmm.c, line 12: cannot find include file "cc430x613x.h"
not in cc430x613x.h
not in drivers/cc430x613x.h
not in ./cc430x613x.h
not in gcc/cc430x613x.h
makedepend: warning: drivers/rtca.c, line 32: cannot find include file "stdlib.h"
not in ./stdlib.h
not in gcc/stdlib.h
makedepend: warning: modules/otp.c, line 23: cannot find include file "string.h"
not in ./string.h
not in gcc/string.h
CC boot.c
CC modinit.c
CC openchronos.c
CC drivers/adc12.c
CC drivers/battery.c
CC drivers/buzzer.c
CC drivers/display.c
CC drivers/dsp.c
CC drivers/infomem.c
CC drivers/ports.c
CC drivers/radio.c
CC drivers/rf1a.c
CC drivers/rtca.c
CC drivers/rtc_dst.c
CC drivers/temperature.c
CC drivers/timer.c
CC drivers/vti_as.c
CC drivers/vti_ps.c
CC modules/accelerometer.c
CC modules/alarm.c
CC modules/battery.c
CC modules/clock.c
CC modules/music.c
CC modules/otp.c
CC modules/reset.c
CC modules/stopwatch.c
CC modules/temperature.c
CC modules/tide.c
-e
>> Building openchronos.elf as target RELEASE
modules/accelerometer.o: In function `acc_activated':
accelerometer.c:(.text.acc_activated+0x14): undefined reference to `as_ok'
accelerometer.c:(.text.acc_activated+0x26): undefined reference to `as_ok'
accelerometer.c:(.text.acc_activated+0x36): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x3a): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x3e): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x42): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x46): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x5e): undefined reference to `as_start'
accelerometer.c:(.text.acc_activated+0x62): undefined reference to `as_ok'
accelerometer.c:(.text.acc_activated+0x74): undefined reference to `as_ok'
modules/accelerometer.o: In function `acc_deactivated':
accelerometer.c:(.text.acc_deactivated+0x24): undefined reference to `as_stop'
modules/accelerometer.o: In function `update_menu':
accelerometer.c:(.text.update_menu+0x1c): undefined reference to `as_config'
modules/accelerometer.o: In function `up_btn':
accelerometer.c:(.text.up_btn+0x1e): undefined reference to `as_config'
accelerometer.c:(.text.up_btn+0x2e): undefined reference to `as_config'
accelerometer.c:(.text.up_btn+0x32): undefined reference to `change_mode'
accelerometer.c:(.text.up_btn+0x3e): undefined reference to `as_read_register'
accelerometer.c:(.text.up_btn+0x4a): undefined reference to `as_status'
modules/accelerometer.o: In function `as_event':
accelerometer.c:(.text.as_event+0x1a): undefined reference to `as_stop'
accelerometer.c:(.text.as_event+0x28): undefined reference to `as_get_status'
accelerometer.c:(.text.as_event+0x2c): undefined reference to `as_status'
accelerometer.c:(.text.as_event+0x30): undefined reference to `as_status'
accelerometer.c:(.text.as_event+0x54): undefined reference to `as_status'
accelerometer.c:(.text.as_event+0x5c): undefined reference to `as_status'
accelerometer.c:(.text.as_event+0x6c): undefined reference to `as_get_data'
accelerometer.c:(.text.as_event+0x90): undefined reference to `as_read_register'
collect2 ld returned 1 exit status
make: *** [openchronos.elf] Error 1
root@alvaro-virtual-machine:/home/alvaro/openchronos-ng-code# make
-e
>> Building openchronos.elf as target RELEASE
modules/accelerometer.o: In function `acc_activated':
accelerometer.c:(.text.acc_activated+0x14): undefined reference to `as_ok'
accelerometer.c:(.text.acc_activated+0x26): undefined reference to `as_ok'
accelerometer.c:(.text.acc_activated+0x36): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x3a): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x3e): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x42): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x46): undefined reference to `as_config'
accelerometer.c:(.text.acc_activated+0x5e): undefined reference to `as_start'
accelerometer.c:(.text.acc_activated+0x62): undefined reference to `as_ok'
accelerometer.c:(.text.acc_activated+0x74): undefined reference to `as_ok'
modules/accelerometer.o: In function `acc_deactivated':
accelerometer.c:(.text.acc_deactivated+0x24): undefined reference to `as_stop'
modules/accelerometer.o: In function `update_menu':
accelerometer.c:(.text.update_menu+0x1c): undefined reference to `as_config'
modules/accelerometer.o: In function `up_btn':
accelerometer.c:(.text.up_btn+0x1e): undefined reference to `as_config'
accelerometer.c:(.text.up_btn+0x2e): undefined reference to `as_config'
accelerometer.c:(.text.up_btn+0x32): undefined reference to `change_mode'
accelerometer.c:(.text.up_btn+0x3e): undefined reference to `as_read_register'
accelerometer.c:(.text.up_btn+0x4a): undefined reference to `as_status'
modules/accelerometer.o: In function `as_event':
accelerometer.c:(.text.as_event+0x1a): undefined reference to `as_stop'
accelerometer.c:(.text.as_event+0x28): undefined reference to `as_get_status'
accelerometer.c:(.text.as_event+0x2c): undefined reference to `as_status'
accelerometer.c:(.text.as_event+0x30): undefined reference to `as_status'
accelerometer.c:(.text.as_event+0x54): undefined reference to `as_status'
accelerometer.c:(.text.as_event+0x5c): undefined reference to `as_status'
accelerometer.c:(.text.as_event+0x6c): undefined reference to `as_get_data'
accelerometer.c:(.text.as_event+0x90): undefined reference to `as_read_register'
collect2 ld returned 1 exit status
make: *** [openchronos.elf] Error 1
--
You received this message because you are subscribed to the Google Groups "OpenChronos" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openchronos...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
What is missing from the module for the old hardware? The errors I get are linker errors.
I have a module I am writing that will use the accelerometers, and I am hopeful that the problem is limited to getting the code to link, not an underlying problem with the actual functionality.
Ok, I finally got some time to spend on this problem, and I found it…
“CONFIG_ACCELEROMETER” is not getting set when you turn on the accelerometer module (I suspect that “CONFIG_MOD_ACCELEROMETER” is defined) pretty much the entire vti_as.c file is in the #else clause of #ifndef CONFIG_ACCELEROMETER. CONFIG ACCELEROMETER is used in a few other places where there are references to the accelerometers.
Now, here is the problem as I see it…
I can change CONFIG_ACCELEROMETER to CONFIG_MOD_ACCELEROMETER and I think it will make this work for the accelerometer module. However, I don’t like the idea that for my new module to work I’d need to turn on the (kind of) unrelated accelerometer module. The question I have of the folks who made the build system, is there any way in the “.cfg” files for me to specify my module also needs to define a driver for its underlying functionality? If there isn’t, would it be useful to have such a system (I think so)
Let me know!