Change ROM start address (program memory) and reading from ROM | Cypress Semiconductor
Change ROM start address (program memory) and reading from ROM
I'm using a PRoC BLE module and for the program that I'm working on, I would like to reserve the first 128 bytes in the Flash ROM for saving some calibration data. So instead of starting the program memory at 0x00000000, I would like to change it to 0x00000080.
From the PSoC 4 TRM, it seems that we can edit the __ICFEDIT_region_ROM_start__ in the .icf file. I tried it but to no avail. Also, I tried modifying the .ld file to change the rom (rx) : ORIGIN = 0x0, LENGTH = 131072, but to no avail as well.
I've been trying to find relevant posts in this forum or at large but with very little success.
Can anyone point me in the right direction?
Also, I would like to read from the ROM at specific locations other than 0x00000000 as this was the only memory location which did not give me a 'incompatible integer to pointer conversion assigning to 'int *' from 'int'' error when I tried to read it using pointers.
Any input is very much appreciated! Thanks in advance!