Browse Source

enable a3k_setup() in src/main.c

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 6 years ago
parent
commit
4349826fa3
  1. 1
      lib/vrom.h
  2. 6
      src/flash.ld
  3. 4
      src/main.c

1
lib/vrom.h

@ -68,3 +68,4 @@ int vrom_write(uint8_t rom, uint16_t offset, uint16_t size,
int vrom_erase(uint8_t rom);
#endif

6
src/flash.ld

@ -2,9 +2,7 @@ ENTRY(Reset_Handler)
_MIN_HEAP_SIZE = 0x200;
_MIN_STACK_SIZE = 0x400;
MEMORY {
vector (rx): org = 0x08000000, len = 4k
eeprom (rx): org = 0x08001000, len = 12k
flash (rx) : org = 0x08004000, len = 2032k
flash (rx) : org = 0x08000000, len = 2m
ram (xrw) : org = 0x20000000, len = 192k
ccmram (rw): org = 0x10000000, len = 64K
}
@ -13,7 +11,7 @@ SECTIONS {
. = ALIGN(4);
KEEP(*(.isr_vector))
. = ALIGN(4);
} >vector
} >flash
.text : {
. = ALIGN(4);

4
src/main.c

@ -63,8 +63,8 @@ int main()
gpio_write(PK7 | PK6, 0);
printf("\n");
// a3k_setup(&a3k0);
// a3k_setup(&a3k1);
a3k_setup(&a3k0);
a3k_setup(&a3k1);
printf("\nrunning\n> ");

Loading…
Cancel
Save