The Flash Programming Algorithm function 'Init' is described in this document:
https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/algorithmFunc.html#Init
The parameter 'clk' is described there as 'clock frequency', but it is unclear if the CPU clock or an external clock is meant. Only a few Flash algorithms use this second parameter as an external clock value. However, with our current implementation of µVision and Keil Studio, this parameter is not set to a useful value. µVision currently passes the value 12.000.000 and the Keil Studio (piOCD) passes the value 0.
I think we should mark this parameter as deprecated in this specification, and we should check which Flash algorithms are using it. One example is the Renesas RA6M1/2/3 Flash algorithm.
The Flash Programming Algorithm function 'Init' is described in this document:
https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/algorithmFunc.html#Init
The parameter 'clk' is described there as 'clock frequency', but it is unclear if the CPU clock or an external clock is meant. Only a few Flash algorithms use this second parameter as an external clock value. However, with our current implementation of µVision and Keil Studio, this parameter is not set to a useful value. µVision currently passes the value 12.000.000 and the Keil Studio (piOCD) passes the value 0.
I think we should mark this parameter as deprecated in this specification, and we should check which Flash algorithms are using it. One example is the Renesas RA6M1/2/3 Flash algorithm.