nuttx/boards/risc-v/bl602/bl602evb
Virus.V 2b8e0945a9 Fix BL602 CI Build failed.
Modify the default configuration in KConfig.
Sync latest commit from mainline.

Remove unused demo configuration

fixup bl602 nsh defconfig cause CICD failed

Rebase from mainline code
2020-12-29 01:52:09 -08:00
..
configs/nsh Fix BL602 CI Build failed. 2020-12-29 01:52:09 -08:00
include Solve the problems pointed out in the comments 2020-12-29 01:52:09 -08:00
scripts Solve the problems pointed out in the comments 2020-12-29 01:52:09 -08:00
src Solve the problems pointed out in the comments 2020-12-29 01:52:09 -08:00
Kconfig
README.txt Reconstruct bl602 readme; move up_irq_save/restore declaration to common place 2020-12-29 01:52:09 -08:00

1. Download and install toolchain

  $ curl https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14.tar.gz

2. Download Bouffalo lab flash tools

  $ git clone https://github.com/bouffalo/flash_tools.git

3. Configure and build NuttX

  $ mkdir ./nuttx; cd ./nuttx
  $ git clone https://github.com/apache/incubator-nuttx.git nuttx
  $ git clone https://github.com/apache/incubator-nuttx-apps.git apps
  $ cd nuttx
  $ make distclean
  $ ./tools/configure.sh bl602evb:nsh
  $ make -j

4. Connect bl602 and computer via USB

5. Run flash tools, select the nuttx.bin generated in the previous step in the
   Firmware bin field, and refer to the document for the settings of the remaining fields.
   Click the download button to download bin to bl602.

6. Run  $ picocom -b 115200 /dev/ttyUSB0 (If you see garbled characters at the begining, it is because 
   boot2 outputs some log at 2M baud rate), then you will see "nuttx>" prompt.

How to download to bl602 can refer to the docs in the https://github.com/bouffalolab/bl_iot_sdk repository.