Kconfig 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see the file kconfig-language.txt in the NuttX tools repository.
  4. #
  5. if ARCH_BOARD_ESP32CORE
  6. choice
  7. prompt "On-board Crystal Frequency"
  8. default ESP32CORE_XTAL_40MZ
  9. config ESP32CORE_XTAL_40MZ
  10. bool "40MHz"
  11. config ESP32CORE_XTAL_26MHz
  12. bool "26MHz"
  13. endchoice # On-board Crystal Frequency
  14. config ESP32CORE_RUN_IRAM
  15. bool "Run from IRAM"
  16. default n
  17. ---help---
  18. The default configuration is set up run from IRAM. However, the
  19. current (2016-11-14) OpenOCD for ESP32 does not support writing to
  20. FLASH. This option sets up the linker scripts to support execution
  21. from IRAM. In this case, OpenOCD can be used to load directly into
  22. IRAM.
  23. At this stage the nuttx image is small enough to be entirely memory-
  24. resident. Once board support is more mature you can add flash cache
  25. mapping code to run from SPI flash after initial boot. There are at
  26. least two possible approaches you could take: You can add the flash
  27. cache mapping code into nuttx directly, so it is self-contained -
  28. early nuttx initialisation runs from IRAM and enables flash cache,
  29. and then off you go. Or you can use the esp-idf software bootloader
  30. and partition table scheme and have nuttx be an esp-idf "app" which
  31. allows interoperability with the esp-idf system but makes you
  32. reliant on the esp-idf design for these parts. Both are possible.
  33. endif # ARCH_BOARD_ESP32CORE