Storing data constants in flash at fixed location
Posted: Wed Feb 21, 2018 11:37 am
Hi,
Recently I have decided to migrate to ESP32 from Microchip PIC32MZ2048EFG064 + ATWINC1500 WiFi and experiencing bit interesting to work.
However I came across 1 point for which I am not able to find a solution. Can someone please help me out?
The point to which I need solution is as below
In PIC32, I can declare an WORD constant array at some specified fixed location of say 1024 in length, which can be placed into PIC32 internal flash and can be directly accessed run-time using "<array_name>" e.g. WORD arrayVal = test_array[333];
Here in ESP32 I am not able get a way to do so. Also please note that I have to declare such 5-6 different types of arrays.
Please suggest me a nice solution to this.
Thanks in advance
Regards,
Dinesh
Recently I have decided to migrate to ESP32 from Microchip PIC32MZ2048EFG064 + ATWINC1500 WiFi and experiencing bit interesting to work.
However I came across 1 point for which I am not able to find a solution. Can someone please help me out?
The point to which I need solution is as below
In PIC32, I can declare an WORD constant array at some specified fixed location of say 1024 in length, which can be placed into PIC32 internal flash and can be directly accessed run-time using "<array_name>" e.g. WORD arrayVal = test_array[333];
Here in ESP32 I am not able get a way to do so. Also please note that I have to declare such 5-6 different types of arrays.
Please suggest me a nice solution to this.
Thanks in advance
Regards,
Dinesh