Hi A.Kathirkamu,
How did you store the arrays in the FLASH?
If you want to define the arrays in the defined FLASH, you need to modify the ld file at first, just define the according flash address, and the sector.
Now take the KL series as an example, K series is the same.
1. define the memory myrom in the .ld file.

2. Define SECTORS

3. define the array in teh main code
__attribute__((section (".romsymbols"))) char test[4] ={0x55,0xAA,0x55,0xaa};
4. check the map file
.mycode 0x0001e000 0x4
0x0001e000 __ROM_SYMBOLS = .
0x0001e000 . = ALIGN (0x4)
*(.romsymbols)
.romsymbols 0x0001e000 0x4 ./Sources/main.o
0x0001e000 test
0x0001e004 . = ALIGN (0x4)
This indicate the according array is defined in the myrom flash address.
Wish it helps you!
If you still have question, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------