I want to test external DRAM and NOR flash connected to TMS570 by EMIF.
DRAM is working correctly. I wanted to know how to test my NOR flash. I am using HALCOGEN for code generation.
My safety micro is connected to Async1 and its memory is defined as 0x60000000.
First I initialized Async1 by calling emif_ASYNC1Init();
Then I used following code for writing and reading from NOR flash.
{
unsigned short *NORF_ptr = ( unsigned short *)0x60000000;
unsigned short Read_back_data;
*NORF_ptr = 0x1234;
Read_back_data = *SRAM_ptr;
}
I am not getting the value 0x1234 in Read_back_data variable. Also checked the memory locations, it shows data like 0000E040
So I would like to know whether my testing method is correct or not.
If the testing method is correct then it may be the configuration issue.