Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtimescale_core.a for ESP32 #6

Open
houxn22 opened this issue Apr 11, 2019 · 2 comments
Open

libtimescale_core.a for ESP32 #6

houxn22 opened this issue Apr 11, 2019 · 2 comments

Comments

@houxn22
Copy link

houxn22 commented Apr 11, 2019

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 #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 <stdio.h>
#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
Copy link

yanxuex commented May 16, 2019

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants