-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best method to erase code flash memory? #148
Comments
Hm. I'm not sure what the best way is. What happens if you try the aforementioned? |
As you know, when a flash is erased, all the bits are set to 1.
Instead of one erase operation. |
Looks like #154 is related to this. |
I'm not sure. |
This enables programming the chip without having to erase the entire contents. Instead, JLink will erase where needed while retaining the data that's within the same sectors but outside of the specified write area. Closes square#154, square#148
This enables programming the chip without having to erase the entire contents. Instead, JLink will erase where needed while retaining the data that's within the same sectors but outside of the specified write area. Closes square#154, square#148
This enables programming the chip without having to erase the entire contents. Instead, JLink will erase where needed while retaining the data that's within the same sectors but outside of the specified write area. Closes square#154, square#148
This enables programming the chip without having to erase the entire contents. Instead, JLink will erase where needed while retaining the data that's within the same sectors but outside of the specified write area. Closes square#154, square#148
This enables programming the chip without having to erase the entire contents. Instead, JLink will erase where needed while retaining the data that's within the same sectors but outside of the specified write area. Closes square#154, square#148
Remedy should be available in |
Hi,
On my device, flash memory is from 0x00000000 to 0x1fffffff.
Flash allocated to source code is only from 0x00000000 to 0x00100000.
erase() method will erase the whole flash memory.
What it the best method to only clear flash dedicated to source code?
Here is the source code I am using.
flash_address, flash_size = self.get_radio_board_flash_info()
data = [0xFF] * flash_size
self.jlink.flash_bytes(data, flash_address)
The text was updated successfully, but these errors were encountered: