Hi @rajtend,
How are you accessing the arrays? Are I tried to recreate the issue, but I am not able to; it works OK for me. I have the following arrays as global variables:
AT_NONCACHEABLE_SECTION_ALIGN(double arrA[100], 8);
AT_NONCACHEABLE_SECTION_ALIGN(uint32_t arrA1[100], 8);
AT_NONCACHEABLE_SECTION_ALIGN(double arrB[100], 8);
AT_NONCACHEABLE_SECTION_ALIGN(uint32_t arrB1[100], 8);
AT_NONCACHEABLE_SECTION_ALIGN(double arrC[200], 8);
AT_NONCACHEABLE_SECTION_ALIGN(uint32_t arrC1[200], 8);
AT_NONCACHEABLE_SECTION_ALIGN(double arrD[100], 8);
AT_NONCACHEABLE_SECTION_ALIGN(uint32_t arrD1[100], 8);
And under main, I set a value of 8 to all of them at their last position:
arrA[100] = 8;
arrA1[100] = 8;
arrB[100] = 8;
arrB1[100] = 8;
arrC[200] = 8;
arrC1[200] = 8;
arrD[100] = 8;
arrD1[100] = 8;
This results in no compilation error or hard fault either.
Take a look into the following community post: Solved: Re: Imprecise Bus Error when trying to make use of SDRAM on RT1020 EVK - NXP Community
As well as the following application note (specifically section "4.3.2. Use non-cacheable buffers"): Using the i.MXRT L1 Cache
BR,
Edwin.