-
Notifications
You must be signed in to change notification settings - Fork 169
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
esp hosted fg error with -84 #242
Comments
Send us setup image. Please go through https://github.com/espressif/esp-hosted/blob/master/esp_hosted_fg/docs/Linux_based_host/porting_guide.md to understand things required while porting sdio for FG software. Is the NG worked earlier and FG only is not working? |
Yes NG worked earlier now I want softap mode so I moved to FG. |
did you try to tune sdio timing https://github.com/espressif/esp-hosted/blob/master/esp_hosted_fg/docs/Linux_based_host/porting_guide.md#242-sdio? |
Can you please send the patch for esp hosted fg sdio timing -SDIO_SLAVE_TIMING_NSEND_PSAMPLE. |
Hello @gauthamikosanam We used to provide the binaries as ESP side code was not open sourced. SDIO setup document is at https://github.com/espressif/esp-hosted/blob/master/esp_hosted_fg/docs/Linux_based_host/SDIO_setup.md Anyway, Please check the full FG documentation at https://github.com/espressif/esp-hosted/tree/master/esp_hosted_fg with keeping SDIO_only mode in mind. We try to keep documentation as small as possible and up to date. |
I have flashed the sdio only binary files to esp32 module and can you set the sdio timing to SDIO_SLAVE_TIMING_NSEND_PSAMPLE and send the patch,because previous also for NG you have send the patch for sdio timing.Then I can able to communicate between host and esp module. |
Hello @gauthamikosanam , Base Hosted git commit is expected to be 11e90f1 |
please help close this issue. |
Hi Yogesh,
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER. -- Configuring incomplete, errors occurred! |
As my earlier comment I had mentioned, please use base commit as 11e90f1 Can you show output of Also, I see your current folder is <esp_hosted_fg/esp/esp_driver/network_adapter> which is not matched as per documentation. should have followed the exact steps. |
also make sure you have C compiler installed where you are trying to build. |
Hi Yogesh, |
ESP-Hosted-FG building procedure.
|
Hi yogesh, Any suggestion for this error? |
This is fixed on master, please do |
Done with git pull,still I am getting the errors. |
Ignore above comment. I am surprised how one symbol is visible and other is not. |
No local changes , I am compiling the host_driver/esp32/Makefile |
Question remains the same, esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/sdio/esp_sdio.c Lines 73 to 75 in 0702eda
In above code, how ESP_VENDOR_ID and ESP_DEVICE_ID_1 is visible and ESP_DEVICE_ID_2 is not visible? esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/sdio/esp_sdio_decl.h Lines 80 to 92 in 0702eda
|
please post your rpi_init.sh output Use $ bash -x rpi_init.sh |
Getting ESP_VENDOR_ID,ESP_DEVICE_ID_1 and ESP_DEVICE_ID_2 errors
|
In rpi_init.sh file kept esp slave chipset to esp32 and run the command bash -x rpi_init.sh |
#242 (comment)
Apart from that, etc errors are reported, take care of them, to choose correct paths for cross comiplation. |
Hi Yogesh, |
Check suggestions in old bug of yours and try again. Specially wrt timings |
How can I change the sdio timings? |
Have you checked this comment: #242 (comment)? |
Hi Yogesh,
Setup Done-- Configuring done |
Alternatively, if you plan to reuse existing IDF, you can change the sdio file with changed timing. And in existing IDF environment, We will take this input to improve to allow changed files in cmake. |
Hi @mantriyogesh ,
--> it is connected internet. not sure what is the dependency. Alternatively, if you plan to reuse existing IDF, you can change the sdio file with changed timing. And in existing IDF environment, $ idf.py flash monitor
Done with git add and commit #if defined(CONFIG_IDF_TARGET_ESP32) |
For 1-bit sdio,changed the boot/config file and run the hsot to esp rawtp, this is the log. esp flashed with fg-->np timing-->host to esp esp flashed with fg-->np timing-->host to esp |
Also send in opposite directions (ESP to Host) |
[ 183.618165] esp_handle_isr: CMD53 read/write error at 137 and tells that your sdio is not stable. With wires:
What happens if you do not use np timings? does it work or fail? |
What happens if you do not use np timings? does it work or fail? |
also connect as many grounds you can connect. What all the lines for 1 bit mode are connected? |
What all the lines for 1 bit mode are connected? |
okay. seems fine. DAT3 at slave has to be pulled-up (see reference : https://github.com/espressif/esp-idf/blob/master/examples/peripherals/sdio/README.md), which I suppose you have pulled-up. Did you connect as many ground as possible? ESP32 has 3 grounds. can be all connected to different pins of host ground. |
I connected 3 grounds now. If I connect clock spped ->5 * 1000000 esp flashed with fg-->np timing-->esp to host esp flashed with fg-->np timing-->host to esp |
4- bit sdio log. |
unless the raw throughput works reliably, doesn't make any sense to run any other scenarios. once you fix the timing, clock etc run tx and rx reliably, then can try the scenario. |
Also it should be really easy to get the pcb done with external pull-ups on board. |
Focus on getting 1 bit mode up. with wires setup, that would be baseline I can think of. |
if you are sure raw throughput works with rx and tx, then only proceed. If the transport is fine, issue is in networking. |
When I connect to the mobile, could not connect to network, pop up message I am receiving. |
There are two possibilities:
If this works, you would be sure if Hosted layer is fine. You can also take wifi sniffer log, which will tell info abt over the air msgs. |
Hi Yogesh, |
I did not quite understand what you meant.
Is it pinging from mobile (station) connected to AP in static IP reliably? |
you meant using FG with softap, I assume. Sure. Once static IP works reliable, DHCP should be easy task to be done. There are many DHCP server providers, you can choose any one based on its software availability and support on your platform. |
Hi Yogesh, |
Okay. I am not sure about your use case for Softap mode. Anyway, from static IP side perspective, everything you have tested, seems to be okay. |
Is there any possibilty to use wpa_supplicant process in FG driver? |
This is where functionality difference. FG is way to use/maintain Wi-Fi right through application using APIs/function-calls. To answer to your question, No we don't have so, as it is designed in that way. |
Hi Yogesh, |
I assume this thread is resolved. Can you please file another issue for this? To answer the question you had raised, Can you please let us know the host type you are using? Linux / MCU? By arm processor, I am biased toward Linux based host. In case of Linux based hosts, cmsis_os.h should not be needed at all. That is only required for MCU based hosts.
|
Hi
I am using arm cortex a5d2x microprocessor as host and esp32 module as slave. In between this communication I am getting error.
I have used fg 0.0.5 version and compiled in kernel and flashed the respective binaries in esp 32 module.
Attaching the logs for both host and esp ,please let me know the solution.
host_fg.txt
esp_fg.txt
esp_sdio: probe of mmc0:0001:1 failed with error -84
The text was updated successfully, but these errors were encountered: