-
Notifications
You must be signed in to change notification settings - Fork 53
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
Can't follow readme please help #15
Comments
Hello. |
Thanks for getting back to me. No unfortunately I couldn't get it up and running. Does it have to be installed in $HOME? I think my issue is that I don't understand conceptually what each step is doing and how they interrelate. Especially the use of qemu_esp32 directory twice. The last step I then don't understand is what I need to do to my existing project to get it to run and debug using this. E..g I was looking at $IDF_PATH/examples/protocols/coap_client and voap_server. When I run QEMU it core dumps so suspect I have mixed up the bin files or something. Sorry if I am being dozy |
Hi, I have just retried the steps in the readme and ended up with Having completed steps 1 to 6 above, when I run step 6 I get the following core dump
Any ideas? |
Sorry forgot to mention. In the readme it mentions to watch out or hard coded paths in the to flash.c file. I can see some commented out ones at the top but everything else looks like they are fine as relative to the directory in which it is installed. Have I missed something. |
It is working. Only the emulated network part seems to have an issue. Networking support There exists networking support of an emulated opencore network device, To get emulated network to work with 3.1 version of esp-idf you must patch esp-idf components/lwip/port/freertos/sys_arch.c |
Thanks for getting back to me so quickly Looks like our messages crossed :). I am using the latest version of IDF 3.3. Do I still need to apply the patch? Assuming I get this working , how do I go about getting another project working ? I guess I am missing the link between what I run in step 6 and the compiled eso32 program (eg the elf file) |
Hi, I have applied the patch and have made some progress. So far I have this....
Is this correct?
There is no change to window 1. Any thoughts on how I might get one of the ESP32 examples up and running with this? Thanks in advance for your help Lee. |
Yes. You are doing it correctly. In the other window after the debugger is connected do |
Thanks. I do start QEMU first but from the last line of the debug log, it seems to say it fails to connect to 1234 so assumed that meant couldn't connect to the QEMU? |
yes. you probably forgot -s |
xtensa-softmmu/qemu-system-xtensa -d guest_errors,unimp -cpu esp32 -M esp32 -m 4M -s -S > io.txt |
OK. I just checked out v3.3 I noticed one difference that also could be important |
Ah yes I didn't add the -S so assume it just run to completion before I fired up the debugger? I had assumed the QEMU process would terminate. I will try again Couple of follow up questions
Thanks for all your help Lee. |
Looks like our posts crossed. Assuming I can get this up and running later, if you would like me to run any tests my side please shout. |
Hello. |
I tested wit v3.3, It seems to work OK. Reading symbols from build/app-template.elf...done. |
Thanks for getting back to me. In the new directory, do I need anything other than the esp32flash.bin file? So it sounds like I can debug them on different ports but wasn't sure of the implication of your statement about serial emulation. Does this mean that they should talk to each other via the wireless drivers but not if anything is going via the serial port (eg logging)? As an example, I am trying to get an app I have written using espnow and espmesh to work. If this could work I could simulate a much bigger network than I have physical devices. |
Thanks for doing the test. Assume it still needs the patch to work? What is the implication of commenting out the line? Worried it might cause me issues on the other projects I am working on |
No. I would not expect any of the wifi stuff to work. I have provided some networking support but it uses a virtual driver. |
|
Ok thanks. Will try a simple example just to see if I can get it to work. For my project, I will need network support to enable the esp32's to talk to each other using mesh / espnow. I believe both use UDP under the covers so it would need this to be emulated. Lack of IP connectivity I could work around. Is there a plan to emulate the network layers in the future as given the IoT nature of the chips would have thought about this would be a popular option. I think what you have has a lot of benefits and a great opportunity. |
Hi,
I have my esp IDF stored in /opt/esp/esp-idf. So for step 1 from within /opt/esp I clone the repository and make it so end up with 2 new directories
/opt/esp/qemu_esp32
/opt/esp/qemu-xtensa-esp32
step 2 then puts the bin files in qemu_esp32
Step 3 - I am unclear what directory it assumes I am in to run cd esp. In my example does it assume I should be in /opt and therefore cd esp takes me to /opt/esp? If so, doesn't the clone conflict with step 1?
I have tried doing step 3 in ~ instead so it doesn't conflict but that doesn;t seem to work either.
I guess my challenge is I don;t quite understand what the steps are doing and therefore follow what I need to do - sorry.
Any help greatly appreciated.
thanks
Lee.
The text was updated successfully, but these errors were encountered: