Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi Alec,alec_t said:... a code section to replace/augment/modify an existing (possibly buggy) section.
Eric said:I understand it as 'glue code' used to enable two subroutines of a program the ability to interact.
Usually added when an existing program is upgraded or extended.
Could be anywhere...ROM, EPROM, RAM, text.Are you referring to Code Section in ROM that needs to be modified?
EPROM/Flash can.Can ROM be re-burnt?
hi,Eric, could you please re-explain your first line?
I didnt understand it.
No it must be replaced, It is Read Only Memory.(Can ROM be re-burnt?)
how can it be in RAM?Could be anywhere...ROM, EPROM, RAM, text.
Eric said:hi,
A simple example would be:
Consider you have a working existing program that requires upgrading, say then you want to add a UART option.
The format of the data in the current program may not be directly compatible for serial data transmission, so you would add a 'patch' that would convert
the data to and from the existing program to the UART code subr.
E
4pryos said:No it must be replaced, It is Read Only Memory.
A PROM can be reprogrammed.
hi,
A simple example would be:
Consider you have a working existing program that requires upgrading, say then you want to add a UART option.
The format of the data in the current program may not be directly compatible for serial data transmission, so you would add a 'patch' that would convert
the data to and from the existing program to the UART code subr.
E
hi T,
I am talking from the days long before 'C' and Assemblers were available ie: programming in Machine Code.
We used patch's to 'join' sections of debugged [working] machine code together, in those days it was not possible to add a line of code and then either assemble or compile into a new program.
I guess over the years meanings change as well as new 'words' being created.
Eric
EDIT: Wikipedia has some interesting info:
"Historically, software suppliers distributed patches on paper tape or on punched cards, expecting the recipient to cut out the indicated part of the original tape (or deck), and patch in (hence the name) the replacement segment."
How does one place Code in the Processor's RAM?
If the code is already in the flash, then it would be useless to copy it to RAM. Just execute the code from the flash.Is the programmer firstly burn the code to a Programmable Flash, which copies the Code to RAM?
electroRF said:When working with ROM, the Patches will of course be written in RAM.
Yes, I don't see any sense using patches (updating small parts of firmware) in small embedded devices.. just do a full firmware update.Now, it's simply a "Firmware update".
Yes, I don't see any sense using patches (updating small parts of firmware) in small embedded devices.. just do a full firmware update.
Patches today are meant to be used with very large software projects with many programmers involved. Linux is a good example of this.
That is so disturbed... in many levels..When you're working with ROM, you don't have a choice but to use patches and jump to the RAM when u encounter bugs