在kendryte-standalone-sdk-0.5.6/src/下,產生一個hello資料夾並且撰寫一個main.c
#include <bsp.h>
#include <sysctl.h>
int main(void)
{
printf("Hello, world!\n");
while(1);
return 0;
}
編譯程式
$ cmake .. -DPROJ=hello -DTOOLCHAIN=/opt/k210/bin && make
使用GDB除錯或者使用kflash燒錄即可從UART輸出訊息