I ssupect that you probably need to ask this question via the cypress openocd forked repo [1] since this stuff is not in the upstream openocd repo [2]?
[1] https://github.com/cypresssemiconductorco/openocd/issues [2] https://repo.or.cz/openocd.git/tree/HEAD:/contrib/loaders/flash ________________________________ From: Drew Fustini <[email protected]> Sent: Thursday 18 February 2021 21:16 To: Volodymyr Medvid <[email protected]>; Andrii Lishchynskyi <[email protected]>; Bohdan Tymkiv <[email protected]>; Tomas Vanek <[email protected]>; [email protected] <[email protected]>; Spencer Oliver <[email protected]>; [email protected] <[email protected]> Cc: [email protected] <[email protected]> Subject: [OpenOCD-devel] Cypress OpenOCD: how is psoc4_current_write.inc derived? I see that there is a binary blob in openocd/contrib/loaders/flash/psoc4/psoc4_current_write.inc [1]. This data is referred to as containing the programming algorithm when it is included in the p4_current_algo[] array inside psoc_write_inner() [2]. It is then copied into a working area in the target memory. I am confused as to exactly what this is doing. I don't see any place in the psoc4.c code where a SROM request happens for PSOC4_CMD_WRITE_ROW (0x4). Thus I have been trying to understand how the data actually gets written to user flash. I am pretty new to the OpenOCD codebase and I would appreciate any insights you can provide. Thank you, Drew [1] https://github.com/cypresssemiconductorco/openocd/blob/cypress/contrib/loaders/flash/psoc4/psoc4_current_write.inc [2] https://github.com/cypresssemiconductorco/openocd/blob/d526e667dedfdadead74b9ff4292344b07a5af1c/src/flash/nor/psoc4.c#L1186 _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
_______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
