2020-05-20 05:51 AM
I have bunch of M24C02 eeproms in some old equipment that I would like to reprogram. I have an ST-Link/V2 installed on an laptop running Windows 10. It has the STM32 STLink driver installed. I also have installed ST Visual Develop. Using this set of software/hardware how shall I proceed to read/write this memory?
I believe I should hook up the devices according to this diagram
Solved! Go to Solution.
2020-05-20 08:14 AM
There are plenty of options:
Andy
2020-05-20 07:25 AM
What makes you think you can read/write an I2C EEPROM with ST-LINK ?
I am not aware that ST-LINK can provide I2C signals on SWCLK and SWDIO.
Andy
2020-05-20 07:31 AM
I am probably mistaken. I googled M24C02 programmer, and this came up.
Have you got a suggestion for a programmer that will do the job?
2020-05-20 08:14 AM
There are plenty of options:
Andy
2020-05-23 02:08 PM
If you really want to employ an ST-Link for this job - well, attach any (yes, any will do, even an STM32G030J6, even a Cortex-M of another manufacturer) STM32 device to your STLink and then use OpenOCD with this patch: http://openocd.zylin.com/#/c/4760/
Although your application was not the original target for this patch, it will do the job. But if you're not familar with building and using OpenOCD on your own, you'll have to invest some amount of time, so other alternatives (as indicated below) might be more feasible.