Closed sakunamary closed 1 year ago
@sakunamary
I am not sure what compiler the ESP8266 is using, but HeliOS should compile just fine. To deal with the error, can you try casting the task name as shown below?
xTask GetThermoTask = xTaskCreate((const unsigned char*) "THERMO",taskThermo_Get,&BT_ArrayIndex);
@MannyPeterson
Here is the log output that casting the task name in your way ,result is not working .I will try in ARDUINO IDE later .
In PlatfromIO esp8266 use framework-arduinoespressif8266 @ 3.30002.0 (3.0.2) toolchain-xtensa @ 2.100300.210717 (10.3.0)
Update : I run the same code in arduinoIDE 1.8.19 and arduinoIDE 2.04.Both works .
@sakunamary
Sorry, not sure what is going on. I test HeliOS on the ESP8266 using PlatformIO. What are you using?
@sakunamary
Sorry, not sure what is going on. I test HeliOS on the ESP8266 using PlatformIO. What are you using?
FYI:
I am using: VSCODE version: 1.75.1 (Universal) 提交: 441438abd1ac652551dbe4d408dfcec8a499b8bf date: 2023-02-08T21:34:59.000Z Electron: 19.1.9 Chromium: 102.0.5005.194 Node.js: 16.14.2 V8: 10.2.154.23-electron.0 OS: Darwin x64 22.3.0
PIO IDE: ver:3.4.3 PIO core :ver6.16
On a MacBook Pro with intel cpu
@sakunamary
I will add this to the development backlog and will test when HeliOS 0.4.0 releases which is soon. Thanks for brining this to my attention!
Hi guys: i am trying to compile the following code in vscode+platfromIO : code.zip Not success, here is the output
PLATFORM: Espressif 8266 (4.1.0) > WeMos D1 R2 and mini HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:
~~~In file included from src/main.cpp:4: lib/HeliOS/src/HeliOS.h:1194:32: note: initializing argument 1 of 'Taskt xTaskCreate(const xChar, void ()(xTask, xTaskParm), xTaskParm)' 1194 | xTask xTaskCreate(const xChar name, void (*callback)(xTask task, xTaskParm parm), xTaskParm taskParameter); |
~~~^~~ The same code in LGT8F328P is OK and working well ... Please have a check ! Thank you very much!