Hi Stefano, I have seen the effort it requires to perform protocol switching implementation. Amidst other high priority issues, I cannot spend sometime to implement this. But I can suggest you the method so that you can go ahead and try it on your own. Please build a simple application like ospi_flash_io which comes with the MCU PLUS SDK installer and can be found under examples/drivers/ospi directory. Once you build it, go through one of the generated files named as ti_board_open_close.c. Here you will come across flash configuration values defined, for the specific protocol the user has set in the SysConfig. So the flash configuration values defined in this file, is tied to to a protocol and if you change the protocol, a whole new flash configuration value will be generated in this file. So you need to make sure that when switching protocols, make sure to change these configuration values for the new protocol you are about to ask the OSPI Controller and Flash to operate in. Here is a pseudocode: Drivers_open(); Board_driversOpen(); Now you have a protocol P1 defined and set, you do some operations with this using Flash_write and Flash_read. At this point you want to switch the protocol to P2. Board_driversClose(); Drivers_ospiClose(); Redefine the flash configuration values in the file ti_board_open_close.c to make sure the new values are at par with the protocol P2. Drivers_ospiOpen(); Board_driversOpen(); Now you perform Flash_write and Flash_read with new protocol P2. Board_driversClose() Drivers_close() Regards, Vaibhav
↧