README.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. README
  2. ======
  3. gapuino is an evaluation board for GAP8, a 1+8-core DSP-like RISC-V
  4. MCU. GAP8 features a RI5CY core called Fabric Controller(FC), and a
  5. cluster of 8 RI5CY cores that runs at a bit slower speed. GAP8 is an
  6. implementation of the opensource PULP platform, a Parallel-Ultra-Low-
  7. Power design.
  8. The port is currently very minimal, though additional support may be
  9. added in the future to address more of the board peripherals.
  10. Supported:
  11. - USB UART (console port)
  12. - uDMA on SOC domain
  13. - FLL clock scaling
  14. Not supported:
  15. - SPI, I2C, I2S, CPI, LVDS, Hyper-bus on the uDMA subsystem
  16. - the sensor board
  17. - the 8-core cluster
  18. - the Hardware convolution engine
  19. See also:
  20. gapuino board and the sensor board:
  21. https://gwt-website-files.s3.amazonaws.com/gapuino_um.pdf
  22. https://gwt-website-files.s3.amazonaws.com/gapuino_multisensor_um.pdf
  23. GAP8 datasheet:
  24. https://gwt-website-files.s3.amazonaws.com/gap8_datasheet.pdf
  25. Contents
  26. ========
  27. - Environment Setup
  28. - Configurations
  29. - Execute
  30. Environment Setup
  31. =================
  32. First, setup the gap_sdk from GreenwavesTechnologies' github repo.
  33. Follow the README to setup the toolchain and environment.
  34. https://github.com/GreenWaves-Technologies/gap_sdk/
  35. Configurations
  36. ==============
  37. Each gapuino configuration is maintained in a sub-directory and can
  38. be selected as follow:
  39. tools/configure.sh gapuino/<subdir>
  40. Where <subdir> is one of the following:
  41. nsh
  42. ---
  43. This is an NSH example that uses the UART connected to FT2232 as
  44. the console. Default UART settings are 115200, 8N1.
  45. Execute
  46. =======
  47. You may download the ELF to the board by `plpbridge` in gap_sdk.
  48. Remember to first `cd` to the gap_sdk/ and `source sourceme.sh`, so
  49. that you have the $GAP_SDK_HOME environment varible.
  50. Use the following command to download and run the ELF through JTAG:
  51. $GAP_SDK_HOME/install/workstation/bin/plpbridge \
  52. --cable=ftdi@digilent --boot-mode=jtag --chip=gap \
  53. --binary=nuttx \
  54. load ioloop reqloop start wait
  55. As for debugging, the following command download the ELF and opens
  56. a gdbserver on port 1234:
  57. $GAP_SDK_HOME/install/workstation/bin/plpbridge \
  58. --cable=ftdi@digilent --boot-mode=jtag --chip=gap \
  59. --binary=nuttx \
  60. load ioloop gdb wait
  61. And then launch the gdb on another terminal:
  62. riscv32-unknown-elf-gdb nuttx
  63. ...
  64. (gdb) target remote :1234
  65. Remote debugging using :1234
  66. IRQ_U_Vector_Base () at chip/startup_gap8.S:293
  67. 293 j reset_handler /* 32 */
  68. (gdb)
  69. And then enjoy yourself debugging with the CLI gdb :-)