We using demo-int project for a example.
(1) Import demo-int project.
(2) 在Pre-build裡加要做的工作,如python D:\\loop.py 。如下圖
Attachment:
圖(1).png [ 3.11 KiB | Viewed 8393 times ]
(3) Build Project 以產生auto-build的makefile
(4) 修改D:\Andestech\AndeSight201MCU\mcu_64\workspace\demo-int\Debug\makefile (即自動產生的makefile)在pre-build後面,多加一行$(MAKE) -j2 main-build。如附下圖
Attachment:
圖(2).png [ 2.77 KiB | Viewed 8393 times ]
(5) 取消auto-build,uncheck下面的選項。所以會變成makefile project。如附下圖
Attachment:
圖(3).png [ 14.49 KiB | Viewed 8393 times ]
(6) 把預設的Build all改成Build pre-build。如附下圖
Attachment:
圖(4).png [ 17.34 KiB | Viewed 8393 times ]
附件提供範例程式demo.zip