Search found 27 matches

by ltmerlin
Mon May 25, 2020 8:16 am
Forum: ESP32 boards
Topic: Flash ESP32 from another ESP32
Replies: 2
Views: 266

Re: Flash ESP32 from another ESP32

I'll keep you posted :) I'm first looking into OTA... copying the firmware from one ESP32 to the other and try to activate it. But the problem still stands as we still need to be able to flash the virgin second ESP32. I will have to write the flashing tool code from scratch like what we could call u...
by ltmerlin
Mon May 25, 2020 8:11 am
Forum: ESP32 boards
Topic: OTA guide for ESP32
Replies: 1
Views: 305

OTA guide for ESP32

Is there some official documentation on updating firmware of an ESP32 "over-the-air". If I build the firmware I have either one complete firmware.bin or the pieces bootloader.bin, application.bin and partitions.bin. Which of these do I need for an OTA? I'm not sure what needs to be copied to the OTA...
by ltmerlin
Sun May 24, 2020 9:09 pm
Forum: ESP32 boards
Topic: Flash ESP32 from another ESP32
Replies: 2
Views: 266

Flash ESP32 from another ESP32

Does anyone have experience with flashing an ESP32 from another ESP32? I'm using 2 ESP32 boards for a project with only one usb socket for flashing (using standard usb-serial ic). Suppose we can flash one ESP32 via the USB-serial, how can we flash the second ESP32 using the first ESP32? Since the es...
by ltmerlin
Sun May 24, 2020 8:55 pm
Forum: MicroPython pyboard
Topic: How to properly increase FLASH_FS on pyboardv11?
Replies: 2
Views: 652

Re: How to properly increase FLASH_FS on pyboardv11?

thanks, I indeed had to look at the sector sizes.

I also had to change this in the flashbdev.c:

Code: Select all

#define FLASH_MEM_SEG1_NUM_BLOCKS (992) // sectors 1,2,3,4,5,6,7: 16k+16k+16k+64k+128k+128k+128k=496k
I'm not sure why I had to double the value (here 496k) to 992 to get the right number of blocks...
by ltmerlin
Fri May 22, 2020 10:17 am
Forum: MicroPython pyboard
Topic: How to properly increase FLASH_FS on pyboardv11?
Replies: 2
Views: 652

How to properly increase FLASH_FS on pyboardv11?

Can someone point me in the right direction to increase the FLASH_FS of the pyboardv11? If have changed the origin of the FLASH_TEXT and the corresponding LENGTHs in stm32f405.ld file: /* Specify the memory areas */ MEMORY { FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K /* entire flash */ FLASH_I...
by ltmerlin
Fri Apr 17, 2020 8:15 am
Forum: General Discussion and Questions
Topic: Can there be 2 python programs running at the same time?
Replies: 8
Views: 441

Re: Can there be 2 python programs running at the same time?

thanks for the replies! So in regular pre-emptive multithreaded programming, your code can be interrupted anywhere, so the first case is important. (This is why a concurrent Queue data structure would need locking). But with asyncio, other code can only run when you say it can. Do you mean that I ca...
by ltmerlin
Thu Apr 16, 2020 6:01 pm
Forum: General Discussion and Questions
Topic: Can there be 2 python programs running at the same time?
Replies: 8
Views: 441

Re: Can there be 2 python programs running at the same time?

@pythoncoder first, thanks for starting the fresh updates on the uasyncio v3 tutorial in your golden repo . While I am getting the hang of it, I do not understand the use of a Lock in async programming. I have used Locks in threading applications, but since everything in async code is running in one...
by ltmerlin
Wed Apr 01, 2020 1:38 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - StreamReader not found ?
Replies: 17
Views: 726

Re: uasyncio - StreamReader not found ?

Thanks for your reply. It was indeed confusing :-)
I was wondering if this new implementation of uasyncio could be a replacement of the very good fast_io variant of Peter Hinch https://github.com/peterhinch/micropyth ... ASTPOLL.md...
by ltmerlin
Sun Mar 29, 2020 12:54 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - StreamReader not found ?
Replies: 17
Views: 726

Re: uasyncio - StreamReader not found ?

Yes in the tagged release v1.12 StreamReader and StreamWriter are present, but I am talking about the latest Micropython commit where PR5332 ( https://github.com/micropython/micropython/pull/5332 ) was merged. And there is no StreamReader nor StreamWriter. Is it the intention to leave it out in the ...