I have CC2564MODAEN + CC2564XEM-STADAPT + STM32F407G-DISC1.
I made below changes on each board to make it compatible with nonOS HFP example which is given for EVAL board of ST.
1. Changes in STM32F407G - DISC1
- Crystal X2 hanged to 25 MHz from 8 MHz.
- The resistor R24 is changed to 390R.
- Flying wires have been connected between ST-LINK/V2-A virtual COM port (ST-LINK VCP on U2 pin12 and 13) and STM32F407 USART2 (PA2 and PA3: P1 pin 14 and 13)
- Removed resistor R68
2. Changes in CC256XEM – STADAPT V 1.0
- Resistor R42, R32, R12, R22 and R52 are shorted
- Resistor R43 is kept open
- Connected jumper (J1,j2,j3,j4,j5,j6) on discovery side
3. Changes in CC2564MODAEM
- Sorted R18
- Removed R19 and R11
- Done below changes mentioned in “Enable STM32 Discovery Eval.pdf”
- Change In the project options (Under- General Options, Target) the Device to: ST STM32F407VG, from the ST devices, in the drop-down list.
- Under the ST-LINK, in the project setting choose SWD and in the Reset drop down list choose: Connect during reset.
- In order to work with the UART console, change the I/O definition, in Platform/HALCFG.h file; to UART 2 and use PA2 as the TX and PA3 as the RX pin. Also change the LED I/O in the same file, to PD13 for the Orange LED.
- In order to work with the Bluetooth CC256x Adapter board via UART HCI, first change the UART to non-DMA one. Remove the HCITRANS.c file from the Bluetopia Group. Add Bluetopia/hcitrans/HCITRANS.c file to the Bluetopia Group.
- For the Discovery HCI UART I/O definition, change the Bluetopia/hcitrans/HCITRCFG.h file, to UART 3 and use: PD8 as the TX, PD9 as the RX, PD12 as RTS, PD11 as CTS. Also change the Bluetooth RESET I/O in the same file, to PE14.
- In AUDIO.c file, changed frequency for AUDIO_RESET_PIN to 50MHz. In addition, Modified AUDIO_RESET_PIN handling as per discovery board.
- In AUDIO.c file, used AUDIO_I2S_BASE macro instead of hard code SPI2.
- Added waverecorder.c file and its dependency.
- Removed analog mic part from AUDIO.c file.
- Removed USB part from waverecorder.c file and created API to start/stop listening from mic.
- Called start/stop mic api while call establishment and disconnection in HFPDemo.c file.
- Added queue logic to send PCM input data over the air.
Firmware is attached here.
After call setup, we can hear voice of person, who is at opposite end of phone line, at audio jack of discover kit. However, that person is only hearing random noise although we are speaking at MEMS of discovery kit.
It seems like some issue in MIC path.
Please provide input for possible issue.