heliosproj / HeliOS

A community delivered, open source embedded operating system project.
http://www.heliosproj.org
GNU General Public License v2.0
352 stars 42 forks source link

HeliOS 0.3.5 cannot compile on ESP8266 #43

Closed sakunamary closed 1 year ago

sakunamary commented 1 year ago

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:

MannyPeterson commented 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);
sakunamary commented 1 year ago

@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)

logoutput.txt

sakunamary commented 1 year ago

Update : I run the same code in arduinoIDE 1.8.19 and arduinoIDE 2.04.Both works .

MannyPeterson commented 1 year ago

@sakunamary

Sorry, not sure what is going on. I test HeliOS on the ESP8266 using PlatformIO. What are you using?

sakunamary commented 1 year ago

@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

MannyPeterson commented 1 year ago

@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!