blackmagic-debug / blackmagic

In application debugger for ARM Cortex microcontrollers.
GNU General Public License v3.0
3.21k stars 765 forks source link

Newbie question. How to read/write at particular address ? #716

Closed luqasz closed 4 years ago

luqasz commented 4 years ago

Hi.

For now I am using st-link with st-flash command to read/write flash/EEPROM. How to do the same with BMP ?

UweBonnes commented 4 years ago

Compile BMP-hosted and run "blackmagic

luqasz commented 4 years ago

Thx. And how to read current eeprom/flash content from target ?

UweBonnes commented 4 years ago

Get help with "blackmagic -h" and look for the "-r" option.

luqasz commented 4 years ago

Thx. So it's only available with hosted version ?

UweBonnes commented 4 years ago

There is python script to do so in a limited range in the script directory. What is the problem with hosted?

luqasz commented 4 years ago

I am wondering if I will flash my f3 discovery board with BMP, will I loose ability to read/write at particular address.

UweBonnes commented 4 years ago

Your last posting is totally unclear!

luqasz commented 4 years ago

I have a F3 discovery board with stlink embedded. My concern with BMP (replacing stlink) is:

Is it more clear now ?

UweBonnes commented 4 years ago

Run BMP-Hosted with the recent original ST Link firmware. Then you have choice to use ST software, st-link,pyocd and BMP. An BMP allow all of the above with hosted and the right arguments. BMP firmware only writes ELF files, so to write to a given address you need a fitting elf or hex file.

luqasz commented 4 years ago

Ok, Thx for explanation.