kopia lustrzana https://github.com/bristol-seds/pico-tracker
[memory] access 16k eeprom area by pointer, don't specifically allocate it
Partially revert "[memory] allocate separate 16k eeprom area"
This partially reverts commit eba62ba245
.
main-solar-only
rodzic
1415b6488b
commit
396de997dd
|
@ -115,14 +115,6 @@ SECTIONS
|
||||||
__fixed_end = .;
|
__fixed_end = .;
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
/* EEPROM goes in its own section */
|
|
||||||
.eeprom :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.eeprom .eeprom*)
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > EEPROM
|
|
||||||
|
|
||||||
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
||||||
PROVIDE_HIDDEN (__exidx_start = .);
|
PROVIDE_HIDDEN (__exidx_start = .);
|
||||||
.ARM.exidx :
|
.ARM.exidx :
|
||||||
|
|
|
@ -37,10 +37,8 @@
|
||||||
/**
|
/**
|
||||||
* Allocate a 16KB section of flash memory, aligned to an NVM row
|
* Allocate a 16KB section of flash memory, aligned to an NVM row
|
||||||
*/
|
*/
|
||||||
const uint8_t nvm_section[MEM_SIZE]
|
volatile uint8_t* nvm_section =
|
||||||
__attribute__ ((aligned (256)))
|
(uint8_t*)(0x0003C000); /* 256K - 16K */
|
||||||
__attribute__ ((section (".eeprom")))
|
|
||||||
= { 0xFF };
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Poll the status register until the busy bit is cleared
|
* Poll the status register until the busy bit is cleared
|
||||||
|
|
Ładowanie…
Reference in New Issue