Help with the Sleep Mode function,please (DSIC33EP..)
Posted: Tue Dec 27, 2016 12:33 am
Hi All
C code into "Sleep ();" Code and compile it, I get the following error. Could you help me? Please
Thank you.
MCU:(DSPIC33EP128MC206)
..
Description:
Device: PIC16.33E.33EP128MC206
Generated by: Flowcode v7.1.1.0
Date: Tuesday, December 27, 2016 02:15:23
Users: 1
Registered to: celebrium
Licence key: 86ER3C
http://www.flowcode.co.uk
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat "TTS Test" "E:\Yandex\(RFELE~2\software\" "33EP128MC206"
Launching compiler...
E:\Yandex\(RFELE~2\software>xc16-gcc -c -mcpu="33EP128MC206" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "TTS Test".c -o "TTS Test".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
TTS Test.c: In function 'main':
TTS Test.c:157:2: warning: implicit declaration of function 'sleep'
TTS Test.c: At top level:
TTS Test.c:208:1: warning: '_FICD' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FPOR' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FWDT' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FOSC' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FOSCSEL' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FGS' definition has been deprecated: consider migrating to #pragma config
Compilation successful!
Completed compilation, return = 0
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_link.bat "E:\Yandex\(RFELE~2\software\TTS Test" 33EP128MC206 33E
xc16-ld 1.26 (A)
Program Memory [Origin = 0x200, Length = 0x155ec]
section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.text 0x200 0xe4 0x156 (342)
.text 0x2e4 0x21e 0x32d (813)
.init.delay32 0x502 0x1c 0x2a (42)
.dinit 0x51e 0xe 0x15 (21)
.shared.dinit 0x52c 0x2 0x3 (3)
Total program memory used (bytes): 0x4c5 (1221) <1%
Data Memory [Origin = 0x1000, Length = 0x4000]
section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.nbss 0x1000 0 0x4 (4)
.bss 0x1004 0 0x14 (20)
Total data memory used (bytes): 0x18 (24) <1%
Dynamic Memory Usage
region address maximum length (dec)
------ ------- ---------------------
heap 0 0 (0)
stack 0x1018 0x3fe8 (16360)
Maximum dynamic memory (bytes): 0x3fe8 (16360)
E:\Yandex\(RFELE~2\software\TTS Test.o(.text+0x21a): In function `_main':
: undefined reference to `_sleep'
Error returned from [xc16-gcc.exe]
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_link.bat reported error code 1
FINISHED
C code into "Sleep ();" Code and compile it, I get the following error. Could you help me? Please
Thank you.
MCU:(DSPIC33EP128MC206)
..
Description:
Device: PIC16.33E.33EP128MC206
Generated by: Flowcode v7.1.1.0
Date: Tuesday, December 27, 2016 02:15:23
Users: 1
Registered to: celebrium
Licence key: 86ER3C
http://www.flowcode.co.uk
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat "TTS Test" "E:\Yandex\(RFELE~2\software\" "33EP128MC206"
Launching compiler...
E:\Yandex\(RFELE~2\software>xc16-gcc -c -mcpu="33EP128MC206" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "TTS Test".c -o "TTS Test".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
TTS Test.c: In function 'main':
TTS Test.c:157:2: warning: implicit declaration of function 'sleep'
TTS Test.c: At top level:
TTS Test.c:208:1: warning: '_FICD' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FPOR' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FWDT' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FOSC' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FOSCSEL' definition has been deprecated: consider migrating to #pragma config
TTS Test.c:208:1: warning: '_FGS' definition has been deprecated: consider migrating to #pragma config
Compilation successful!
Completed compilation, return = 0
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_link.bat "E:\Yandex\(RFELE~2\software\TTS Test" 33EP128MC206 33E
xc16-ld 1.26 (A)
Program Memory [Origin = 0x200, Length = 0x155ec]
section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.text 0x200 0xe4 0x156 (342)
.text 0x2e4 0x21e 0x32d (813)
.init.delay32 0x502 0x1c 0x2a (42)
.dinit 0x51e 0xe 0x15 (21)
.shared.dinit 0x52c 0x2 0x3 (3)
Total program memory used (bytes): 0x4c5 (1221) <1%
Data Memory [Origin = 0x1000, Length = 0x4000]
section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.nbss 0x1000 0 0x4 (4)
.bss 0x1004 0 0x14 (20)
Total data memory used (bytes): 0x18 (24) <1%
Dynamic Memory Usage
region address maximum length (dec)
------ ------- ---------------------
heap 0 0 (0)
stack 0x1018 0x3fe8 (16360)
Maximum dynamic memory (bytes): 0x3fe8 (16360)
E:\Yandex\(RFELE~2\software\TTS Test.o(.text+0x21a): In function `_main':
: undefined reference to `_sleep'
Error returned from [xc16-gcc.exe]
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_link.bat reported error code 1
FINISHED