|
From: Bohdan T. <boh...@gm...> - 2017-09-22 10:16:23
|
Hello gentlemen, I'm working on NOR flash driver for Cypress PSoC6 family of devices. PSoC6 is a dual-core device with CM0+ and CM4 cores. This device requires special acquisition procedure prior to any Flash operation. Acquisition procedure involves setting breakpoint at arbitrary Flash address. Breakpoint can be cleared after acquisition procedure has been completed. The problem I am facing is that breakpoints-related API provided by OpenOCD is not easily accessible from within Flash driver code. I have to do ugly things like: #include "../../target/breakpoints.h" I would like to ask if it is acceptable to set breakpoints from Flash driver code? If not, what is the correct way/location to implement this "acquisition" code? Thanks in advance, Bohdan |