Developer World
Spresense SDK Library v3.2.0-ebc0364
Attention Sub Code
Collaboration diagram for Attention Sub Code:

Macros

#define AS_ATTENTION_SUB_CODE_DMA_UNDERFLOW   0x01
 DMA Underflow. More...
 
#define AS_ATTENTION_SUB_CODE_DMA_OVERFLOW   0x02
 DMA Overflow. More...
 
#define AS_ATTENTION_SUB_CODE_DMA_ERROR   0x03
 DMA Error. More...
 
#define AS_ATTENTION_SUB_CODE_APU_QUEUE_FULL   0x04
 APU Queue Full Error. More...
 
#define AS_ATTENTION_SUB_CODE_SIMPLE_FIFO_UNDERFLOW   0x05
 SimpleFIFO Underflow. More...
 
#define AS_ATTENTION_SUB_CODE_SIMPLE_FIFO_OVERFLOW   0x06
 SimpleFIFO Overflow. More...
 
#define AS_ATTENTION_SUB_CODE_ILLEGAL_REQUEST   0x07
 Illegal Request. More...
 
#define AS_ATTENTION_SUB_CODE_INTERNAL_STATE_ERROR   0x08
 Internal State Error. More...
 
#define AS_ATTENTION_SUB_CODE_UNEXPECTED_PARAM   0x09
 Unexpected Parameter. More...
 
#define AS_ATTENTION_SUB_CODE_QUEUE_POP_ERROR   0x0A
 Internal Queue Pop Error. More...
 
#define AS_ATTENTION_SUB_CODE_QUEUE_PUSH_ERROR   0x0B
 Internal Queue Push Error. More...
 
#define AS_ATTENTION_SUB_CODE_QUEUE_MISSING_ERROR   0x0C
 Internal Queue Missing Error. More...
 
#define AS_ATTENTION_SUB_CODE_MEMHANDLE_ALLOC_ERROR   0x0D
 Memory Handle Alloc Error. More...
 
#define AS_ATTENTION_SUB_CODE_MEMHANDLE_FREE_ERROR   0x0E
 Memory Handle Free Error. More...
 
#define AS_ATTENTION_SUB_CODE_TASK_CREATE_ERROR   0x0F
 Task Create Error. More...
 
#define AS_ATTENTION_SUB_CODE_RESOURCE_ERROR   0x10
 Instance Resource Error. More...
 
#define AS_ATTENTION_SUB_CODE_DECODED_SIZE_ZERO   0x11
 Decoded size equal zero. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_LOAD_ERROR   0x12
 DSP Load Error. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_UNLOAD_ERROR   0x13
 DSP Unload Error. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_EXEC_ERROR   0x14
 DSP Exec Error. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_RESULT_ERROR   0x15
 DSP Result Error. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_ILLEGAL_REPLY   0x16
 DSP Illegal Reply. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_UNLOAD_DONE   0x17
 DSP Unload Done. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_VERSION_ERROR   0x18
 DSP Version Error. More...
 
#define AS_ATTENTION_SUB_CODE_BASEBAND_ERROR   0x19
 BaseBand Error. More...
 
#define AS_ATTENTION_SUB_CODE_STREAM_PARSER_ERROR   0x1A
 Stream Parser Error. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_LOAD_DONE   0x1B
 DSP Load Done. More...
 
#define AS_ATTENTION_SUB_CODE_RECSTART   0x1C
 Rec Start Action Done. More...
 
#define AS_ATTENTION_SUB_CODE_RECSTOP   0x1D
 Rec Stop Action Done. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_LOG_ALLOC_ERROR   0x1E
 DSP Debug Dump Log Alloc Error. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_ASSETION_FAIL   0x1F
 DSP Assertion Fail. More...
 
#define AS_ATTENTION_SUB_CODE_DSP_SEND_ERROR   0x20
 DSP Send Fail. More...
 
#define AS_ATTENTION_SUB_CODE_ALLOC_HEAP_MEMORY   0x21
 Allocate memory of heap area. More...
 
#define AS_ATTENTION_SUB_CODE_NUM   AS_ATTENTION_SUB_CODE_ALLOC_HEAP_MEMORY
 

Detailed Description

Macro Definition Documentation

◆ AS_ATTENTION_SUB_CODE_DMA_UNDERFLOW

#define AS_ATTENTION_SUB_CODE_DMA_UNDERFLOW   0x01

DMA Underflow.

