README.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. README
  2. ^^^^^^
  3. README for NuttX port to the LC823450XGEVK board.
  4. The board information is available at
  5. http://www.onsemi.com/PowerSolutions/evalBoard.do?id=LC823450XGEVK
  6. LC823450 related documents are available at
  7. http://www.onsemi.com/PowerSolutions/supportDoc.do?type=AppNotes&rpn=LC823450
  8. This port is intended to test LC823450 features including SMP.
  9. Supported peripherals are UART, TIMER, RTC, GPIO, DMA, I2C, SPI, LCD.
  10. Settings
  11. ^^^^^^^^
  12. 1. Currently only SRAM boot via ICE is supported.
  13. 2. If SWD connection is lost, please specify lower adaptor clock.
  14. 3. Both CPUs are running at 160MHz.
  15. 4. Internal SRAMs (seg0 to seg5) are used.
  16. 5. Serial console can be used via external USB-UART (115200/8/N/1).
  17. 6. Interrupt handlers except for inter-cpu are handled on CPU0.
  18. SMP related Status
  19. ^^^^^^^^^^^^^^^^^^
  20. Currently SMP feature works on the board but might not be stable.
  21. In addition, console output might be corrupted if the both CPUs
  22. output into the console because UART operates in FIFO mode.
  23. 1. "nsh> smp" works but the result will be corrupted.
  24. 2. "nsh> ostest" works but might cause a deadlock or assertion.
  25. Other Status
  26. ^^^^^^^^^^^^
  27. 1. nsh built-in commands such as ps, free are available.
  28. NuttShell (NSH)
  29. nsh> ps
  30. PID GROUP CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND
  31. 0 0 0 0 FIFO Kthread N-- Assigned 00000000 000000 CPU0 IDLE
  32. 1 0 1 0 FIFO Kthread N-- Running 00000000 002044 CPU1 IDLE
  33. 3 1 0 100 FIFO Task --- Running 00000000 003052 init
  34. nsh> free
  35. total used free largest
  36. Mem: 1027024 13136 1013888 1013888
  37. 2. date command can be used to get/set RTC date and time.
  38. nsh> date
  39. Oct 03 00:00:55 2013
  40. nsh> date -s "Mar 31 12:34:56 2017"
  41. nsh> date
  42. Mar 31 12:34:56 2017
  43. 3. i2c app can be used to test I2C buses.
  44. nsh> i2c get -b 1 -a 18 -r 0
  45. READ Bus: 1 Addr: 18 Subaddr: 00 Value: f9
  46. 4. nxhello app can be used to test LCD via SPI.
  47. nsh> nxhello
  48. nxhello_initialize: Initializing LCD
  49. nxhello_initialize: Open NX
  50. nxhello_main: NX handle=20096f0
  51. nxhello_main: Set background color=0
  52. nxhello_main: Screen resolution (128,48)
  53. nxhello_hello: Position (31,20)
  54. nxhello_main: Close NX
  55. TODO
  56. ^^^^
  57. The following peripherals will be supported.
  58. eMMC, uSD, USB, ADC, Audio, etc.