Open PranavD10 opened 6 years ago
@PranavD10 Not sure where exactly you found #include <arch/cpu/simplelink-cc13xx-cc26xx/lib/coresdk_cc13xx_cc26xx/source/ti/drivers/PWM.h>
as this path doesn't exist in Contiki. The simplelink platform was added to Contiki-NG a few days ago: https://github.com/contiki-ng/contiki-ng/pull/609. Perhaps that's where you should be writing this application!
Here is the code
this i got-- $ make TARGET=srf06-cc26xx BOARD=launchpad/cc2650 hello-world.upload CC ../../arch/cpu/cc26xx-cc13xx/lib/cc26xxware/startup_files/ccfg.c CC ../../arch/cpu/cc26xx-cc13xx/./ieee-addr.c CC ../../arch/cpu/cc26xx-cc13xx/./fault-handlers.c CC ../../arch/cpu/cc26xx-cc13xx/lib/cc26xxware/startup_files/startup_gcc.c CC hello-world.c LD hello-world.elf hello-world.o: In function
process_thread_hello_world_process': hello-world.c:(.text.process_thread_hello_world_process+0x10): undefined reference to
PWM_Params_init' hello-world.c:(.text.process_thread_hello_world_process+0x24): undefined reference toPWM_open' hello-world.c:(.text.process_thread_hello_world_process+0x32): undefined reference to
PWM_start' hello-world.c:(.text.process_thread_hello_world_process+0x3e): undefined reference toPWM_setDuty' hello-world.c:(.text.process_thread_hello_world_process+0x46): undefined reference to
PWM_start' collect2: error: ld returned 1 exit status ../../arch/cpu/arm/cortex-m/cm3/Makefile.cm3:27: recipe for target 'hello-world.elf' failed make: *** [hello-world.elf] Error 1 rm hello-world.o obj_srf06-cc26xx/startup_gcc.o obj_srf06-cc26xx/fault-handlers.o