Search found 39 matches

by ltmerlin
Mon Jun 01, 2020 4:38 pm
Forum: ESP32 boards
Topic: OTA guide for ESP32
Replies: 4
Views: 3999

Re: OTA guide for ESP32

thanks tve!
I'll give it a go soon.
Keep you posted!
by ltmerlin
Mon Jun 01, 2020 4:36 pm
Forum: MicroPython pyboard
Topic: How to properly increase FLASH_FS on pyboardv11?
Replies: 13
Views: 15707

Re: How to properly increase FLASH_FS on pyboardv11?

thanks for the explanation. the F413 has: MEMORY { FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K /* entire flash */ FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */ FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 176K /* sectors 1,2,3 are 16K, 4 is 64K, 5 is 128K (64K used) for fil...
by ltmerlin
Mon May 25, 2020 8:16 am
Forum: ESP32 boards
Topic: Flash ESP32 from another ESP32
Replies: 2
Views: 2435

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: 4
Views: 3999

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: 2435

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: 13
Views: 15707

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: 13
Views: 15707

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: 4260

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: 4260

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: 7187

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...