bouffalolab / bouffalo_sdk

BouffaloSDK is the IOT and MCU software development kit provided by the Bouffalo Lab Team, supports all the series of Bouffalo chips. Also it is the combination of bl_mcu_sdk and bl_iot_sdk
Apache License 2.0
362 stars 128 forks source link

Building for BL618 #162

Closed berkutta closed 1 year ago

berkutta commented 1 year ago

How can I build for BL618? Do I just need to specify CHIP=bl616?

Getting errors about non-existing files if I specify CHIP=bl618.

➜  helloworld git:(master) ✗ make CHIP=bl618
./../../tools/cmake/bin/cmake -S . -B build -G "Unix Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl618 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=COM5 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/user/prog/bouffalo/toolchain_gcc_t-head_linux/bin/riscv64-unknown-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/user/prog/bouffalo/toolchain_gcc_t-head_linux/bin/riscv64-unknown-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/user/prog/bouffalo/toolchain_gcc_t-head_linux/bin/riscv64-unknown-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [register library : libc], path:/home/user/prog/bouffalo/bouffalo_sdk/components/libc
-- [register library : mm], path:/home/user/prog/bouffalo/bouffalo_sdk/components/mm
-- [register library : utils], path:/home/user/prog/bouffalo/bouffalo_sdk/components/utils
-- [register library : lhal], path:/home/user/prog/bouffalo/bouffalo_sdk/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:/home/user/prog/bouffalo/bouffalo_sdk/drivers/lhal
-- [register extern library : libpka], path:/home/user/prog/bouffalo/bouffalo_sdk/drivers/lhal
CMake Error at /home/user/prog/bouffalo/bouffalo_sdk/CMakeLists.txt:6 (add_subdirectory):
  add_subdirectory given source "drivers/soc/bl618/std" which is not an
  existing directory.

-- Configuring incomplete, errors occurred!
See also "/home/user/prog/bouffalo/bouffalo_sdk/examples/helloworld/build/CMakeFiles/CMakeOutput.log".
make: *** [../../project.build:72: build] Error 1
sakumisu commented 1 year ago

Can you read readme? 618 is the same with 616

berkutta commented 1 year ago

Ok, thanks

mrhempman69 commented 10 months ago

This is not in the readme dude