Decawave / mynewt-timescale-lib

Timescale processing library
Apache License 2.0
17 stars 13 forks source link

libtimescale_core.a for ESP32 #6

Open houxn22 opened 5 years ago

houxn22 commented 5 years ago

Hi Paul, I'm using ESP32 as host controller, and it's architecture is Xtensa LX6. I have realized that there is a library named libtimescale_core.a_xtensa at src folder, and form https://github.com/Decawave/mynewt-timescale-lib/issues/1 I already knew that the library is compiled for ESP8266. ESP8266’s architecture is Xtensa L106, slightly different form Xtensa LX6. I have tested the libtimescale_core.a_xtensa library using the code below:

//////////////

include

include "esp_system.h"

include "timescale.h"

void app_main(void) { printf("SDK version:%s\n", esp_get_idf_version()); double x0[3] = {0}, q[3] = {128e6 512 3e-20, 128e6 512 3e-20 0.1, 128e6 512 3e-20 0.01}, T = 1e-6l 0x100000; timescale_instance_t inst = timescale_init(NULL, x0, q, T); printf("inst=%lu\n", (unsigned long)inst); } /////////// The ESP8266's result: inst=1074814716, and it seems all OK. The ESP32's result: inst=0. And when I compile my app , there is some warnings like below: "libtimescale_core.a(timescale.c.obj): warning: incompatible Xtensa configuration (ABI does not match)" It seems that the library is not compatible with ESP32's architecture.

Then, can you please provide the libtimescale_core.a for ESP32 ? The ESP32's SDK is not under the mynewt framework. For the toolchain, please refer this link https://docs.espressif.com/projects/esp-idf/en/latest/get-started/linux-setup.html

Than you very much!

yanxuex commented 5 years ago

@pkettle We had the same problem. Timescale_xtensa is compiled using ABI=CALL0 only for ESP8266. Can you help me to recomplie Timescale_xtensa use ABI=WINDOWED for ESP32 ?

Thank you very much!

berry0511 commented 4 months ago

@pkettle @ncasaril @AnanthaRaman-93 Hi~ Would you please compile a version for Xtensa LX6 and Xtensa LX7? That will be huge help for us! Thask alot!