Faster programming?
#1
Is there a tip to improve the programming time when iterating on the firmware? Currently I am doing

Code:
idf.py build
idf.py flash

and the flash step takes foreverrrrr
  Reply
#2
Hi! You can pass a `--baud` argument to idf.py flash to flash at much higher speeds than the default. 1000000 is usually pretty reliable, but you can push it to 1500000 or even 2000000 if you don't mind occasional flaky flash failures
  Reply
#3
(2025-01-31, 10:17 PM)jacqueline Wrote: Hi! You can pass a `--baud` argument to idf.py flash to flash at much higher speeds than the default. 1000000 is usually pretty reliable, but you can push it to 1500000 or even 2000000 if you don't mind occasional flaky flash failures

Fantastic, thank you. The total time to flash at 2 Mbps is around 60 seconds – does that sound typical?
  Reply
#4
(2025-02-01, 01:51 AM)Schrockwell Wrote:
(2025-01-31, 10:17 PM)jacqueline Wrote: Hi! You can pass a `--baud` argument to idf.py flash to flash at much higher speeds than the default. 1000000 is usually pretty reliable, but you can push it to 1500000 or even 2000000 if you don't mind occasional flaky flash failures

Fantastic, thank you. The total time to flash at 2 Mbps is around 60 seconds – does that sound typical?

Yep, it takes about a minute for me. 2 Mbps may save a few seconds compared to 1 Mbps but it's much less reliable above 1 Mbps.
  Reply


Forum Jump: