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
