Hi Alain,

On 10/5/18 2:26 PM, Alain Mouette wrote:
How do I configure (what is the instruction) to only accept connection
to a specific *device id*?
There are two ways to achieve that. One is add a check in the flash driver if 
you want to prevent writing to the flash of a wrong chip. The other is add a 
check in chip config file.

For the first method, you can take a look at the probe function in 
src/flash/nor/stm32f1x.c.

For the second method, you can take a look at the examine-end event callback in 
http://openocd.zylin.com/#/c/4643/8/tcl/target/aducm302x.tcl .

Regards,
Jie


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to