-
Notifications
You must be signed in to change notification settings - Fork 29
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
Debugging environment proposal #10
Comments
Hello David,
Any ideas? |
You should import submodules with |
OK for linux/mock environment but on the esp8266 itself -- don't I need them if a PROGMEM string is output? Or do the printf* functions in the esp8266 core some magic internally if they detects that the pointer directs to flash memory? |
Ok thanks, now I'm able to compile. This mock environment is pretty cool! ;-) I noticed a lot of
output, indicating that some (mock) parts are missing. I'm not quite sure, how to debug further: if I run the compiled program and upload a small file (as little as 10 bytes ... 10k) the program either works as expected or the ftp server loops forever in |
I tried with the mock environment to try to find out the issues I have on the esp itself.
What do you mean by "either", is it predictable ? |
I don't think so, |
I had the "stuck in processCommand" situation once, don't know how to reproduce. For now, it either works (small files) or just doesn't start at all (no data seem to be exchanged at all) So yes in a way, it seems predictable: small files get sent, large files just don't even start to get sent. |
Only in mock environment ? |
Yes, only in mock environment. On a real ESP8266, I get e.g.
To me that looks like it's doing fine. I'm using "v2 - Lower Memory" compile option. |
Although... there seems something wrong if I put an 1M file:
The ftp client sucessfully transfers - on the client side a 0 byte file is created.... will investigate. |
If I put e.g. 512k (5121024) bytes (which works ok) and after that put 525312 (5131024) the file still stays 512k bytes in length - I'm starting to believe, this is some of problem with LittleFS?!?
|
OK, this is obviously due the fact to that LittleFS does COW, so when overwriting a file it could use up to 2xfilesize and in all my tests I exhausted space on the FS... see littlefs-project/littlefs#123 I opened an issue: esp8266/Arduino#7426 |
Hello,
Once esp8266/Arduino#7404 is merged,(merged)if you are tunning linux, (or WSL on windows),
you can run your ftp example on your PC and use host debug tools.
I have tried with
ftp
cmdline client and littlefs-ftp-server: it works with little files but not big ones (600KB), failing log:(on both esp and emulation environment)
IMPORTANT: you must replace all your
%S
by%s
(and you can leave them like that) (they are very harmful for linux'sprintf
, and man page advise to not use them).To run the emulation environment,
provided the above PR is merged andif you use esp8266 git master version,port will be 9021 (not 21)
The text was updated successfully, but these errors were encountered: