Kconfig 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_METRO_M4
  6. choice
  7. prompt "Execution memory"
  8. default METRO_M4_RUNFROMFLASH
  9. config METRO_M4_RUNFROMFLASH
  10. bool "Run from FLASH"
  11. select BOOT_RUNFROMFLASH
  12. ---help---
  13. This is the normal configuration for building METRO M4 code.
  14. config METRO_M4_RUNFROMSRAM
  15. bool "Run from SRAM"
  16. select BOOT_RUNFROMISRAM
  17. ---help---
  18. During early bring-up, it is safer to execute entirely from
  19. SRAM until you are confident in the initialization logic.
  20. Then you can safely switch to FLASH.
  21. REVISIT: This auto-selects CONFIG_BOOT_RUNFROMISRAM but I have
  22. found, with some difficulty, that that choice still defaults to
  23. CONFIG_BOOT_RUNFROMFLASH, causing link-time failures when running
  24. from SRAM.
  25. endchoice # Execution memory
  26. config METRO_M4_32KHZXTAL
  27. bool "32.768 KHz XTAL"
  28. default n
  29. ---help---
  30. According to the schematic, a 32.768 KHz crystal is installed on
  31. board. However, I have been unable to use this crystal and thought
  32. perhaps it is missing or defective on my board (there is a metal
  33. package that could be a crystal on board, but I am not certain).
  34. Another, more likely option is that there is a coding error on my
  35. part that prevents the 32.768 KHz crystal from usable(?)
  36. The configuration defaults to using the always-on OSCULP32 as the
  37. slow clock source. This option will select instead XOSC32 as the
  38. slow clock source.
  39. endif # ARCH_BOARD_METRO_M4