e814977c0f
The SD boot loader was not satisfactory because 1) the SD slot is on an optional board and, hence, cannot be part of a fundamental solution. And 2) it is too big. The only storage on borard is the Winbond W25 SPI-bsed FLASH. This commit adds support for a bootload to 1) read code in HEX format from a serial port and write it to the W25 FLASH, or 2) read code in binary form from the W25 FLASH into SRAM and execute the loaded program. boards/z80/ez80/z20x/configs: Added w25boot configuration boards/z80/ez80/z20x/src: Add bootloader logic, w25_main.c. Add logic to manage shared SRAM memory map so that the loaded program does not clobber the bootloader memory. Add logic to recover the bootloader memory into the heap after the loaded program as started. boards/z80/ez80/z20x/scripts: Rework scripts and configuration to support a bootloader and program build. The boolloader cannot use all of SRAM; the program must not clobber the SRAM region used by the bootloader.
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
#
|
|
# This file is autogenerated: PLEASE DO NOT EDIT IT.
|
|
#
|
|
# You can use "make menuconfig" to make any modifications to the installed .config file.
|
|
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
|
# modifications.
|
|
#
|
|
CONFIG_ARCH="z80"
|
|
CONFIG_ARCH_BOARD="z20x"
|
|
CONFIG_ARCH_BOARD_Z20X=y
|
|
CONFIG_ARCH_CHIP="ez80"
|
|
CONFIG_ARCH_CHIP_EZ80=y
|
|
CONFIG_ARCH_CHIP_EZ80F92=y
|
|
CONFIG_ARCH_STACKDUMP=y
|
|
CONFIG_ARCH_Z80=y
|
|
CONFIG_BOARD_LOOPSPERMSEC=1250
|
|
CONFIG_DISABLE_MQUEUE=y
|
|
CONFIG_EZ80_SPI=y
|
|
CONFIG_EZ80_UART1=y
|
|
CONFIG_HOST_WINDOWS=y
|
|
CONFIG_MAX_TASKS=8
|
|
CONFIG_MAX_WDOGPARMS=2
|
|
CONFIG_MTD=y
|
|
CONFIG_MTD_W25=y
|
|
CONFIG_NFILE_DESCRIPTORS=6
|
|
CONFIG_NFILE_STREAMS=6
|
|
CONFIG_PREALLOC_TIMERS=4
|
|
CONFIG_PREALLOC_WDOGS=4
|
|
CONFIG_PTHREAD_STACK_DEFAULT=1024
|
|
CONFIG_RAM_SIZE=65536
|
|
CONFIG_SDCLONE_DISABLE=y
|
|
CONFIG_START_MONTH=3
|
|
CONFIG_START_YEAR=2020
|
|
CONFIG_UART1_BITS=0
|
|
CONFIG_UART1_RXBUFSIZE=64
|
|
CONFIG_UART1_SERIAL_CONSOLE=y
|
|
CONFIG_UART1_TXBUFSIZE=64
|
|
CONFIG_USER_ENTRYPOINT="w25_main"
|
|
CONFIG_WDOG_INTRESERVE=1
|
|
CONFIG_Z20X_W25BOOT=y
|