使用a庫時,需要在項目屬性C/C++選項卡裏面的Misc Controls中添加--wchar32選項,才能編譯通過,否則會報ble_hello_sensor_CM7\ble_hello_sensor_CM7.axf: Error: L6242E: Cannot link object btm_ble_privacy.o as its attributes are incompatible with the image attributes. ... wchart-16 clashes with wchart-32.的錯誤。 如果用的是ar庫,那就可以直接使用,不用加--wchar32選項。