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 = .;
|
||||
} > 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. */
|
||||
PROVIDE_HIDDEN (__exidx_start = .);
|
||||
.ARM.exidx :
|
||||
|
|
|
@ -37,10 +37,8 @@
|
|||
/**
|
||||
* Allocate a 16KB section of flash memory, aligned to an NVM row
|
||||
*/
|
||||
const uint8_t nvm_section[MEM_SIZE]
|
||||
__attribute__ ((aligned (256)))
|
||||
__attribute__ ((section (".eeprom")))
|
||||
= { 0xFF };
|
||||
volatile uint8_t* nvm_section =
|
||||
(uint8_t*)(0x0003C000); /* 256K - 16K */
|
||||
|
||||
/**
|
||||
* Poll the status register until the busy bit is cleared
|
||||
|
|
Ładowanie…
Reference in New Issue