Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Solved audio_recorder & audio_player
-
Hi @kamiltomaszewski,
I actually merged the config files ofaudio_player
andaudio_recorder
. But I kept the following as'N'
. Since I'm using my own example.
Application configuration --> Spresense SDK -->Examples--->Examples Audio Player & Examples Audio Recorder
-
@matben-0 How did you merge it? How does it look like?
-
Hi @KamilTomaszewski,
Config file of my program is set as following:CONFIG_HOST_LINUX=y CONFIG_APPS_DIR="../sdk/apps" CONFIG_BUILD_FLAT=y CONFIG_ARCH_HAVE_MATH_H=y CONFIG_ARCH_HAVE_STDARG_H=y CONFIG_ARCH_HAVE_SETJMP=y CONFIG_ARCH_NONE_DEBUG_H=y CONFIG_DEBUG_ALERT=y CONFIG_ARCH_HAVE_STACKCHECK=y CONFIG_STACK_COLORATION=y CONFIG_ARCH_HAVE_HEAPCHECK=y CONFIG_DEBUG_SYMBOLS=y CONFIG_ARCH_HAVE_CUSTOMOPT=y CONFIG_DEBUG_FULLOPT=y CONFIG_ARCH_ARM=y CONFIG_ARCH="arm" CONFIG_ARCH_CHIP_CXD56XX=y CONFIG_ARCH_ARMV7M=y CONFIG_ARCH_CORTEXM4=y CONFIG_ARCH_FAMILY="armv7-m" CONFIG_ARCH_CHIP="cxd56xx" CONFIG_ARM_HAVE_MPU_UNIFIED=y CONFIG_ARCH_HAVE_HARDFAULT_DEBUG=y CONFIG_ARCH_HAVE_MEMFAULT_DEBUG=y CONFIG_ARMV7M_USEBASEPRI=y CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL=y CONFIG_CXD56_ARCH_OPTS=y CONFIG_CXD56_FCBGA=y CONFIG_CXD56_MAINCORE=y CONFIG_CXD56_CUSTOM_PINCONFIG=y CONFIG_CXD56_BACKUPLOG=y CONFIG_CXD56_XOSC_CLOCK=26000000 CONFIG_CXD56_SPH=y CONFIG_CXD56_PMIC=y CONFIG_CXD56_CPUFIFO=y CONFIG_CXD56_ICC=y CONFIG_CXD56_CPUFIFO_ENTRIES=8 CONFIG_CXD56_CPUFIFO_NBUFFERS=8 CONFIG_CXD56_FARAPI=y CONFIG_CXD56_FARAPI_VERSION_CHECK=y CONFIG_CXD56_RTC=y CONFIG_CXD56_RTC_LATEINIT=y CONFIG_CXD56_TIMER=y CONFIG_CXD56_TIMER_DIVIDER_1=y CONFIG_CXD56_WDT=y CONFIG_CXD56_WDT_INTERRUPT=y CONFIG_CXD56_PM=y CONFIG_CXD56_DMAC=y CONFIG_CXD56_GPIO_IRQ=y CONFIG_CXD56_UART1=y CONFIG_CXD56_UART2=y CONFIG_CXD56_SPI=y CONFIG_CXD56_SPI_DRIVER=y CONFIG_CXD56_SPI_DMATHRESHOLD=64 CONFIG_CXD56_SPI3=y CONFIG_CXD56_SPI3_CS0=y CONFIG_CXD56_SPI4=y CONFIG_CXD56_DMAC_SPI4_TX=y CONFIG_CXD56_DMAC_SPI4_TX_CH=2 CONFIG_CXD56_DMAC_SPI4_TX_MAXSIZE=192000 CONFIG_CXD56_DMAC_SPI4_RX=y CONFIG_CXD56_DMAC_SPI4_RX_CH=3 CONFIG_CXD56_DMAC_SPI4_RX_MAXSIZE=192000 CONFIG_CXD56_SPI5=y CONFIG_CXD56_SPI5_PINMAP_EMMC=y CONFIG_CXD56_I2C=y CONFIG_CXD56_I2C0=y CONFIG_CXD56_I2C_DRIVER=y CONFIG_CXD56_PWM=y CONFIG_CXD56_SCU=y CONFIG_CXD56_SCU_PREDIV=64 CONFIG_CXD56_SCU_RCOSC=y CONFIG_CXD56_SCU32K_RTC=y CONFIG_CXD56_UDMAC=y CONFIG_CXD56_SFC=y CONFIG_CXD56_SFC_PAGE_SHIFT_SIZE=12 CONFIG_CXD56_SDIO=y CONFIG_CXD56_SDIO_DMA=y CONFIG_CXD56_SDIO_DISABLE_CD_WP=y CONFIG_CXD56_USE_SYSBUS=y CONFIG_ARCH_TOOLCHAIN_GNU=y CONFIG_ARCH_HAVE_IRQTRIGGER=y CONFIG_ARCH_DMA=y CONFIG_ARCH_HAVE_IRQPRIO=y CONFIG_ARCH_HAVE_MODULE_TEXT=y CONFIG_ARCH_HAVE_MULTICPU=y CONFIG_ARCH_HAVE_VFORK=y CONFIG_ARCH_HAVE_FPU=y CONFIG_ARCH_HAVE_LAZYFPU=y CONFIG_ARCH_HAVE_MPU=y CONFIG_ARCH_HAVE_POWEROFF=y CONFIG_ARCH_HAVE_RESET=y CONFIG_ARCH_HAVE_TESTSET=y CONFIG_ARCH_HAVE_SYSCALL_HOOKS=y CONFIG_ARCH_FPU=y CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_HAVE_RAMVECTORS=y CONFIG_BOARD_LOOPSPERMSEC=5434 CONFIG_ARCH_HAVE_INTERRUPTSTACK=y CONFIG_ARCH_INTERRUPTSTACK=2048 CONFIG_ARCH_HAVE_HIPRI_INTERRUPT=y CONFIG_BOOT_RUNFROMISRAM=y CONFIG_RAM_START=0x0d000000 CONFIG_RAM_SIZE=1572864 CONFIG_ARCH_BOARD_SPRESENSE=y CONFIG_ARCH_BOARD="spresense" CONFIG_ARCH_HAVE_LEDS=y CONFIG_ARCH_HAVE_BUTTONS=y CONFIG_ARCH_HAVE_IRQBUTTONS=y CONFIG_BOARD_CUSTOM_PINCONFIG=y CONFIG_BOARD_USB_DISABLE_IN_DEEP_SLEEPING=y CONFIG_CXD56_SPIFLASHSIZE=0x400000 CONFIG_CXD56_I2S0=y CONFIG_CXD56_AUDIO_ANALOG_CXD5247=y CONFIG_CXD56_AUDIO_XTAL_SEL_49_152MHZ=y CONFIG_CXD56_AUDIO_MICBIAS_20V=y CONFIG_CXD56_AUDIO_MIC_CHANNEL_SEL=0xFFFF4321 CONFIG_CXD56_AUDIO_MCLKOUT_WEAKEST=y CONFIG_CXD56_AUDIO_CLKOUT_DMIC_WEAKEST=y CONFIG_CXD56_AUDIO_DA_DATA_WEAKEST=y CONFIG_CXD56_AUDIO_GPO_A_WEAKEST=y CONFIG_CXD56_AUDIO_CIC_IN_SEL_CXD=y CONFIG_CXD56_AUDIO_PDM_LOWEMI_2MA=y CONFIG_CXD56_AUDIO_HPADC_MIC_BIAS_OFF=y CONFIG_CXD56_CXD5247_VER_ES4=y CONFIG_CXD56_AUDIO_SP_SPLIT_SHORTEST=y CONFIG_CXD56_AUDIO_SP_DRV_LINEOUT=y CONFIG_CXD56_AUDIO_I2S_DEVICE_1_SLAVE=y CONFIG_CXD56_AUDIO_I2S_FORMAT_1_I2S=y CONFIG_CXD56_AUDIO_I2S_BYPASS_MODE_1_DISABLE=y CONFIG_CXD56_AUDIO_I2S_RATE_1=48000 CONFIG_CXD56_AUDIO_I2S_LOWEMI_2MA=y CONFIG_CXD56_AUDIO_ALC_SPC_SEL_OFF=y CONFIG_CXD56_AUDIO_DMA_DATA_FORMAT_RL=y CONFIG_CXD56_AUDIO_MIC_BOOT_WAIT=1100 CONFIG_SPRESENSE_EXTENSION=y CONFIG_SDCARD_TXS02612=y CONFIG_SDCARD_TXS02612_PORT0=y CONFIG_LCD_ON_EXTENSION_BOARD=y CONFIG_WIFI_BOARD_IS110B_HARDWARE_VERSION_10A=y CONFIG_CXD56_BINARY=y CONFIG_BOARD_CRASHDUMP=y CONFIG_LIB_BOARDCTL=y CONFIG_BOARDCTL_POWEROFF=y CONFIG_BOARDCTL_RESET=y CONFIG_BOARD_RESET_ON_ASSERT=0 CONFIG_BOARD_ASSERT_RESET_VALUE=0 CONFIG_BOARDCTL_UNIQUEID=y CONFIG_BOARDCTL_UNIQUEID_SIZE=5 CONFIG_BOARDCTL_MKRD=y CONFIG_BOARDCTL_USBDEVCTRL=y CONFIG_BOARDCTL_IOCTL=y CONFIG_DISABLE_OS_API=y CONFIG_USEC_PER_TICK=10000 CONFIG_CLOCK_MONOTONIC=y CONFIG_START_YEAR=2011 CONFIG_START_MONTH=12 CONFIG_START_DAY=6 CONFIG_PREALLOC_TIMERS=4 CONFIG_INIT_ENTRYPOINT=y CONFIG_INIT_ARGS="" CONFIG_USER_ENTRYPOINT="spresense_main" CONFIG_USERMAIN_STACKSIZE=8192 CONFIG_USERMAIN_PRIORITY=100 CONFIG_RR_INTERVAL=200 CONFIG_TASK_NAME_SIZE=31 CONFIG_MAX_TASKS=32 CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_CHILD_STATUS=y CONFIG_PREALLOC_CHILDSTATUS=0 CONFIG_SCHED_WAITPID=y CONFIG_PTHREAD_MUTEX_ROBUST=y CONFIG_DEV_CONSOLE=y CONFIG_SDCLONE_DISABLE=y CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=8 CONFIG_FILE_STREAM=y CONFIG_NAME_MAX=64 CONFIG_PATH_MAX=256 CONFIG_BOARD_LATE_INITIALIZE=y CONFIG_BOARD_INITTHREAD_STACKSIZE=2048 CONFIG_BOARD_INITTHREAD_PRIORITY=240 CONFIG_SIG_PREALLOC_IRQ_ACTIONS=8 CONFIG_SIG_SIGUSR1=1 CONFIG_SIG_SIGUSR2=2 CONFIG_SIG_SIGALRM=3 CONFIG_SIG_SIGCHLD=4 CONFIG_SIG_PIPE=13 CONFIG_SIG_SIGCONDTIMEDOUT=16 CONFIG_SIG_SIGWORK=17 CONFIG_PREALLOC_MQ_MSGS=4 CONFIG_PREALLOC_MQ_IRQ_MSGS=8 CONFIG_MQ_MAXMSGSIZE=32 CONFIG_SCHED_WORKQUEUE=y CONFIG_SCHED_HPWORK=y CONFIG_SCHED_HPNTHREADS=1 CONFIG_SCHED_HPWORKPRIORITY=224 CONFIG_SCHED_HPWORKSTACKSIZE=2048 CONFIG_SCHED_LPWORK=y CONFIG_SCHED_LPNTHREADS=3 CONFIG_SCHED_LPWORKPRIORITY=100 CONFIG_SCHED_LPWORKSTACKSIZE=2048 CONFIG_DEFAULT_TASK_STACKSIZE=2048 CONFIG_IDLETHREAD_STACKSIZE=1024 CONFIG_PTHREAD_STACK_MIN=256 CONFIG_PTHREAD_STACK_DEFAULT=2048 CONFIG_DEV_NULL=y CONFIG_DRVR_MKRD=y CONFIG_ARCH_HAVE_RDWR_MEM_CPU_RUN=y CONFIG_SPECIFIC_DRIVERS=y CONFIG_I2C=y CONFIG_I2C_DRIVER=y CONFIG_SPI=y CONFIG_SPI_EXCHANGE=y CONFIG_SPI_DRIVER=y CONFIG_PWM=y CONFIG_TIMER=y CONFIG_RTC=y CONFIG_RTC_HIRES=y CONFIG_RTC_FREQUENCY=32768 CONFIG_RTC_ALARM=y CONFIG_RTC_NALARMS=1 CONFIG_RTC_DRIVER=y CONFIG_WATCHDOG=y CONFIG_WATCHDOG_DEVPATH="/dev/watchdog0" CONFIG_BCH=y CONFIG_LCD=y CONFIG_LCD_NOGETRUN=y CONFIG_LCD_MAXCONTRAST=63 CONFIG_LCD_MAXPOWER=1 CONFIG_LCD_LANDSCAPE=y CONFIG_ARCH_HAVE_SDIO=y CONFIG_MMCSD=y CONFIG_MMCSD_NSLOTS=1 CONFIG_MMCSD_HAVE_CARDDETECT=y CONFIG_MMCSD_HAVE_WRITEPROTECT=y CONFIG_SDIO_DMA=y CONFIG_MMCSD_SDIO=y CONFIG_SDIO_MUXBUS=y CONFIG_SDIO_BLOCKSETUP=y CONFIG_MTD=y CONFIG_MTD_BYTE_WRITE=y CONFIG_MTD_SMART=y CONFIG_MTD_SMART_SECTOR_SIZE=4096 CONFIG_MTD_SMART_ENABLE_CRC=y CONFIG_SMART_CRC_8=y CONFIG_MTD_SMART_FSCK=y CONFIG_NETDEVICES=y CONFIG_PIPES=y CONFIG_DEV_PIPE_MAXSIZE=1024 CONFIG_DEV_PIPE_SIZE=1024 CONFIG_DEV_FIFO_SIZE=1024 CONFIG_POWER=y CONFIG_BATTERY_CHARGER=y CONFIG_BATTERY_GAUGE=y CONFIG_ARCH_HAVE_SERIAL_TERMIOS=y CONFIG_SERIAL=y CONFIG_SERIAL_REMOVABLE=y CONFIG_SERIAL_CONSOLE=y CONFIG_MCU_SERIAL=y CONFIG_SERIAL_IFLOWCONTROL=y CONFIG_SERIAL_OFLOWCONTROL=y CONFIG_SERIAL_TERMIOS=y CONFIG_UART1_SERIAL_CONSOLE=y CONFIG_UART1_SERIALDRIVER=y CONFIG_UART2_SERIALDRIVER=y CONFIG_UART1_RXBUFSIZE=1024 CONFIG_UART1_TXBUFSIZE=1024 CONFIG_UART1_BAUD=115200 CONFIG_UART1_BITS=8 CONFIG_UART1_PARITY=0 CONFIG_UART1_2STOP=0 CONFIG_UART2_RXBUFSIZE=256 CONFIG_UART2_TXBUFSIZE=256 CONFIG_UART2_BAUD=115200 CONFIG_UART2_BITS=8 CONFIG_UART2_PARITY=0 CONFIG_UART2_2STOP=0 CONFIG_UART2_IFLOWCONTROL=y CONFIG_UART2_OFLOWCONTROL=y CONFIG_USBDEV=y CONFIG_USBDEV_DUALSPEED=y CONFIG_USBDEV_SELFPOWERED=y CONFIG_USBDEV_MAXPOWER=100 CONFIG_USBDEV_DMA=y CONFIG_CDCACM=y CONFIG_CDCACM_EP0MAXPACKET=64 CONFIG_CDCACM_EPINTIN=6 CONFIG_CDCACM_EPINTIN_FSSIZE=64 CONFIG_CDCACM_EPINTIN_HSSIZE=64 CONFIG_CDCACM_EPBULKOUT=5 CONFIG_CDCACM_EPBULKOUT_FSSIZE=64 CONFIG_CDCACM_EPBULKOUT_HSSIZE=512 CONFIG_CDCACM_EPBULKIN=4 CONFIG_CDCACM_EPBULKIN_FSSIZE=64 CONFIG_CDCACM_EPBULKIN_HSSIZE=512 CONFIG_CDCACM_NRDREQS=4 CONFIG_CDCACM_NWRREQS=4 CONFIG_CDCACM_BULKIN_REQLEN=768 CONFIG_CDCACM_RXBUFSIZE=3080 CONFIG_CDCACM_TXBUFSIZE=769 CONFIG_CDCACM_VENDORID=0x054c CONFIG_CDCACM_PRODUCTID=0x0bc2 CONFIG_CDCACM_VENDORSTR="SONY" CONFIG_CDCACM_PRODUCTSTR="CDC/ACM Serial" CONFIG_USBMSC=y CONFIG_USBMSC_EP0MAXPACKET=64 CONFIG_USBMSC_EPBULKOUT=2 CONFIG_USBMSC_EPBULKIN=1 CONFIG_USBMSC_NWRREQS=4 CONFIG_USBMSC_NRDREQS=4 CONFIG_USBMSC_BULKINREQLEN=512 CONFIG_USBMSC_BULKOUTREQLEN=512 CONFIG_USBMSC_VENDORID=0x054c CONFIG_USBMSC_VENDORSTR="Sony" CONFIG_USBMSC_PRODUCTID=0x0bc2 CONFIG_USBMSC_PRODUCTSTR="Mass Storage" CONFIG_USBMSC_VERSIONNO=0x399 CONFIG_USBMSC_REMOVABLE=y CONFIG_USBMSC_SCSI_PRIO=128 CONFIG_USBMSC_SCSI_STACKSIZE=2048 CONFIG_SYSLOG_MAX_CHANNELS=1 CONFIG_SYSLOG_DEFAULT=y CONFIG_CXD56_AUDIO=y CONFIG_ARCH_HAVE_NET=y CONFIG_NET=y CONFIG_NET_ETH_PKTSIZE=590 CONFIG_NET_GUARDSIZE=2 CONFIG_NET_ETHERNET=y CONFIG_NETDEV_LATEINIT=y CONFIG_NET_NACTIVESOCKETS=16 CONFIG_NET_SOCKOPTS=y CONFIG_NET_TCP=y CONFIG_NET_TCP_NO_STACK=y CONFIG_NET_UDP=y CONFIG_NET_UDP_NO_STACK=y CONFIG_NET_USRSOCK=y CONFIG_NET_USRSOCK_CONNS=6 CONFIG_NET_USRSOCK_NPOLLWAITERS=1 CONFIG_NET_USRSOCK_UDP=y CONFIG_NET_USRSOCK_TCP=y CONFIG_FS_NEPOLL_DESCRIPTORS=8 CONFIG_FS_MQUEUE_MPATH="/var/mqueue" CONFIG_FS_MQUEUE_NPOLLWAITERS=4 CONFIG_FS_FAT=y CONFIG_FAT_LCNAMES=y CONFIG_FAT_LFN=y CONFIG_FAT_MAXFNAME=64 CONFIG_FAT_LFN_ALIAS_TRAILCHARS=0 CONFIG_FS_FATTIME=y CONFIG_FS_ROMFS=y CONFIG_FS_SMARTFS=y CONFIG_SMARTFS_ERASEDSTATE=0xff CONFIG_SMARTFS_MAXNAMLEN=30 CONFIG_SMARTFS_MULTI_ROOT_DIRS=y CONFIG_SMARTFS_ALIGNED_ACCESS=y CONFIG_FS_PROCFS=y CONFIG_FS_PROCFS_REGISTER=y CONFIG_FS_PROCFS_EXCLUDE_ENVIRON=y CONFIG_MM_DEFAULT_MANAGER=y CONFIG_MM_REGIONS=1 CONFIG_AUDIO=y CONFIG_AUDIO_NUM_BUFFERS=2 CONFIG_AUDIO_BUFFER_NUMBYTES=8192 CONFIG_AUDIO_FORMAT_PCM=y CONFIG_AUDIO_FORMAT_MP3=y CONFIG_AUDIO_EXCLUDE_EQUALIZER=y CONFIG_AUDIO_EXCLUDE_REWIND=y CONFIG_STDIO_BUFFER_SIZE=64 CONFIG_STDIO_LINEBUFFER=y CONFIG_NUNGET_CHARS=2 CONFIG_LIBC_FLOATINGPOINT=y CONFIG_LIBC_LONG_LONG=y CONFIG_EOL_IS_EITHER_CRLF=y CONFIG_ARCH_LOWPUTC=y CONFIG_LIB_RAND_ORDER=1 CONFIG_LIB_HOMEDIR="/" CONFIG_LIBC_TMPDIR="/tmp" CONFIG_LIBC_MAX_TMPFILE=32 CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=1024 CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE=2048 CONFIG_LIB_HOSTNAME="" CONFIG_TLS_NELEM=4 CONFIG_LIBC_IPv4_ADDRCONV=y CONFIG_LIBC_IPv6_ADDRCONV=y CONFIG_LIBC_NETDB=y CONFIG_NETDB_BUFSIZE=256 CONFIG_LIB_SENDFILE_BUFSIZE=512 CONFIG_LIB_KBDCODEC=y CONFIG_BUILTIN=y CONFIG_HAVE_CXX=y CONFIG_NUTTX_LIBXX=y CONFIG_HAVE_CXXINITIALIZE=y CONFIG_FSUTILS_MKFATFS=y CONFIG_FSUTILS_MKSMARTFS=y CONFIG_NETUTILS_NETINIT=y CONFIG_NETUTILS_NETLIB=y CONFIG_NSH_LIBRARY=y CONFIG_NSH_PROMPT_STRING="nsh> " CONFIG_NSH_READLINE=y CONFIG_NSH_LINELEN=160 CONFIG_NSH_QUOTE=y CONFIG_NSH_CMDPARMS=y CONFIG_NSH_MAXARGUMENTS=16 CONFIG_NSH_ARGCAT=y CONFIG_NSH_NESTDEPTH=3 CONFIG_NSH_BUILTIN_APPS=y CONFIG_NSH_DISABLE_LOSMART=y CONFIG_NSH_DISABLE_MB=y CONFIG_NSH_DISABLE_MH=y CONFIG_NSH_DISABLE_MW=y CONFIG_NSH_DISABLE_PRINTF=y CONFIG_NSH_DISABLE_SHUTDOWN=y CONFIG_NSH_DISABLE_TRUNCATE=y CONFIG_NSH_MMCSDMINOR=0 CONFIG_NSH_MMCSDSLOTNO=0 CONFIG_NSH_CODECS_BUFSIZE=128 CONFIG_NSH_CMDOPT_HEXDUMP=y CONFIG_NSH_PROC_MOUNTPOINT="/proc" CONFIG_NSH_FILEIOSIZE=1024 CONFIG_NSH_CONSOLE=y CONFIG_NSH_ARCHINIT=y CONFIG_NSH_NETINIT=y CONFIG_NSH_WGET_BUFF_SIZE=512 CONFIG_ASMP=y CONFIG_MM_TILE=y CONFIG_ASMP_MEMSIZE=0xc0000 CONFIG_SDK_AUDIO=y CONFIG_AUDIOUTILS_PLAYER=y CONFIG_AUDIOUTILS_PLAYLIST=y CONFIG_AUDIOUTILS_PLAYER_CODEC_PCM=y CONFIG_AUDIOUTILS_PLAYER_CODEC_MP3=y CONFIG_AUDIOUTILS_PLAYER_CODEC_AAC=y CONFIG_AUDIOUTILS_PLAYER_CODEC_OPUS=y CONFIG_AUDIOUTILS_OUTPUTMIXER=y CONFIG_AUDIOUTILS_MPP=y CONFIG_AUDIOUTILS_RENDERER_CH_NUM=2 CONFIG_AUDIOUTILS_DSP_MOUNTPT="/mnt/sd0/BIN" CONFIG_AUDIOUTILS_DECODER=y CONFIG_AUDIOUTILS_FILTER=y CONFIG_AUDIOUTILS_RENDERER=y CONFIG_AUDIOUTILS_CUSTOMPROC=y CONFIG_AUDIOUTILS_DSP_DRIVER=y CONFIG_MEMUTILS=y CONFIG_MEMUTILS_MEMORY_MANAGER=y CONFIG_MEMUTILS_MEMORY_MANAGER_USE_FENCE=y CONFIG_MEMUTILS_MEMORY_MANAGER_NUM_FIXED_AREA_FENCES=0 CONFIG_MEMUTILS_MESSAGE=y CONFIG_MEMUTILS_S_STL=y CONFIG_MEMUTILS_SIMPLE_FIFO=y CONFIG_SYSTEM_CLE=y CONFIG_SYSTEM_CLE_DEBUGLEVEL=0 CONFIG_SYSTEM_NSH=y CONFIG_SYSTEM_NSH_PRIORITY=100 CONFIG_SYSTEM_NSH_STACKSIZE=2048 CONFIG_SYSTEM_NSH_PROGNAME="nsh" CONFIG_READLINE_HAVE_EXTMATCH=y CONFIG_SYSTEM_READLINE=y CONFIG_READLINE_ECHO=y CONFIG_READLINE_TABCOMPLETION=y CONFIG_READLINE_MAX_BUILTINS=64 CONFIG_READLINE_MAX_EXTCMDS=64 CONFIG_READLINE_CMD_HISTORY=y CONFIG_READLINE_CMD_HISTORY_LINELEN=160 CONFIG_READLINE_CMD_HISTORY_LEN=16
-
Hi @matben-0,
Do you use IDE or CLI?
-
Hi @kamiltomaszewski,
I used the IDE to create config -
Try the steps below:
Go to SDK config in VSC, then
New -> Examples
Selectaudio_player
andaudio_recorder
ClickOK
DisableEXAMPLES_AUDIO_PLAYER
andEXAMPLES_AUDIO_RECORDER
underApplication Configuration -> Spresense SDK -> Example
, since you have your own example
Save
Try to build -
Hi @kamiltomaszewski,
Following this I get the following error on running program in Spresense;Start audio recorder with object level i/f example Codec type LPCM Sampling rate 48kHz Channel number 2ch(STEREO) Bit length 16bit Attention: module[2][0] attention id[2]/code[13] (objects/front_end/front_end_obj.cpp L1630) app_receive_object_reply_rec() Attention: module[6][0] attention id[2]/code[16] (objects/media_player/media_player_obj.cpp L2077) Attention: module[15][0] attention id[2]/code[16] (components/renderer/renderer_component.cpp L370) error! result 0x2e Erarm_hardfault: PANIC!!! Hard fault: 40000000 up_assert: Assertion failed at file:armv7-m/arm_hardfault.c line: 135 task: objrecply up_registerdump: R0: 00000000 00000000 2d048758 0000a5f8 00000000 00000000 00000000 00000000 up_registerdump: R8: 00000000 00000000 00000000 00000000 0000000a 2d08dce8 0d022865 00000000 up_registerdump: xPSR: 60000000 BASEPRI: 000000e0 CONTROL: 00000000 up_registerdump: EXC_RETURN: ffffffe9 up_dumpstate: sp: 2d045c00 up_dumpstate: IRQ stack: up_dumpstate: base: 2d045c78 up_dumpstate: size: 00000800 up_dumpstate: used: 00000170 up_stackdump: 2d045c00: 000000e0 00000000 00000000 0000000a 2d08dce8 0d022865 00000000 2d0817cc up_stackdump: 2d045c20: 2d08dc14 2d0817cc 2d08dc14 00000003 00000000 00000000 00000000 00000000 up_stackdump: 2d045c40: 00000000 0d006b11 0d011915 0d001d43 0d001d21 0d0039db 000000e0 0d001d15 up_stackdump: 2d045c60: 000000e0 2d08dc14 00000000 00000000 00000000 0d000333 726a626f 6c706365 up_dumpstate: sp: 2d08dce8 up_dumpstate: User stack: up_dumpstate: base: 2d08dc18 up_dumpstate: size: 000007d0 up_dumpstate: used: 000003bc up_dumpstate: ERROR: Stack pointer is not within the allocated stack up_stackdump: 2d08d440: 2d08dc30 00000002 deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d460: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d480: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d4a0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d4c0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d4e0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d500: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d520: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d540: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d560: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d580: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d5a0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d5c0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d5e0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d600: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d620: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d640: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d660: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d680: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d6a0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d6c0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d6e0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d700: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d720: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d740: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d760: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d780: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d7a0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d7c0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d7e0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d800: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d820: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef up_stackdump: 2d08d840: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef 2d08d930 up_stackdump: 2d08d860: 00000080 2d086600 000000e0 2d042aa0 00000001 2d0863f0 2d086390 00000000 up_stackdump: 2d08d880: 00000000 ffffffe9 00000000 00000000 00000000 00000000 00000000 00000000 up_stackdump: 2d08d8a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 up_stackdump: 2d08d8c0: 00000000 2d08d998 000000e0 2d042934 0000006e 00000070 0000002a 0d03f556 up_stackdump: 2d08d8e0: 2d08da74 0d03f551 2d08da70 ffffffe9 00000000 00000000 00000000 00000000 up_stackdump: 2d08d900: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 up_stackdump: 2d08d920: 00000000 00000000 00000000 00000000 0000006e 041ac000 041ac018 0000013e up_stackdump: 2d08d940: 00000000 0d000811 0d000884 81000000 00000000 3ff00000 00000000 00000000 up_stackdump: 2d08d960: 00000000 00000000 00000000 00000000 0000000a 00000000 2d08d9e2 00000003 up_stackdump: 2d08d980: 2d0428f0 00000004 00000152 2d08da60 00000080 2d086600 000000e0 00000000 up_stackdump: 2d08d9a0: 2d0428f0 00000004 000001fa 2d0428f0 041ac000 00000019 2d086881 00000001 up_stackdump: 2d08d9c0: 00000000 0d0067b3 000000e0 0d000425 0d000405 00000019 00000019 0d0066f9 up_stackdump: 2d08d9e0: 2d086868 2d086848 00000019 00000001 00000000 2d08dafc 0000000a 0d00ae8b up_stackdump: 2d08da00: 00000001 00000019 00000019 2d086960 2d086868 0d00ae9b 2d086868 0d007a0d up_stackdump: 2d08da20: 80000000 0000000a 2d086848 00000000 00000000 0d021287 0000000a 0a086848 up_stackdump: 2d08da40: 2d0868a8 2d08dac0 0000000a 0d02091f 0d020911 2d08dac0 00000018 0d006f3f up_stackdump: 2d08da60: 00000000 3ff00000 0d03eec0 00000000 00000000 00000000 00000000 00000000 up_stackdump: 2d08da80: 00000000 00000000 00000000 00000000 ffffffff 2d086848 0d03eea7 00000000 up_stackdump: 2d08daa0: 00000000 00000000 2d086848 0d0040af 2d086848 0d0208fd 2d081e00 2d08dafc up_stackdump: 2d08dac0: 0d020911 0d020909 00000019 2d086848 2d08b000 2d046c78 2d048684 0d0382cd up_stackdump: 2d08dae0: 0d03eea7 0d03eea7 2d048698 2d08dafc 2d046c78 0d022865 0d03eea7 00000000 up_stackdump: 2d08db00: 2d048698 00000000 0d03f054 deadbeef deadbeef 00000001 ffff0a09 03080106 up_stackdump: 2d08db20: 04030201 deadbeef deadbeef deadbeef 03030100 00000000 00000000 0d03ded8 up_stackdump: 2d08db40: 0d03defb 2d042bf4 00000005 0d03deeb 05040108 08070605 0000bb80 0d03df03 up_stackdump: 2d08db60: 0d03df19 2d042bf8 0002ee00 0d03df1e 0d03df34 2d042bfc 00000001 0d03df38 up_stackdump: 2d08db80: 0d03df51 2d042bfc 00000002 0d03df55 0d03df7f 2d042bfc 00000004 0d03df70 up_stackdump: 2d08dba0: 0d03df83 2d042c00 00000010 0d03df87 0d03df9c 2d042c00 00000018 0d03dfa0 up_stackdump: 2d08dbc0: 00000000 00000000 00000000 00000000 00000000 2d046c78 0d0228d1 00000000 up_stackdump: 2d08dbe0: 00000000 00000000 00000000 00000000 00000000 0d0228db 00000000 0d006d19 up_stackdump: 2d08dc00: 0d0228d1 00000001 00000000 0d0047e5 00000000 2d08dce8 000000e0 00000000 up_taskdump: Idle Task: PID=0 Stack Used=464 of 1024 up_taskdump: hpwork: PID=1 Stack Used=596 of 2008 up_taskdump: lpwork: PID=2 Stack Used=332 of 2008 up_taskdump: lpwork: PID=3 Stack Used=332 of 2008 up_taskdump: lpwork: PID=4 Stack Used=332 of 2008 up_taskdump: cxd56_pm_task: PID=6 Stack Used=400 of 976 up_taskdump: init: PID=7 Stack Used=944 of 8152 up_taskdump: objrecply: PID=8 Stack Used=956 of 2000 up_taskdump: front_end: PID=0 Stack Used=0 of 0 up_taskdump: media_recorder: PID=10 Stack Used=332 of 2048 up_taskdump: capture0: PID=11 Stack Used=340 of 2048
-
Hi @matben-0,
All Memory handles may be used. Response from DSP may be delayed or get stacked up.
If you want to use playing and recording in one application then maybe you should see this example: https://github.com/sonydevworld/spresense/tree/master/examples/audio_through
Best Regards,
Kamil Tomaszewski -
-
Hi @KamilTomaszewski, thank you
-
@MatBen-0 Hi Mat, I also hope to develop a similar function by using the player and recorder function at the same time. Have you completed your project? Right now, I hope to trigger an audio beep as alarm when recorded SNR is above a certain threshold. If possible, would you please me how you achieve this?
Thank you in advance for any help.
Best,
Larry