RE : Case ID: 339247 NCS 2.7.0

This case don't happen when i merged net_core and app_core to burn. I used to burn only one core.

What causes this?

Now I have a new question.I use one nrf5340 as CIS client to conncect Galaxy Buds2 Pro but the voice i hear is bad because the cpu usage is high.

So i try to reduce the sampling rate used by codec.

CONFIG_LC3_ENC_SAMPLE_RATE_8KHZ_SUPPORT=y
CONFIG_LC3_ENC_SAMPLE_RATE_16KHZ_SUPPORT=y
CONFIG_LC3_ENC_SAMPLE_RATE_24KHZ_SUPPORT=y
CONFIG_LC3_ENC_SAMPLE_RATE_32KHZ_SUPPORT=n
CONFIG_LC3_ENC_SAMPLE_RATE_441KHZ_SUPPORT=n
CONFIG_LC3_ENC_SAMPLE_RATE_48KHZ_SUPPORT=n
# end of Encoder sample rates

#
# Decoder sample rates
#
CONFIG_LC3_DEC_SAMPLE_RATE_8KHZ_SUPPORT=y
CONFIG_LC3_DEC_SAMPLE_RATE_16KHZ_SUPPORT=y
CONFIG_LC3_DEC_SAMPLE_RATE_24KHZ_SUPPORT=n
CONFIG_LC3_DEC_SAMPLE_RATE_32KHZ_SUPPORT=n
CONFIG_LC3_DEC_SAMPLE_RATE_441KHZ_SUPPORT=n
CONFIG_LC3_DEC_SAMPLE_RATE_48KHZ_SUPPORT=n

Use this cfg to init encode success but decode sample rate is selected 48k, this causes

HL [00:00:23.566,131] <err> sw_codec_select: ret:-5009
HL [00:00:23.566,192] <err> audio_system: Failed to set up codec
HL [00:00:23.566,192] <err> audio_system: ERR_CHK Err_code: [-5009] @ line: 490	

Can i set decode sample rate in client and inform headset use the same cfg?

Thanks!

Parents Reply Children
  • It can establish tow 48k encode streams and two 24k decode streams when set CONFIG_STREAM_BIDIRECTIONAL=y .I think It can support,

  • Hi,

    48kHZ and 2x 24kHZ should be fine according to what I find. I can't find anything w.r.t Galaxy buds supporting 16k og 8k, meaning that you won't be able to set up the codec if you don't support the Galaxy buds supported rates

    This case don't happen when i merged net_core and app_core to burn. I used to burn only one core.

    I'm not sure if I quite understand what you did when you only flashed (burned) one core? You always have to flash both cores AFAIK for an Audio application

    Kind regards,
    Andreas

  • Sorry, I didn't express myself well. The error happened when I flashed two core with two .hex files. When i merged two .hex files and flashed, the error did not appear.

    I'm not sure if I quite understand what you did when you only flashed (burned) one core? You always have to flash both cores AFAIK for an Audio application

    I used this cfg but get the same problem.

    #
    # Decoder sample rates
    #
    CONFIG_LC3_DEC_SAMPLE_RATE_8KHZ_SUPPORT=y
    CONFIG_LC3_DEC_SAMPLE_RATE_16KHZ_SUPPORT=y
    CONFIG_LC3_DEC_SAMPLE_RATE_24KHZ_SUPPORT=y
    CONFIG_LC3_DEC_SAMPLE_RATE_32KHZ_SUPPORT=n
    CONFIG_LC3_DEC_SAMPLE_RATE_441KHZ_SUPPORT=n
    CONFIG_LC3_DEC_SAMPLE_RATE_48KHZ_SUPPORT=n

    I have another 5340, can i use it to verifie the problem?

    Could you please give me guidance on how to complete it?

     Thanks!

  • Hi,

    tourists said:
    Sorry, I didn't express myself well. The error happened when I flashed two core with two .hex files. When i merged two .hex files and flashed, the error did not appear.

    Ah, I understand. That makes sense, since you need to flash the device with the merged hex.  https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/config_and_build/configuring_app/output_build_files.html talks more about the build file output and what the various files are.

    Try CONFIG_LC3_DEC_SAMPLE_RATE_48KHZ_SUPPORT=y 

    Kind regards,
    Andreas

Related