README.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. README
  2. ^^^^^^
  3. Toolchain
  4. ^^^^^^^^^
  5. A GNU GCC-based toolchain is assumed. The PATH environment variable should
  6. be modified to point to the correct path to the SH toolchain (if
  7. different from the default).
  8. If you have no ARM toolchain, one can be downloaded from the NuttX
  9. Bitbucket download site (https://bitbucket.org/nuttx/buildroot/downloads/).
  10. 1. You must have already configured Nuttx in <some-dir>nuttx.
  11. tools/configure.sh c5471evm/<sub-dir>
  12. 2. Download the latest buildroot package into <some-dir>
  13. 3. unpack
  14. 4. cd <some-dir>/buildroot
  15. 5. cp configs/arm-defconfig .config
  16. 6. make oldconfig
  17. 7. make
  18. 8. Make sure that the PATH variable includes the path to the newly built
  19. binaries.
  20. Issues
  21. ^^^^^^
  22. Title: UART RECONFIGURATION
  23. Description: UART re-configuration is untested and conditionally compiled out.
  24. Status: Open
  25. Priority: Medium. ttyS1 is not configured, but not used; ttyS0 is configured
  26. by the bootloader
  27. ARM/C5471-specific Configuration Options
  28. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  29. CONFIG_ARCH - Identifies the arch/ subdirectory. This should
  30. be set to:
  31. CONFIG_ARCH=arm
  32. CONFIG_ARCH_family - For use in C code:
  33. CONFIG_ARCH_ARM=y
  34. CONFIG_ARCH_architecture - For use in C code:
  35. CONFIG_ARCH_ARM7TDMI=y
  36. CONFIG_ARCH_CHIP - Identifies the arch/*/chip subdirectory
  37. CONFIG_ARCH_CHIP=c5471
  38. CONFIG_ARCH_CHIP_name - For use in C code
  39. CONFIG_ARCH_CHIP_C5471
  40. CONFIG_ARCH_BOARD - Identifies the configs subdirectory and
  41. hence, the board that supports the particular chip or SoC.
  42. CONFIG_ARCH_BOARD=c5471evm (for the Spectrum Digital C5471 EVM)
  43. CONFIG_ARCH_BOARD_name - For use in C code
  44. CONFIG_ARCH_BOARD_C5471EVM (for the Spectrum Digital C5471 EVM)
  45. CONFIG_ARCH_LOOPSPERMSEC - Must be calibrated for correct operation
  46. of delay loops
  47. CONFIG_ENDIAN_BIG - define if big endian (default is little
  48. endian)
  49. CONFIG_ROM_VECTORS - should be defined for the C5471 because the
  50. interrupt vectors are in ROM
  51. CONFIG_ARCH_LEDS - Use LEDs to show state. Unique to boards that
  52. have LEDs
  53. CONFIG_ARCH_INTERRUPTSTACK - This architecture supports an interrupt
  54. stack. If defined, this symbol is the size of the interrupt
  55. stack in bytes. If not defined, the user task stacks will be
  56. used during interrupt handling.
  57. CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
  58. C5471 specific device driver settings
  59. CONFIG_SERIAL_IRDA_CONSOLE - selects the IRDA UART for the
  60. console ant ttys0 (default is the modem UART).
  61. CONFIG_UART_*_HWFLOWCONTROL - enables hardware flow control
  62. CONFIG_UART_*_RXBUFSIZE - Characters are buffered as received.
  63. This specific the size of the receive buffer
  64. CONFIG_UART_*_TXBUFSIZE - Characters are buffered before
  65. being sent. This specific the size of the transmit buffer
  66. CONFIG_UART_*_BAUD - The configure BAUD of the UART. Must be
  67. CONFIG_UART_*_BITS - The number of bits. Must be either 7 or 8.
  68. CONFIG_UART_*_PARTIY - 0=no parity, 1=odd parity, 2=even parity
  69. CONFIG_UART_*_2STOP - Two stop bits
  70. C5471 Ethernet Driver settings
  71. CONFIG_C5471_NET_STATS
  72. CONFIG_C5471_PHY_AC101L or C5471_PHY_LU3X31T_T64
  73. CONFIG_C5471_AUTONEGOTIATION
  74. CONFIG_C5471_BASET100
  75. CONFIG_C5471_BASET10
  76. Configurations
  77. ^^^^^^^^^^^^^^
  78. Common Configuration Notes
  79. --------------------------
  80. 1. Each C5471 configuration is maintained in a sub-directory and
  81. can be selected as follow:
  82. tools/configure.sh c5471evm/<subdir>
  83. Where <subdir> is one of the configuration sub-directories described in
  84. the following paragraph.
  85. 2. These configurations use the mconf-based configuration tool. To
  86. change a configurations using that tool, you should:
  87. a. Build and install the kconfig-mconf tool. See nuttx/README.txt
  88. see additional README.txt files in the NuttX tools repository.
  89. b. Execute 'make menuconfig' in nuttx/ in order to start the
  90. reconfiguration process.
  91. 3. By default, all configurations assume the NuttX Buildroot toolchain
  92. under Linux (should work under Windows with Cygwin as well). This
  93. is easily reconfigured:
  94. CONFIG_HOST_LINUX=y
  95. CONFIG_ARM_TOOLCHAIN_BUILDROOT=y
  96. Configuration Sub-Directories
  97. -----------------------------
  98. nettest
  99. This configuration enables networking using the c5471's built-in Ethernet
  100. interface. It uses examples/nettest to exercise the TCP/IP network.
  101. nsh
  102. This configuration file builds NSH (examples/nsh) using the TELNET server
  103. front end
  104. httpd
  105. This configuration uses the tiny webserver for uIP.