JieLi Bluetooth Smart Speakers Developing: Getting Started with AC696N Speaker SoCs(2)


Continuing from our previous guide on debug output configuration, this post covers two more practical aspects of AC696N development: utilizing the USB DP/DM pins for serial printing and locating the compiled firmware files for programming.


Getting Started with AC696N Speaker SoCs (Part 2)


2. Using USB DP/DM for Printing

2.1 Setting the Print Pins to DP/DM

#define TCFG_UART0_TX_PORT                  IO_PORT_DP // IO_PORT_DM // Serial port transmit pin configuration

2.2 Turning Off Other Functions Related to DP/DM

To avoid conflicts, other functions that use the DP/DM pins must be disabled:

2.2.1 Turn off PC mode

#define TCFG_APP_PC_EN                        0

2.2.2 Turn off USB function

#define TCFG_UDISK_ENABLE                    DISABLE_THIS_MOUDLE // USB drive module enable

2.2.3 Turn off USB pin multiplexing

#define TCFG_USB_DM_MULTIPLEX_WITH_SD_DAT0       DISABLE

2.2.4 If online audio effect tuning uses USB DP/DM, turn off the online tuning function

#define TCFG_TOOL_TX_PORT                    IO_PORT_DP      // UART mode debug TX port selection

#define TCFG_TOOL_RX_PORT IO_PORT_DM // UART mode debug RX port selection
// Turn off the online tuning function

#define TCFG_SOUNDBOX_TOOL_ENABLE DISABLE // Whether to support the speaker online configuration tool

#define TCFG_EFFECT_TOOL_ENABLE DISABLE // Whether to support online audio effect debugging. Enabling this item also requires enabling the EQ master switch TCFG_EQ_ENABLE.

3. Firmware Upgrade File Storage Path After Compilation

3.1 Generate and run download.bat in the tools directory

文章内容

3.2 Confirm the location of the generated firmware files

3.2.1 Open download.bat; in the tools directory in edit mode

3.2.2 Confirm the relative path

文章内容

3.3 Firmware upgrade file

文章内容

Summary

This section describes how to configure the USB DP/DM pins for UART print output and how to locate the compiled firmware files for device programming. When using DP/DM for debugging, remember to disable all other functions that use these pins to avoid conflicts. The  download.bat  

评论

此博客中的热门博文

KT148A Voice Chip at Baidu Baike

KT148A Voice Chip: A Powerful Tool to Enhance the User Experience of Smart Soymilk Makers