README.txt 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. README
  2. ^^^^^^
  3. README file for the Microment Eagle100 NuttX port.
  4. References:
  5. ^^^^^^^^^^
  6. Micromint: http://www.micromint.com/
  7. Luminary: http://www.luminarymicro.com/
  8. Ethernet-Bootloader
  9. ^^^^^^^^^^^^^^^^^^^
  10. Here are some notes about using the Luminary Ethernet boot-loader built
  11. into the Eagle-100 board.
  12. Built-In Application:
  13. - The board has no fixed IP address but uses DHCP to get an address.
  14. I used a D-link router; I can use a web browser to surf to the D-link
  15. web page to get the address assigned by
  16. - Then you can use this IP address in your browser to surf to the Eagle-100
  17. board. It presents several interesting pages -- the most important is
  18. the page called "Firmware Update". That page includes instructions on
  19. how to download code to the Eagle-100.
  20. - After you burn the first program, you lose this application. Then you
  21. will probably be better off connected directly to the Eagle-100 board
  22. or through a switch (The router caused problems for me during downloads).
  23. Using the Ethernet Bootloader:
  24. - You will need the "LM Flash Programmer application". You can get that
  25. program from the Luminary web site. There is a link on the LM3S6918 page.
  26. - Is there any documentation for using the bootloader? Yes and No: There
  27. is an application note covering the bootloader on the Luminary site, but
  28. it is not very informative. The Eagle100 User's Manual has the best
  29. information.
  30. - Are there any special things I have to do in my code, other than setting
  31. the origin to 0x0000:2000 (APP_START_ADDRESS)? No. The bootloader assumes
  32. that you have a vector table at that address . The bootloader does the
  33. following each time it boots (after you have downloaded the first valid
  34. application):
  35. o The bootloader sets the vector table register to the APP_START_ADDRESS,
  36. o It sets the stack pointer to the address at APP_START_ADDRESS, and then
  37. o Jumps to the address at APP_START_ADDRESS+4.
  38. - You can force the bootloader to skip starting the application and stay
  39. in the update mode. You will need to do this in order to download a new
  40. application. You force the update mode by holding the user button on the
  41. Eagle-100 board while resetting the board. The user button is GPIOA, pin 6
  42. (call FORCED_UPDATE_PIN in the bootloader code).
  43. - Note 1: I had to remove my D-Link router from the configuration in order
  44. to use the LM Flash Programmer (the Bootloader issues BOOTP requests to
  45. communicate with the LM Flash Programmer, my router was responding to
  46. these BOOTP requests and hosing the download). It is safer to connect
  47. via a switch or via an Ethernet switch.
  48. - Note 2: You don't need the router's DHCPD server in the download
  49. configuration; the Luminary Flash Programmer has the capability of
  50. temporarily assigning the IP address to the Eagle-100 via BOOTP.
  51. Eagle100-specific Configuration Options
  52. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  53. CONFIG_ARCH - Identifies the arch/ subdirectory. This should
  54. be set to:
  55. CONFIG_ARCH=arm
  56. CONFIG_ARCH_family - For use in C code:
  57. CONFIG_ARCH_ARM=y
  58. CONFIG_ARCH_architecture - For use in C code:
  59. CONFIG_ARCH_CORTEXM3=y
  60. CONFIG_ARCH_CHIP - Identifies the arch/*/chip subdirectory
  61. CONFIG_ARCH_CHIP=lm
  62. CONFIG_ARCH_CHIP_name - For use in C code to identify the exact
  63. chip:
  64. CONFIG_ARCH_CHIP_LM3S6918
  65. CONFIG_ARCH_BOARD - Identifies the configs subdirectory and
  66. hence, the board that supports the particular chip or SoC.
  67. CONFIG_ARCH_BOARD=eagle100 (for the MicroMint Eagle-100 development board)
  68. CONFIG_ARCH_BOARD_name - For use in C code
  69. CONFIG_ARCH_BOARD_EAGLE100
  70. CONFIG_ARCH_LOOPSPERMSEC - Must be calibrated for correct operation
  71. of delay loops
  72. CONFIG_ENDIAN_BIG - define if big endian (default is little
  73. endian)
  74. CONFIG_RAM_SIZE - Describes the installed DRAM (SRAM in this case):
  75. CONFIG_RAM_SIZE=0x00010000 (64Kb)
  76. CONFIG_RAM_START - The start address of installed DRAM
  77. CONFIG_RAM_START=0x20000000
  78. CONFIG_ARCH_LEDS - Use LEDs to show state. Unique to boards that
  79. have LEDs
  80. CONFIG_ARCH_INTERRUPTSTACK - This architecture supports an interrupt
  81. stack. If defined, this symbol is the size of the interrupt
  82. stack in bytes. If not defined, the user task stacks will be
  83. used during interrupt handling.
  84. CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
  85. CONFIG_ARCH_LEDS - Use LEDs to show state. Unique to board architecture.
  86. There are configurations for disabling support for interrupts GPIO ports.
  87. GPIOH and GPIOJ must be disabled because they do not exist on the LM3S6918.
  88. Additional interrupt support can be disabled if desired to reduce memory
  89. footprint.
  90. CONFIG_TIVA_GPIOA_IRQS=y
  91. CONFIG_TIVA_GPIOB_IRQS=y
  92. CONFIG_TIVA_GPIOC_IRQS=y
  93. CONFIG_TIVA_GPIOD_IRQS=y
  94. CONFIG_TIVA_GPIOE_IRQS=y
  95. CONFIG_TIVA_GPIOF_IRQS=y
  96. CONFIG_TIVA_GPIOG_IRQS=y
  97. CONFIG_TIVA_GPIOH_IRQS=n << Always
  98. CONFIG_TIVA_GPIOJ_IRQS=n << Always
  99. LM3S6918 specific device driver settings
  100. CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the
  101. console and ttys0 (default is the UART0).
  102. CONFIG_UARTn_RXBUFSIZE - Characters are buffered as received.
  103. This specific the size of the receive buffer
  104. CONFIG_UARTn_TXBUFSIZE - Characters are buffered before
  105. being sent. This specific the size of the transmit buffer
  106. CONFIG_UARTn_BAUD - The configure BAUD of the UART. Must be
  107. CONFIG_UARTn_BITS - The number of bits. Must be either 7 or 8.
  108. CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity
  109. CONFIG_UARTn_2STOP - Two stop bits
  110. CONFIG_TIVA_SSI0 - Select to ensable support for SSI0
  111. CONFIG_TIVA_SSI1 - Select to ensable support for SSI1
  112. CONFIG_SSI_POLLWAIT - Select to disable interrupt driven SSI support.
  113. Poll-waiting is recommended if the interrupt rate would be to
  114. high in the interrupt driven case.
  115. CONFIG_SSI_TXLIMIT - Write this many words to the Tx FIFO before
  116. emptying the Rx FIFO. If the SPI frequency is high and this
  117. value is large, then larger values of this setting may cause
  118. Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
  119. CONFIG_TIVA_ETHERNET - This must be set (along with CONFIG_NET)
  120. to build the Stellaris Ethernet driver
  121. CONFIG_TIVA_ETHLEDS - Enable to use Ethernet LEDs on the board.
  122. CONFIG_TIVA_BOARDMAC - If the board-specific logic can provide
  123. a MAC address (via tiva_ethernetmac()), then this should be selected.
  124. CONFIG_TIVA_ETHHDUPLEX - Set to force half duplex operation
  125. CONFIG_TIVA_ETHNOAUTOCRC - Set to suppress auto-CRC generation
  126. CONFIG_TIVA_ETHNOPAD - Set to suppress Tx padding
  127. CONFIG_TIVA_MULTICAST - Set to enable multicast frames
  128. CONFIG_TIVA_PROMISCUOUS - Set to enable promiscuous mode
  129. CONFIG_TIVA_BADCRC - Set to enable bad CRC rejection.
  130. CONFIG_TIVA_DUMPPACKET - Dump each packet received/sent to the console.
  131. Configurations
  132. ^^^^^^^^^^^^^^
  133. Common Configuration Notes
  134. --------------------------
  135. 1. Each Eagle-100 configuration is maintained in a sub-directory and
  136. can be selected as follow:
  137. tools/configure.sh eagle100/<subdir>
  138. Where <subdir> is one of the configuration sub-directories described in
  139. the following paragraph.
  140. 2. These configurations use the mconf-based configuration tool. To
  141. change a configurations using that tool, you should:
  142. a. Build and install the kconfig-mconf tool. See nuttx/README.txt
  143. see additional README.txt files in the NuttX tools repository.
  144. b. Execute 'make menuconfig' in nuttx/ in order to start the
  145. reconfiguration process.
  146. Configuration Sub-Directories
  147. -----------------------------
  148. nettest:
  149. This configuration directory may be used to enable networking using the
  150. LM3S6918's Ethernet controller. It uses examples/nettest to exercise the
  151. TCP/IP network.
  152. NOTES:
  153. 1. This configuration is set to use Cygwin under Windows and the
  154. CodeSourcery toolchain. That, however, is easily reconfigurable:
  155. CONFIG_HOST_WINDOWS=y
  156. CONFIG_WINDOWS_CYGWIN=y
  157. CONFIG_ARM7M_TOOLCHAIN_CODESOURCERYW=y
  158. httpd:
  159. This builds the uIP web server example using the examples/webserver application
  160. (for execution from FLASH).
  161. NOTES:
  162. 1. This configuration is set to use Cygwin under Windows and the
  163. CodeSourcery toolchain. That, however, is easily reconfigurable:
  164. CONFIG_HOST_WINDOWS=y
  165. CONFIG_WINDOWS_CYGWIN=y
  166. CONFIG_ARM7M_TOOLCHAIN_CODESOURCERYW=y
  167. This example can only be built using the buildroot toolchain
  168. with NXFLAT support
  169. nsh:
  170. Configures the NuttShell (nsh) located at examples/nsh. The
  171. Configuration enables only the serial NSH interfaces (the telnet
  172. interface should also be functional, but is not enabled in this
  173. configuration).
  174. NOTES:
  175. 1. This configuration is set to use Cygwin under Windows and the
  176. devkitARM toolchain. That, however, is easily reconfigurable:
  177. CONFIG_HOST_WINDOWS=y
  178. CONFIG_WINDOWS_CYGWIN=y
  179. CONFIG_ARM7M_TOOLCHAIN_DEVKITARM=y
  180. nxflat:
  181. This builds the NXFLAT example at apps/examples/nxfalt.
  182. NOTES:
  183. 1. This example can only be built using the NuttX buildroot
  184. toolchain with the NXFLAT tools.
  185. 2. This configuration is set to use Cygwin under Windows and the
  186. devkitARM toolchain. That, however, is easily reconfigurable:
  187. CONFIG_HOST_WINDOWS=y
  188. CONFIG_WINDOWS_CYGWIN=y
  189. CONFIG_ARM7M_TOOLCHAIN_DEVKITARM=y
  190. thttpd:
  191. This builds the THTTPD web server example using the THTTPD and
  192. the apps/examples/thttpd application.
  193. NOTES:
  194. 1. This configuration is set to use Linux and the buildroot toolchain.
  195. That, however, is easily reconfigurable:
  196. CONFIG_HOST_LINUX=y
  197. CONFIG_ARM7M_TOOLCHAIN_BUILDROOT=y
  198. This example can only be built using the buildroot toolchain
  199. with NXFLAT support
  200. By default, all of these examples are built to be used with the Luminary
  201. Ethernet Bootloader (you can change the ld.script file in any of these
  202. sub-directories to change that configuration).