Hello,
I currently have two questions regarding the BLE testing for the KW38.
1. I am using frdmkw38_hci_black_box_freertos, and I noticed that the SDK function Controller_SetDTMBaudrate(gDTM_BaudRate_115200_c) can only use UART. How can I modify it to use CAN communication instead?
2. If I divide my program into two versions: a production test program and a production application program, and I use the production test program for HCI RF testing, completing the calibration values, will these calibrated RF values be modified if I reflash it with the production application program?
3. As mentioned above, if I want to include some HCI test content in the production application program, is that feasible? Could you provide an example?
Hi @weidong_sun :
1. Can I use CAN bus to send HCI commands if I want the CAN bus to replace the UART interface?
2. I want to know that I calibrate RFIC parameters through HCI commands during the mass test process. If I reprogram the API code, do I need to calibrate again?
Dear @KenFeng ,
>>1. Can I use CAN bus to send HCI commands if I want the CAN bus to replace the UART interface?
No, you can't .
>>I want to know that I calibrate RFIC parameters through HCI commands during the mass test process.
No, you can't.
>>If I reprogram the API code, do I need to calibrate again?
For the same design and product, you only need to calibrate once. Simply write the calibration data into your app.
Thanks!
Regards,
weidong
Dear @KenFeng ,
See below, please!
--No.1 question
The function, Controller_SetDTMBaudrate(gDTM_BaudRate_115200_c) , is only used to set UART baud rate, it can't be modified for setting of CAN bus.
--No.2 question
RF calibration data should be placed in your application source code, The essence of RF calibration is to adjust the trim value of the 32MHz clock,see 'void BOARD_SetXtal32MHzTrim(uint8_t trimValue, bool_t saveToHwParams)' in board.c
--No.3 question
No other hci example code except for examples in SDK.
Thanks!
Regards,
weidong