jensh / copythreads Goto Github PK
View Code? Open in Web Editor NEWA lightweight threading library for microcontrollers
License: GNU Lesser General Public License v3.0
A lightweight threading library for microcontrollers
License: GNU Lesser General Public License v3.0
Hi
I would like to use CopyThreads but get the following exception (continuously) when running on NodeMCU (12-E) 8266 (flashed for Arduino IDE c++). I used your blink example verbatim.
Thanks
Daniel
14:22:40.230 -> LED1 HIGH67
14:22:40.247 ->
14:22:43.397 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
14:22:43.431 ->
14:22:43.431 -> Soft WDT reset
14:22:43.442 ->
14:22:43.442 -> >>>stack>>>
14:22:43.446 ->
14:22:43.446 -> ctx: cont
14:22:43.453 -> sp: 3ffffdd0 end: 3fffffc0 offset: 01a0
14:22:43.473 -> 3fffff70: 00000000 feefeffe 40201298 40201280
14:22:43.492 -> 3fffff80: 3fffdad0 00000000 3ffee4d8 40201126
14:22:43.515 -> 3fffff90: 3ffee588 00000000 3ffee574 4020144e
14:22:43.540 -> 3fffffa0: feefeffe feefeffe feefeffe 40201cf4
14:22:43.564 -> 3fffffb0: feefeffe feefeffe 3ffe85d8 40100bc9
14:22:43.592 -> <<<stack<<<
14:22:43.596 ->
14:22:43.596 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
14:22:43.635 ->
14:22:43.640 -> ets Jan 8 2013,rst cause:2, boot mode:(3,6)
14:22:43.664 ->
14:22:43.664 -> load 0x4010f000, len 3460, room 16
14:22:43.681 -> tail 4
14:22:43.697 -> chksum 0xcc
14:22:43.705 -> load 0x3fff20b8, len 40, room 4
14:22:43.807 -> tail 4
14:22:43.807 -> chksum 0xc9
14:22:43.814 -> csum 0xc9
14:22:43.820 -> v00042290
14:22:43.825 -> ~ld
14:22:43.830 -> LED1 HIGH67
14:22:43.846 ->
14:22:46.725 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
Hi, I am testing few libraries to find one that works on Sparkfun Artemis modules. I am getting an error on wait:
In file included from d:\Documents\Arduino\libraries\CopyThreads\examples\CTBlink\CTBlink.ino:26:
d:\Documents\Arduino\libraries\CopyThreads\src/Cth.h:146:7: error: 'static void CthClass::wait(int (*)(long unsigned int), long unsigned int)' cannot be overloaded with 'static void CthClass::wait(int (*)(long unsigned int), long unsigned int)'
void wait(int (*condition)(unsigned long), unsigned long arg) {
^~~~
d:\Documents\Arduino\libraries\CopyThreads\src/Cth.h:113:7: note: previous declaration 'static void CthClass::wait(int (*)(long unsigned int), long unsigned int)'
void wait(int (*condition)(unsigned long priv), unsigned long priv) {
^~~~
exit status 1
Error compiling for board SparkFun Artemis Module.
Is this because something is missing on the artemis boards implementation?
When I build for adafruit_feather_nrf52840 there is a conflict with the declaration SchedulerRTOS Scheduler
in rtos.h
.
I tried to wrap CopyThreads classes in their own namespace without being able to override the default.
If this issue is interesting, I can help with a solution.
When I try compiling the example program CTBlink.ino to my arduino nano it works just fine. But, when I changed the board in Tools settings to Atting85 I get this error:
C:\Users\Userl\Documents\Arduino\libraries\CopyThreads\src\Cth.cpp: In function 'void loop()':
C:\Users\User\Documents\Arduino\libraries\CopyThreads\src\Cth.cpp:70:6: error: 'serialEventRun' was not declared in this scope
if (serialEventRun) serialEventRun();
^
exit status 1
Error compiling for board ATtiny25/45/85.
Is there any solution or bit of code that I can use to fix this issue?
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.