This allows UART RX to function while flash erase/writes operations are
under way, preventing lost serial data so long as it fits in the UART RX
buffer.
This enables (among other things) mpremote to successfully copy files to
boards that use a UART REPL.
Enable via the following option placed in `mpconfigboard.mk`:
MICROPY_HW_ENABLE_ISR_UART_FLASH_FUNCS_IN_RAM = 1
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
26 lines
554 B
Plaintext
26 lines
554 B
Plaintext
/* Memory layout for bootloader and internal filesystem configuration (this here describes the app part):
|
|
|
|
FLASH_TEXT .isr_vector
|
|
FLASH_TEXT .text
|
|
FLASH_TEXT .data
|
|
|
|
RAM .data
|
|
RAM .bss
|
|
RAM .heap
|
|
RAM .stack
|
|
*/
|
|
|
|
ENTRY(Reset_Handler)
|
|
|
|
REGION_ALIAS("FLASH_ISR", FLASH_TEXT);
|
|
REGION_ALIAS("FLASH_COMMON", FLASH_TEXT);
|
|
|
|
/* define output sections */
|
|
SECTIONS
|
|
{
|
|
INCLUDE common_isr.ld
|
|
INCLUDE common_text.ld
|
|
INCLUDE common_extratext_data_in_flash.ld
|
|
INCLUDE common_bss_heap_stack.ld
|
|
}
|