This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am using AM-263px EVM.
Is there any way to read external flash memory (OSPI) contents via CCS memory browser?
My aim is only to read the contents.
Thanks,
Yogini
AM-263px EVM supports JTAG and USB communication. So, you have to use these interfaces to communicate with CCS.
I have tried to run the flash_dia example with CCS on EVM and then I tried to read the memory location 0x80000 with memory browser. I do not see valid data there. With example, there is implementation to write data in the memory . But memory contents at the above location appears to be zero.
Please let me know if I am following correct procedure or not.
why you read the memory location msram 0x80000? i mean in the example, it is very clear that it will write into flash at offest 0x80000.
I mean for you, you should read ram address of gOspiRxBuf, you will see you data.
Needless to say, msram is started from 0x70000000, if you don't use ddr. so your varaible gOspiRxBuf should be some where near 0x70000000,
to check, you can use DebugP_log("%x", gOspiRxBuf); to print read data.
Thanks.
As mentioned earlier as well, my aim is to read external flash contents.
As per your previous reply, on "How to read the contents of External Flash (OSPI)?", It is possible to read it via CCS. Hence, I was trying the same.
Please let me know the detailed procedure to read the OSPI flash contents on EVM board.
As for my understanding, CSS may not be show external flash address directly. However, you can load your flash content into a intermediate buffer, From that buffer, you can see the content.
eg: in the example that you showed, it reads data into gOspiRxBuf buffer. So you only need to display the content of the gOspiRxBuf.
How to program evm board to read flash content into buffer?
ospi_init()
ospi_open()
also check this thread.
Thanks.
By the way, I am not ti guys. I am a developer like you, but we are using the same dev board.
Hi Yogini Joshi,
You should read at 0x60000000 + offset. The 0x60000000 is the flash address map.
For read via CCS, you must also ensure DAC or Direct Access is enabled in OSPI registers. DAC is enabled in Flash_Read APIs as well.
In case you want some help with troubleshooting - https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1230063/faq-mcu-plus-sdk-am243x-faq-how-to-debug-develop-migrate-the-flash-driver-for-custom-flash-on-non-ti-evm-ospi-xspi
The device intended in this FAQ is AM243x which is not same as AM263Px but the controller happens to be the same IP.
Best Regards,
Aakash
Thank you for your suggestions. But I needed the interface to read contents.