DMA tranfering queue became empty because of DMA read/write request
may be slower than DMA transfer speed. To avoid this, request DMA transfer
faster than transfer speed. (tranfer speed : 48000 samples/sec)

◆ AS_ATTENTION_SUB_CODE_DMA_OVERFLOW

#define AS_ATTENTION_SUB_CODE_DMA_OVERFLOW   0x02

DMA Overflow.

DMA captureing queue became full because of DMA read/write request
may be faster than DMA transfer speed. To avoid this, request DMA capture
faster than capture speed. (capture speed : 48000 samples/sec)

◆ AS_ATTENTION_SUB_CODE_DMA_ERROR

#define AS_ATTENTION_SUB_CODE_DMA_ERROR   0x03

DMA Error.

DMA error returned from DMW H/W. It may be wrong register setting.

◆ AS_ATTENTION_SUB_CODE_APU_QUEUE_FULL

#define AS_ATTENTION_SUB_CODE_APU_QUEUE_FULL   0x04

APU Queue Full Error.

DSP response may be delayed and command buffer became full.

◆ AS_ATTENTION_SUB_CODE_SIMPLE_FIFO_UNDERFLOW

#define AS_ATTENTION_SUB_CODE_SIMPLE_FIFO_UNDERFLOW   0x05

SimpleFIFO Underflow.

Simple fifo between application and sdk became empty. Insertion speed
may be slower than extraction. Coordinate task priority of application
to avoid queue remain decreaseing.

◆ AS_ATTENTION_SUB_CODE_SIMPLE_FIFO_OVERFLOW

#define AS_ATTENTION_SUB_CODE_SIMPLE_FIFO_OVERFLOW   0x06

SimpleFIFO Overflow.

Simple fifo between application and sdk became full. Extraction speed
may be slower than Insertion. Coordinate task priority of application
to avoid queue remain increaseing.

◆ AS_ATTENTION_SUB_CODE_ILLEGAL_REQUEST

#define AS_ATTENTION_SUB_CODE_ILLEGAL_REQUEST   0x07

Illegal Request.

Cannot accept this event on current state.

◆ AS_ATTENTION_SUB_CODE_INTERNAL_STATE_ERROR

#define AS_ATTENTION_SUB_CODE_INTERNAL_STATE_ERROR   0x08

Internal State Error.

Internal State Error.

◆ AS_ATTENTION_SUB_CODE_UNEXPECTED_PARAM

#define AS_ATTENTION_SUB_CODE_UNEXPECTED_PARAM   0x09

Unexpected Parameter.

The command parameter may be wrong. Revise command parameters.

◆ AS_ATTENTION_SUB_CODE_QUEUE_POP_ERROR

#define AS_ATTENTION_SUB_CODE_QUEUE_POP_ERROR   0x0A

Internal Queue Pop Error.

The internal process queue is already empty but tried to extraction.

◆ AS_ATTENTION_SUB_CODE_QUEUE_PUSH_ERROR

#define AS_ATTENTION_SUB_CODE_QUEUE_PUSH_ERROR   0x0B

Internal Queue Push Error.

The internal process queue is already full but tried to insertion.

◆ AS_ATTENTION_SUB_CODE_QUEUE_MISSING_ERROR

#define AS_ATTENTION_SUB_CODE_QUEUE_MISSING_ERROR   0x0C

Internal Queue Missing Error.

The queue became empty unexpectedly.

◆ AS_ATTENTION_SUB_CODE_MEMHANDLE_ALLOC_ERROR

#define AS_ATTENTION_SUB_CODE_MEMHANDLE_ALLOC_ERROR   0x0D

Memory Handle Alloc Error.

All Memory handles may be used. Response from DSP may be delayed or get stacked up.

◆ AS_ATTENTION_SUB_CODE_MEMHANDLE_FREE_ERROR

#define AS_ATTENTION_SUB_CODE_MEMHANDLE_FREE_ERROR   0x0E

Memory Handle Free Error.

The handle may be already freed.

◆ AS_ATTENTION_SUB_CODE_TASK_CREATE_ERROR

#define AS_ATTENTION_SUB_CODE_TASK_CREATE_ERROR   0x0F

Task Create Error.

Task context cannot create.
Revise max task creation number on menu config.

◆ AS_ATTENTION_SUB_CODE_RESOURCE_ERROR

#define AS_ATTENTION_SUB_CODE_RESOURCE_ERROR   0x10

Instance Resource Error.

A class instanse could not create or delete.
Check if there duplicate creation of audio objects/components. And, check heap area size too.

