diff --git a/doc/LPCXPresso_Flash_Debug_Tutorial.odt b/doc/LPCXPresso_Flash_Debug_Tutorial.odt new file mode 100644 index 00000000..fe9dca9a Binary files /dev/null and b/doc/LPCXPresso_Flash_Debug_Tutorial.odt differ diff --git a/doc/LPCXPresso_Flash_Debug_Tutorial.pdf b/doc/LPCXPresso_Flash_Debug_Tutorial.pdf new file mode 100644 index 00000000..a00c5a5a Binary files /dev/null and b/doc/LPCXPresso_Flash_Debug_Tutorial.pdf differ diff --git a/firmware/common/LPC4330_M4_ROM_to_RAM.ld b/firmware/common/LPC4330_M4_ROM_to_RAM.ld index f2850b91..e3852933 100644 --- a/firmware/common/LPC4330_M4_ROM_to_RAM.ld +++ b/firmware/common/LPC4330_M4_ROM_to_RAM.ld @@ -29,7 +29,8 @@ MEMORY /* rom is really the shadow region that points to SPI flash or elsewhere */ rom (rx) : ORIGIN = 0x00000000, LENGTH = 1M ram (rwx) : ORIGIN = 0x10000000, LENGTH = 128K - /* there are some additional RAM regions */ + /* there are some additional RAM regions for data */ + ram_data (rw) : ORIGIN = 0x10080000, LENGTH = 72K } /* Include the common ld script. */ diff --git a/firmware/startup_systick/startup_systick.c b/firmware/startup_systick/startup_systick.c index b80a1b59..ab7cd9fd 100644 --- a/firmware/startup_systick/startup_systick.c +++ b/firmware/startup_systick/startup_systick.c @@ -275,7 +275,7 @@ u32 test_nb_instruction_per_sec(void) asm volatile ("nop "); asm volatile ("nop "); asm volatile ("nop "); - nb_instructions_per_sec += 100; + nb_instructions_per_sec += 108; end = sys_tick_get_time_ms(); tickms = sys_tick_delta_time_ms(start, end);