Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Flashing microcontrollers

Status
Not open for further replies.
I was thinking of optimizing flashing microcontrollers. I just thought in case if I make very minute change in my software can I flash only that part of software where the changes happened. It will save time and also the flash memory in terms of number of cycles.
 
How frequent will they be?

Is that part of the development or is it during tthe actual use of the application?

For just one or two chips or hundred out there?
 
How do you plan to find which parts changed? It could be a few tweaks here and there and I don´t think any standard tool will be able to do that, and if it will most likely require a lot of scripting to make work.
 
Microchip claims 100,000 read/write cycles. If I reprogram a chip 10x per day, every day, that is 27 years.

John
 
Nearly all software changes end up changing the length of the code, so that all the code after the change would have to me moved up or down anyhow.

More complicated software will put sections of code into blocks for different functions, and those can be flashed separately. Sometimes you get blocks for data separate from code, and if there is a bootloader, that can't overwrite itself. However, any structure like that reduces flexibility.
 
More than the write cycles I want to save time. For flashing it takes about some 5 minutes. The numbers will be in hundreds. More than anything else I want to know the feasibility.
 
5 minutes? Are you writing 10GB?
Really, please tell us what MCU you are writing to, and with what kind of interface you are using.
Bevause writing even a largish MCU flash (which I would consider 1MB) in 300s is so damn slow that some would call it a glacial speed.
 
I am sorry I will verify again since I have two separate tools for flashing. Theoretically how to estimate the time for flashing for example 500kb at a baudrate of 250kbps. The interface I am using is CAN. The hardware is freescale.
 
Status
Not open for further replies.

Latest threads

Back
Top