-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rboot - rebased against latest master #1
base: master
Are you sure you want to change the base?
Conversation
* add caching for multi-byte transfers handle HSPI /CS in examples * push similar code snippets into macro
This change shows the assigned IP address when connected using EUS
Changed wifi.getpymode() into wifi.getphymode()
Fixes nodemcu#1164 and thus also nodemcu#1150, nodemcu#1149, nodemcu#1147 and nodemcu#898. * Move to latest version of SPIFFS * Add SPIFFS porting layer for NodeMCU * Add option to delete output if it doesn't fit * Change FLASHSIZE to be in bits by default: default 4mb 32mb * Add SPIFFS_MAX_FILESYSTEM_SIZE override * Add notes on SPIFFS_FIXED_LOCATION * Add 1M boundary * Include the current version of the LICENSE
* Add pcm module. * Add network streaming example. * document hw_timer dependency with pwm * Add vu peak callback.
* added fadeIn, faceOut and shift to ws2812 module * improvements to rotate, unified fade method shift renamed to rotate and usage of more efficient memory operations. fadeIn and fadeOut unified into fade method with optional parameter for direction. * rename method to "shift" with optional mode parameter
Some virtual hosts break if the port is added in the headers.
* gpio.serout going asynchronous * fixing several issues following PR comments
* update esptool.py to v1.2-dev * add 64 Mbit and 128 Mbit support
The original code did not deal with UDP binding failures, this new code does one random port attempt and then sets port to 0 to get 'OS default' behaviour, and ASSERTs that that has to work. Patch also moves the local UDP port range definition to udp.h from udp.c.
One additional question: the esptool2 - I'm not clear whether it could be replaced (or if the esptool.py; which is undergoing active development could be enhanced). Could you comment on that? |
elf2image is not required in rBoot mode at all. |
My apologies, I'm seeing it is not trivial to see the changes I had to make; my last commit is not important the real question, really, is only the spiffs.c changes in this commit: 0a8a73f |
I found it much easier to reapply the rBoot changes on top of the latest master, rather than merging all the new commits into that branch, but whichever way is easiest for you... |
@raburton why not to use command-line tools like |
I'm sorry (still learning), what is 'stage 2.5'? Is it as simple as extract and hexify? Or is it more involved (if simple, we can do it in many ways; actually esptool.py already has it; there is a proliferation of esptools, to add to my confusion; https://github.com/igrr/esptool-ck is another one) |
There may be lots of other ways to do it, but when I wrote esptool2 there was no good way to generate roms from the compiled elf, it all involved lots of tools and badly written scripts. When I needed to extract a section to a header file I just added the functionality to the tool I was already using for rom building. It works on all platforms too, if you use unix commands will they be available on windows? Standard boot: rBoot boot: As rBoot ultimately needs to load the user app into the same memory it is running from, it has to move its final steps (the actual copy and launch) out to a different area of memory. The tiny bit of code that does that is what I call stage 2.5 |
Definitely no... but yes because firmware compilation on windows requires MinGW at least, or Cygwin in most cases. :) |
I found a problem happened the PWM module that it would be dead code when running it. Do you encountered that problem? Thanks! |
@ymxcc was found this. Change of interrupt type from NMI to FRC1 fixes that. Don't really understood why this happens... |
@djphoenix Correct! I tried to change the interrupt type from NMI to FRC1, it works! if (!platform_hw_timer_init(TIMER_OWNER, FRC1_SOURCE, FALSE)) { This problem was considering in my mind all the time in these days. Follow your idea, it works pretty well! Thanks so much. Before, the original nodemcu firmware that I used on the RGB led worked very well whatever in NMI type or FRC1 type. It could be find the reason why just we need to read the code for NMI type deeply. Anyway, thanks for @djphoenix |
Hi, as part of the review for OTA nodemcu/issues/1496 I rebased your code against the latest master. It compiles successfully, what I had to do:
Could you please check my commit to see if there is anything wrong; especially the spiffs.c? I've left a comment marked 'QQQ'
Also, I'm seeing this warning:
Is it important?
I didn't yet flash the firmware so I don't really know if it works...