????NUC980 uboot???÷???
1.?????gitee????uboot???git clone https://gitee.com/OpenNuvoton/NUC970_U-Boot_v2016.11.git
2.????uboot
make distclean
make nuc980_defconfig
make menuconfig
??????????????ο???????uboot??????? NUC980 U-Boot v2016_11 User Manual CHT.pdf
??????????????spi flash?????ο??????
3.????uboot
make
????uboot??????????uboot??????????u-boot.bin?????д??spi flash????????????uboot????
4.make nuc980_defconfig???÷???
???? make nuc980_defconfig V=1 ???????make????????

4.1 fixdep
????????????? fixdep?????????ó???ó????????????? *.o.cmd?????makefile?????ó?????÷???

??д???main.c???

??????????????????

??????????? main.d???
???fixdep????
fixdep??uboot??makefile???汻?????????????????? name.o.cmd ????????makefile??????????????á?
4.2 conf ????
scripts/kconfig/conf --defconfig=arch/../configs/nuc980_defconfig Kconfig
????????????uboot???????? .config ?????conf????????????nuc980_defconfig ??Kconfig???????.config
4.3 mconf ????
??? make menuconfig ?????????????

mconf??????????? .config ????????????????????kconfig??????????ò???????????????????????? .config ???????mconf??????????????????uboot kconfig????д??kconfig????????
./mconf kconfig
?????????ò????
4.4 makefile
???make nuc980_defconfig ????????uboot??????makefile?? %config ???????????????fixdep??conf????????????????????? .comfig ??????????????????make menuconfig??????makefile?????????????????mcon????????????????????ò????
5.???????
???????????make *config??????makefile?????????????????????????????????????????????????????????????á????︽??????makefile?????makefile?????λ??
make nuc980_defconfig

make menuconfig

?????????????? grep -nrw menuconfig???????

???????????????MCU???????????????????????980010600????
??????????У?????????????????MCU??????-?????????????EPWM??

????zzy ?????????2022-09-01