fabriceo / scoop Goto Github PK
View Code? Open in Web Editor NEWSimple Cooperative Scheduler for Arduino and Teensy ARM and AVR
Simple Cooperative Scheduler for Arduino and Teensy ARM and AVR
C:\Users\l\AppData\Local\Temp\ccyqFSrX.ltrans0.ltrans.o: In function `SCoopMicros16':
D:\Arduino-mindPlus\hardware\arduino\avr\libraries\SCoop/SCoop.cpp:226: undefined reference to `timer0_overflow_count'
D:\Arduino-mindPlus\hardware\arduino\avr\libraries\SCoop/SCoop.cpp:226: undefined reference to `timer0_overflow_count'
D:\Arduino-mindPlus\hardware\arduino\avr\libraries\SCoop/SCoop.cpp:226: undefined reference to `timer0_overflow_count'
collect2.exe: error: ld returned 1 exit status
sorry my english is not well , thanks for share scoop lib , it's really useful ,
my question is function "sleep" is millisecond, can it use microsecond??
thank you so much
I'm getting this error on Arduino IDE 1.6.12 with version 1.2 of SCoop. It compiles fine on Arduino IDE 1.6.3.
I've tried adding __attribute__((used))
to timer0_overflow_count in SCoop.cpp, but it didn't help. Google suggests that this issue is caused by Link-Time Optimization (LTO) which was enabled in recent versions of Arduino IDE.
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\User\AppData\Local\Temp\arduino_build_421117/Garage3.ino.elf" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\sketch\Events.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\sketch\Garage3.ino.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\SCoop\SCoop.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\SPI\SPI.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\Ethernet\Dhcp.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\Ethernet\Dns.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\Ethernet\Ethernet.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\Ethernet\EthernetClient.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\Ethernet\EthernetServer.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\Ethernet\EthernetUdp.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\Ethernet\utility\socket.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117\libraries\Ethernet\utility\w5100.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_421117/core\core.a" "-LC:\Users\User\AppData\Local\Temp\arduino_build_421117" -lm
`timer0_overflow_count' referenced in section `.text' of C:\Users\User\AppData\Local\Temp\ccIO2cUw.ltrans3.ltrans.o: defined in discarded section `.text' of wiring.c.o (symbol from plugin)
`timer0_overflow_count' referenced in section `.text' of C:\Users\User\AppData\Local\Temp\ccIO2cUw.ltrans3.ltrans.o: defined in discarded section `.text' of wiring.c.o (symbol from plugin)
`timer0_overflow_count' referenced in section `.text' of C:\Users\User\AppData\Local\Temp\ccIO2cUw.ltrans3.ltrans.o: defined in discarded section `.text' of wiring.c.o (symbol from plugin)
`timer0_overflow_count' referenced in section `.text' of C:\Users\User\AppData\Local\Temp\ccIO2cUw.ltrans3.ltrans.o: defined in discarded section `.text' of wiring.c.o (symbol from plugin)
`timer0_overflow_count' referenced in section `.text' of C:\Users\User\AppData\Local\Temp\ccIO2cUw.ltrans7.ltrans.o: defined in discarded section `.text' of wiring.c.o (symbol from plugin)
`timer0_overflow_count' referenced in section `.text' of C:\Users\User\AppData\Local\Temp\ccIO2cUw.ltrans7.ltrans.o: defined in discarded section `.text' of wiring.c.o (symbol from plugin)
collect2.exe: error: ld returned 1 exit status
It would be great if there were an ability to restart a task. It should be quite easy (just set the stack to the state after initial creation), but I can't get it working myself.
This would be great for "worker" tasks, which need to be reset if the work changes.
SCoop is almost unusable! Too many problems are missing! I imported the files SCoop. CPP SCoop. H in my project! They are all unusable! Do you need support from other libraries
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.