◆ AS_ATTENTION_SUB_CODE_DECODED_SIZE_ZERO

#define AS_ATTENTION_SUB_CODE_DECODED_SIZE_ZERO   0x11

Decoded size equal zero.

Decoded PCM size euqals to 0, Provided ES data may be broken.

◆ AS_ATTENTION_SUB_CODE_DSP_LOAD_ERROR

#define AS_ATTENTION_SUB_CODE_DSP_LOAD_ERROR   0x12

DSP Load Error.

Tried to load DSP binary to sub core but it was failed.
DSP binary may not be stored on dsp load path.

◆ AS_ATTENTION_SUB_CODE_DSP_UNLOAD_ERROR

#define AS_ATTENTION_SUB_CODE_DSP_UNLOAD_ERROR   0x13

DSP Unload Error.

Tried to unload DSP binary from sub core but it was failed.
DSP binary may not loaded.

◆ AS_ATTENTION_SUB_CODE_DSP_EXEC_ERROR

#define AS_ATTENTION_SUB_CODE_DSP_EXEC_ERROR   0x14

DSP Exec Error.

The data or command which sent to DSP may not be correct format.

◆ AS_ATTENTION_SUB_CODE_DSP_RESULT_ERROR

#define AS_ATTENTION_SUB_CODE_DSP_RESULT_ERROR   0x15

DSP Result Error.

DSP result error.

◆ AS_ATTENTION_SUB_CODE_DSP_ILLEGAL_REPLY

#define AS_ATTENTION_SUB_CODE_DSP_ILLEGAL_REPLY   0x16

DSP Illegal Reply.

Command packet from DSP may be broken. If uses multi DSP, Check duplication of command buffer.

◆ AS_ATTENTION_SUB_CODE_DSP_UNLOAD_DONE

#define AS_ATTENTION_SUB_CODE_DSP_UNLOAD_DONE   0x17

DSP Unload Done.

DSP unload done notification.

◆ AS_ATTENTION_SUB_CODE_DSP_VERSION_ERROR

#define AS_ATTENTION_SUB_CODE_DSP_VERSION_ERROR   0x18

DSP Version Error.

Loaded DSP binary version is differ from expected.

◆ AS_ATTENTION_SUB_CODE_BASEBAND_ERROR

#define AS_ATTENTION_SUB_CODE_BASEBAND_ERROR   0x19

BaseBand Error.

Baseband power may be off. Power on baseband first.

◆ AS_ATTENTION_SUB_CODE_STREAM_PARSER_ERROR

#define AS_ATTENTION_SUB_CODE_STREAM_PARSER_ERROR   0x1A

Stream Parser Error.

ES parsed result may be differ from Player initialize parameters. Match parameters and ES data.

◆ AS_ATTENTION_SUB_CODE_DSP_LOAD_DONE

#define AS_ATTENTION_SUB_CODE_DSP_LOAD_DONE   0x1B

DSP Load Done.

DSP binary load done.

◆ AS_ATTENTION_SUB_CODE_RECSTART

#define AS_ATTENTION_SUB_CODE_RECSTART   0x1C

Rec Start Action Done.

Recording start.

◆ AS_ATTENTION_SUB_CODE_RECSTOP

#define AS_ATTENTION_SUB_CODE_RECSTOP   0x1D

Rec Stop Action Done.

Recording stop.

◆ AS_ATTENTION_SUB_CODE_DSP_LOG_ALLOC_ERROR

#define AS_ATTENTION_SUB_CODE_DSP_LOG_ALLOC_ERROR   0x1E

DSP Debug Dump Log Alloc Error.

Log area remain size is less than required size. The log area may be used by Other DSPs.

◆ AS_ATTENTION_SUB_CODE_DSP_ASSETION_FAIL

#define AS_ATTENTION_SUB_CODE_DSP_ASSETION_FAIL   0x1F

DSP Assertion Fail.

DSP internal error occured and DSP cannot keep processing.

◆ AS_ATTENTION_SUB_CODE_DSP_SEND_ERROR

#define AS_ATTENTION_SUB_CODE_DSP_SEND_ERROR   0x20

DSP Send Fail.

Inter CPU commucation with DSP is failed.

◆ AS_ATTENTION_SUB_CODE_ALLOC_HEAP_MEMORY

#define AS_ATTENTION_SUB_CODE_ALLOC_HEAP_MEMORY   0x21

Allocate memory of heap area.

Notify that allocated from the heap area without using the memory pool that uses shared memory.