This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
各位好
我使用MSP432P401R
環境CCSV9.1.0.00010
SimpleLink MSP432P4SDK 3.20.0.06
Build->ARM Compiler->Advanced Options->Language Options-> Level of printf/scanf support required(--printf_support) = full
似乎只要使用到浮點數就會出問題? 程式跑到這邊就會卡死 也無法除錯?
請問是否設置上我有哪邊沒注意到或使用方式錯誤
感謝回覆
參考範例 uartecho.c
float test_f = 0.5; char output_str[50]; /* Loop forever echoing */ while (1) { UART_read(uart, &input, 1); sprintf(output_str,"test sprintf %f function \n",test_f); UART_write(uart, &output_str, strlen(output_str)); //UART_write(uart, &input, 1); }