AnsweredAssumed Answered

problem with stm32-mat/target example "test irr filter pil int32"

Question asked by naser moravej on Sep 15, 2017

Hi everyone.

Windows 10

Matlab 2017a

stm32f407g

I downloaded "stm32-mat_target" which contains stm32-mat/target hands on and many examples. one of them is "test irr filter pil int32", that is a filter designed in simulink. I went step by step with hands on but I got this error in keil.

    *** Using Compiler 'V5.06 update 3 (build 300)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'IIR_Filter_int32 Configuration'
compiling coder_assumptions_hwimpl.c...
..\..\IIR_Filter_int32\Src\coder_assumptions_hwimpl.c(10): error:  #35: #error directive: "CA_CHECK_FLOATING_POINT_ENABLED should always be defined!"
     #error "CA_CHECK_FLOATING_POINT_ENABLED should always be defined!"
..\..\IIR_Filter_int32\Src\coder_assumptions_hwimpl.c: 0 warnings, 1 error
compiling codeinstr_rtiostream.c...
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xilcomms_rtiostream.h(18): error:  #20: identifier "MemUnit_T" is undefined
          typedef MemUnit_T IOUnit_T;
..\..\IIR_Filter_int32\Src\codeinstr_rtiostream.c(8): error:  #20: identifier "CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE" is undefined
  static IOUnit_T codeInstrWriteBuffer[CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE];
..\..\IIR_Filter_int32\Src\codeinstr_rtiostream.c(38): error:  #20: identifier "MemUnit_T" is undefined
      return &codeInstrWriteBuffer[
AYLOAD_IDX];
..\..\IIR_Filter_int32\Src\codeinstr_rtiostream.c: 0 warnings, 3 errors
compiling xilcomms_rtiostream.c...
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xilcomms_rtiostream.h(18): error:  #20: identifier "MemUnit_T" is undefined
          typedef MemUnit_T IOUnit_T;
..\..\IIR_Filter_int32\Src\xilcomms_rtiostream.c(22): error:  #20: identifier "RTIOSTREAM_RX_BUFFER_BYTE_SIZE" is undefined
  static IOUnit_T xilCommsBuffer[
TIOSTREAM_RX_BUFFER_SIZE];
..\..\IIR_Filter_int32\Src\xilcomms_rtiostream.c(22): error:  #20: identifier "MEM_UNIT_BYTES" is undefined
  static IOUnit_T xilCommsBuffer[
TIOSTREAM_RX_BUFFER_SIZE];
..\..\IIR_Filter_int32\Src\xilcomms_rtiostream.c(52): error:  #20: identifier "MemUnit_T" is undefined
      MemUnit_T appIdMemUnit = (MemUnit_T)appId;
..\..\IIR_Filter_int32\Src\xilcomms_rtiostream.c(52): error:  #20: identifier "MemUnit_T" is undefined
      MemUnit_T appIdMemUnit = (MemUnit_T)appId;
..\..\IIR_Filter_int32\Src\xilcomms_rtiostream.c(52): error:  #65: expected a ";"
      MemUnit_T appIdMemUnit = (MemUnit_T)appId;
..\..\IIR_Filter_int32\Src\xilcomms_rtiostream.c(105): error:  #20: identifier "MemUnit_T" is undefined
      MemUnit_T appId;
..\..\IIR_Filter_int32\Src\xilcomms_rtiostream.c: 0 warnings, 7 errors
compiling codeinstr_data_stream.c...
..\..\IIR_Filter_int32\Inc\xil_interface_common.h(52): error:  #20: identifier "MemUnit_T" is undefined
     MemUnit_T * address;
..\..\IIR_Filter_int32\Inc\xil_interface_lib.h(27): error:  #20: identifier "MemUnit_T" is undefined
                                            uint32_T serverFcnId, MemUnit_T xilResponseId);
..\..\IIR_Filter_int32\Inc\codeinstr_data_stream.h(16): error:  #20: identifier "MemUnit_T" is undefined
  extern XIL_DATA_STREAM_ERROR_CODE codeInstrWriteData(const MemUnit_T *, uint32_T);
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xilcomms_rtiostream.h(18): error:  #20: identifier "MemUnit_T" is undefined
          typedef MemUnit_T IOUnit_T;
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(24): error:  #20: identifier "MemUnit_T" is undefined
  static MemUnit_T* commandComplete;
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(32): error:  #20: identifier "CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE" is undefined
      if (!codeInstrTgtAppSvcAllocBuffer(&pBuffer, CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE)) {
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(38): error:  #20: identifier "MemUnit_T" is undefined
      commandComplete = (MemUnit_T *) &codeInstrWriteBuffer[COMMAND_COMPLETE_IDX];
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(38): error:  #29: expected an expression
      commandComplete = (MemUnit_T *) &codeInstrWriteBuffer[COMMAND_COMPLETE_IDX];
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(65): error:  #20: identifier "MemUnit_T" is undefined
     if (codeInstrTgtAppSvcSend(pBuffer,
SED_WRITE_BUFFER_SIZE) == CODEINSTRTGTAPPSVC_ERROR) {             
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(78): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE codeInstrWriteData(const MemUnit_T * src, uint32_T size) {
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(87): error:  #20: identifier "CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE" is undefined
        if (codeInstrWriteDataAvail ==
RITE_BUFFER_SIZE) {
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(87): error:  #20: identifier "MemUnit_T" is undefined
        if (codeInstrWriteDataAvail ==
RITE_BUFFER_SIZE) {
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(93): error:  #20: identifier "CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE" is undefined
        bufferAvail =
RITE_BUFFER_SIZE - codeInstrWriteDataAvail;
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c(93): error:  #20: identifier "MemUnit_T" is undefined
        bufferAvail =
RITE_BUFFER_SIZE - codeInstrWriteDataAvail;
..\..\IIR_Filter_int32\Src\codeinstr_data_stream.c: 0 warnings, 14 errors
compiling IIR_Filter_int32_ca.c...
compiling rtiostream_utils.c...
compiling xil_data_stream.c...
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(20): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilWriteData(const MemUnit_T *, uint32_T);
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(22): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilReadData(MemUnit_T *, uint32_T );
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(24): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilDataFlush(MemUnit_T isEndOfXILStep);
..\..\IIR_Filter_int32\Inc\xil_interface_common.h(52): error:  #20: identifier "MemUnit_T" is undefined
     MemUnit_T * address;
..\..\IIR_Filter_int32\Inc\xil_interface_lib.h(27): error:  #20: identifier "MemUnit_T" is undefined
                                            uint32_T serverFcnId, MemUnit_T xilResponseId);
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xilcomms_rtiostream.h(18): error:  #20: identifier "MemUnit_T" is undefined
          typedef MemUnit_T IOUnit_T;
..\..\IIR_Filter_int32\Src\xil_data_stream.c(29): error:  #20: identifier "MemUnit_T" is undefined
  static MemUnit_T* commandResponseType;
..\..\IIR_Filter_int32\Src\xil_data_stream.c(37): error:  #20: identifier "RTIOSTREAM_TX_BUFFER_BYTE_SIZE" is undefined
      if (!xilTgtAppSvcAllocBuffer(&pBuffer,
IL_TX_BUFFER_MEMUNIT_SIZE)) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c(37): error:  #20: identifier "MEM_UNIT_BYTES" is undefined
      if (!xilTgtAppSvcAllocBuffer(&pBuffer,
IL_TX_BUFFER_MEMUNIT_SIZE)) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c(43): error:  #20: identifier "MemUnit_T" is undefined
      commandResponseType = (MemUnit_T *) &xilWriteBuffer[COMMAND_COMPLETE_IDX];
..\..\IIR_Filter_int32\Src\xil_data_stream.c(43): error:  #29: expected an expression
      commandResponseType = (MemUnit_T *) &xilWriteBuffer[COMMAND_COMPLETE_IDX];
..\..\IIR_Filter_int32\Src\xil_data_stream.c(67): error:  #20: identifier "MemUnit_T" is undefined
      if (xilTgtAppSvcSend(pBuffer,
SED_WRITE_BUFFER_SIZE) == XILTGTAPPSVC_ERROR) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c(79): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilWriteData(const MemUnit_T * src, uint32_T size) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c(88): error:  #20: identifier "RTIOSTREAM_TX_BUFFER_BYTE_SIZE" is undefined
        if (xilWriteDataAvail ==
RITE_BUFFER_SIZE) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c(88): error:  #20: identifier "MEM_UNIT_BYTES" is undefined
        if (xilWriteDataAvail ==
RITE_BUFFER_SIZE) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c(88): error:  #20: identifier "MemUnit_T" is undefined
        if (xilWriteDataAvail ==
RITE_BUFFER_SIZE) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c(94): error:  #20: identifier "RTIOSTREAM_TX_BUFFER_BYTE_SIZE" is undefined
        bufferAvail =
RITE_BUFFER_SIZE - xilWriteDataAvail;
..\..\IIR_Filter_int32\Src\xil_data_stream.c(94): error:  #20: identifier "MEM_UNIT_BYTES" is undefined
        bufferAvail =
RITE_BUFFER_SIZE - xilWriteDataAvail;
..\..\IIR_Filter_int32\Src\xil_data_stream.c(94): error:  #20: identifier "MemUnit_T" is undefined
        bufferAvail =
RITE_BUFFER_SIZE - xilWriteDataAvail;
..\..\IIR_Filter_int32\Src\xil_data_stream.c(106): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilReadData(MemUnit_T * dst, uint32_T size) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c(178): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilDataFlush(MemUnit_T isEndOfXILStep) {
..\..\IIR_Filter_int32\Src\xil_data_stream.c: 0 warnings, 21 errors
compiling coder_assumptions_rtiostream.c...
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xilcomms_rtiostream.h(18): error:  #20: identifier "MemUnit_T" is undefined
          typedef MemUnit_T IOUnit_T;
..\..\IIR_Filter_int32\Src\coder_assumptions_rtiostream.c(8): error:  #20: identifier "CA_TX_BUFFER_MEMUNIT_SIZE" is undefined
  static IOUnit_T coderAssumpWriteBuffer[CA_TX_BUFFER_MEMUNIT_SIZE];
..\..\IIR_Filter_int32\Src\coder_assumptions_rtiostream.c(38): error:  #20: identifier "MemUnit_T" is undefined
      return &coderAssumpWriteBuffer[
AYLOAD_IDX];
..\..\IIR_Filter_int32\Src\coder_assumptions_rtiostream.c: 0 warnings, 3 errors
compiling coder_assumptions_data_stream.c...
..\..\IIR_Filter_int32\Inc\xil_interface_common.h(52): error:  #20: identifier "MemUnit_T" is undefined
     MemUnit_T * address;
..\..\IIR_Filter_int32\Inc\xil_interface_lib.h(27): error:  #20: identifier "MemUnit_T" is undefined
                                            uint32_T serverFcnId, MemUnit_T xilResponseId);
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xilcomms_rtiostream.h(18): error:  #20: identifier "MemUnit_T" is undefined
          typedef MemUnit_T IOUnit_T;
..\..\IIR_Filter_int32\Src\coder_assumptions_data_stream.c(21): error:  #20: identifier "CA_TX_BUFFER_MEMUNIT_SIZE" is undefined
     const int WRITE_BUFFER_SIZE = CA_TX_BUFFER_MEMUNIT_SIZE - BUFFER_HEADER_SIZE;
..\..\IIR_Filter_int32\Src\coder_assumptions_data_stream.c(21): error:  #20: identifier "MemUnit_T" is undefined
     const int WRITE_BUFFER_SIZE = CA_TX_BUFFER_MEMUNIT_SIZE -
UFFER_HEADER_SIZE;
..\..\IIR_Filter_int32\Src\coder_assumptions_data_stream.c(45): error:  #20: identifier "CA_TX_BUFFER_MEMUNIT_SIZE" is undefined
      if (!coderAssumpTgtAppSvcAllocBuffer(&pBuffer, CA_TX_BUFFER_MEMUNIT_SIZE)) {
..\..\IIR_Filter_int32\Src\coder_assumptions_data_stream.c: 0 warnings, 6 errors
compiling xil_interface.c...
..\..\IIR_Filter_int32\Inc\xil_interface_common.h(52): error:  #20: identifier "MemUnit_T" is undefined
     MemUnit_T * address;
..\..\IIR_Filter_int32\Inc\xil_interface_lib.h(27): error:  #20: identifier "MemUnit_T" is undefined
                                            uint32_T serverFcnId, MemUnit_T xilResponseId);
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(20): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilWriteData(const MemUnit_T *, uint32_T);
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(22): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilReadData(MemUnit_T *, uint32_T );
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(24): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilDataFlush(MemUnit_T isEndOfXILStep);
..\..\IIR_Filter_int32\Inc\codeinstr_data_stream.h(16): error:  #20: identifier "MemUnit_T" is undefined
  extern XIL_DATA_STREAM_ERROR_CODE codeInstrWriteData(const MemUnit_T *, uint32_T);
..\..\IIR_Filter_int32\Src\xil_interface.c(60): error:  #20: identifier "MemUnit_T" is undefined
    if (codeInstrWriteData((MemUnit_T *) &numMemUnits, sizeof(numMemUnits)) !=
..\..\IIR_Filter_int32\Src\xil_interface.c(60): error:  #29: expected an expression
    if (codeInstrWriteData((MemUnit_T *) &numMemUnits, sizeof(numMemUnits)) !=
..\..\IIR_Filter_int32\Src\xil_interface.c(65): error:  #20: identifier "MemUnit_T" is undefined
    if (codeInstrWriteData((MemUnit_T *) &sectionId, sizeof(uint32_T)) !=
..\..\IIR_Filter_int32\Src\xil_interface.c(65): error:  #29: expected an expression
    if (codeInstrWriteData((MemUnit_T *) &sectionId, sizeof(uint32_T)) !=
..\..\IIR_Filter_int32\Src\xil_interface.c(70): error:  #20: identifier "MemUnit_T" is undefined
    if (codeInstrWriteData((MemUnit_T *) pData, numMemUnits) !=
..\..\IIR_Filter_int32\Src\xil_interface.c(70): error:  #29: expected an expression
    if (codeInstrWriteData((MemUnit_T *) pData, numMemUnits) !=
..\..\IIR_Filter_int32\Src\xil_interface.c(70): error:  #165: too few arguments in function call
    if (codeInstrWriteData((MemUnit_T *) pData, numMemUnits) !=
..\..\IIR_Filter_int32\Src\xil_interface.c(70): error:  #18: expected a ")"
    if (codeInstrWriteData((MemUnit_T *) pData, numMemUnits) !=
..\..\IIR_Filter_int32\Src\xil_interface.c(80): error:  #20: identifier "MemUnit_T" is undefined
      MemUnit_T memUnitData = XIL_RESPONSE_TYPE_SIZE;
..\..\IIR_Filter_int32\Src\xil_interface.c(99): error:  #20: identifier "MemUnit_T" is undefined
      memUnitData = (MemUnit_T) PIL_FLOAT_SIZE;
..\..\IIR_Filter_int32\Src\xil_interface.c(99): error:  #65: expected a ";"
      memUnitData = (MemUnit_T)
IL_FLOAT_SIZE;
..\..\IIR_Filter_int32\Src\xil_interface.c(104): error:  #20: identifier "MEM_UNIT_BYTES" is undefined
      memUnitData *= MEM_UNIT_BYTES;
..\..\IIR_Filter_int32\Src\xil_interface.c(202): error:  #20: identifier "MemUnit_T" is undefined
            xil_fcnid0_task1_output_u[tableIdx++].address = (MemUnit_T *)
..\..\IIR_Filter_int32\Src\xil_interface.c(202): error:  #29: expected an expression
            xil_fcnid0_task1_output_u[tableIdx++].address = (MemUnit_T *)
..\..\IIR_Filter_int32\Src\xil_interface.c(203): error:  #65: expected a ";"
              dataAddress;
..\..\IIR_Filter_int32\Src\xil_interface.c(200): warning:  #177-D: variable "dataAddress" was declared but never referenced
            void * dataAddress = (void *) &(i_Input);
..\..\IIR_Filter_int32\Src\xil_interface.c(207): error:  #20: identifier "MemUnit_T" is undefined
          xil_fcnid0_task1_output_u[tableIdx++].address = (MemUnit_T *) 0;
..\..\IIR_Filter_int32\Src\xil_interface.c(207): error:  #29: expected an expression
          xil_fcnid0_task1_output_u[tableIdx++].address = (MemUnit_T *) 0;
..\..\IIR_Filter_int32\Src\xil_interface.c(207): error:  #65: expected a ";"
          xil_fcnid0_task1_output_u[tableIdx++].address = (MemUnit_T *) 0;
..\..\IIR_Filter_int32\Src\xil_interface.c(283): error:  #20: identifier "MemUnit_T" is undefined
            xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress;
..\..\IIR_Filter_int32\Src\xil_interface.c(283): error:  #29: expected an expression
            xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress;
..\..\IIR_Filter_int32\Src\xil_interface.c(283): error:  #65: expected a ";"
            xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress;
..\..\IIR_Filter_int32\Src\xil_interface.c(281): warning:  #177-D: variable "dataAddress" was declared but never referenced
            void * dataAddress = (void *) &(o_Output);
..\..\IIR_Filter_int32\Src\xil_interface.c(287): error:  #20: identifier "MemUnit_T" is undefined
          xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) 0;
..\..\IIR_Filter_int32\Src\xil_interface.c(287): error:  #29: expected an expression
          xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) 0;
..\..\IIR_Filter_int32\Src\xil_interface.c(287): error:  #65: expected a ";"
          xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) 0;
..\..\IIR_Filter_int32\Src\xil_interface.c: 2 warnings, 30 errors
compiling xil_instrumentation.c...
compiling xil_rtiostream.c...
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xilcomms_rtiostream.h(18): error:  #20: identifier "MemUnit_T" is undefined
          typedef MemUnit_T IOUnit_T;
..\..\IIR_Filter_int32\Src\xil_rtiostream.c(8): error:  #20: identifier "RTIOSTREAM_TX_BUFFER_BYTE_SIZE" is undefined
  static IOUnit_T xilWriteBuffer[
IL_TX_BUFFER_MEMUNIT_SIZE];
..\..\IIR_Filter_int32\Src\xil_rtiostream.c(8): error:  #20: identifier "MEM_UNIT_BYTES" is undefined
  static IOUnit_T xilWriteBuffer[
IL_TX_BUFFER_MEMUNIT_SIZE];
..\..\IIR_Filter_int32\Src\xil_rtiostream.c(38): error:  #20: identifier "MemUnit_T" is undefined
      return &xilWriteBuffer[
AYLOAD_IDX];
..\..\IIR_Filter_int32\Src\xil_rtiostream.c: 0 warnings, 4 errors
compiling IIR_Filter_int32.c...
compiling xil_services.c...
..\..\IIR_Filter_int32\Inc\xil_interface_common.h(52): error:  #20: identifier "MemUnit_T" is undefined
     MemUnit_T * address;
..\..\IIR_Filter_int32\Inc\xil_interface_lib.h(27): error:  #20: identifier "MemUnit_T" is undefined
                                            uint32_T serverFcnId, MemUnit_T xilResponseId);
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(20): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilWriteData(const MemUnit_T *, uint32_T);
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(22): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilReadData(MemUnit_T *, uint32_T );
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(24): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilDataFlush(MemUnit_T isEndOfXILStep);
..\..\IIR_Filter_int32\Src\xil_services.c(22): error:  #35: #error directive: "CODER_ASSUMPTIONS_ENABLED should always be defined!"
     #error "CODER_ASSUMPTIONS_ENABLED should always be defined!"
..\..\IIR_Filter_int32\Src\xil_services.c: 0 warnings, 6 errors
compiling coder_assumptions_app.c...
..\..\IIR_Filter_int32\Inc\xil_interface_common.h(52): error:  #20: identifier "MemUnit_T" is undefined
     MemUnit_T * address;
..\..\IIR_Filter_int32\Inc\xil_interface_lib.h(27): error:  #20: identifier "MemUnit_T" is undefined
                                            uint32_T serverFcnId, MemUnit_T xilResponseId);
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(34): error:  #20: identifier "MemUnit_T" is undefined
     
A_STATIC_ASSERT(sizeof(MemUnit_T) == 1, MEMUNIT_T_NOT_SIZEOF_1);
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(37): error:  #20: identifier "MEM_UNIT_BYTES" is undefined
     CA_STATIC_ASSERT((sizeof(uint32_T) == 1) ? MEM_UNIT_BYTES == 4 :
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(72): error:  #757: "MemUnit_T" is not a type name
  static MemUnit_T pwsEnabled;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(76): error:  #757: "MemUnit_T" is not a type name
                                               const MemUnit_T resultType,
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(77): error:  #757: "MemUnit_T" is not a type name
                                               const MemUnit_T actual,
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(78): error:  #757: "MemUnit_T" is not a type name
                                               const MemUnit_T assumed) {
KB: Unexpected type: 0
<error type>KB: Unexpected type: 0
<error type>KB: Unexpected type: 0
error type>(80): error:  #65: expected a ";"
     MemUnit_T tmp;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(86): error:  #20: identifier "tmp" is undefined
     tmp = (MemUnit_T) result.status;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(86): error:  #65: expected a ";"
     tmp = (MemUnit_T) result.status;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(91): error:  #65: expected a ";"
     tmp = (MemUnit_T) result.msg;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(109): error:  #757: "MemUnit_T" is not a type name
     const MemUnit_T memUnitBytes = MEM_UNIT_BYTES;
KB: Unexpected type: 0
error type>(124): error:  #65: expected a ";"
      MemUnit_T commandId;  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(127): error:  #20: identifier "commandId" is undefined
      commandId = CA_PWS;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(136): error:  #65: expected a ";"
      pwsEnabled = (MemUnit_T)
A_Actual_HWImpl.portableWordSizes;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(144): error:  #165: too few arguments in function call
                                      (MemUnit_T) CA_PWS_CONFIG_SETTING,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(144): error:  #18: expected a ")"
                                      (MemUnit_T) CA_PWS_CONFIG_SETTING,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(159): error:  #65: expected a ";"
     MemUnit_T commandId;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(162): error:  #20: identifier "commandId" is undefined
     commandId = CA_HW_IMPL_SIZES_1;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(168): error:  #165: too few arguments in function call
           (MemUnit_T) CA_HW_IMPL_BIT_CHAR,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(168): error:  #18: expected a ")"
           (MemUnit_T) CA_HW_IMPL_BIT_CHAR,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(175): error:  #165: too few arguments in function call
           (MemUnit_T) CA_HW_IMPL_BIT_SHORT,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(175): error:  #18: expected a ")"
           (MemUnit_T) CA_HW_IMPL_BIT_SHORT,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(182): error:  #165: too few arguments in function call
           (MemUnit_T) CA_HW_IMPL_BIT_INT,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(182): error:  #18: expected a ")"
           (MemUnit_T) CA_HW_IMPL_BIT_INT,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(189): error:  #165: too few arguments in function call
           (MemUnit_T) CA_HW_IMPL_BIT_LONG,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(189): error:  #18: expected a ")"
           (MemUnit_T) CA_HW_IMPL_BIT_LONG,  
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(204): error:  #65: expected a ";"
     MemUnit_T commandId;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c(207): error:  #20: identifier "commandId" is undefined
     commandId = CA_HW_IMPL_SIZES_2;
..\..\IIR_Filter_int32\Src\coder_assumptions_app.c: 0 warnings, 30 errors
compiling xil_interface_lib.c...
..\..\IIR_Filter_int32\Inc\xil_interface_common.h(52): error:  #20: identifier "MemUnit_T" is undefined
     MemUnit_T * address;
..\..\IIR_Filter_int32\Inc\xil_interface_lib.h(27): error:  #20: identifier "MemUnit_T" is undefined
                                            uint32_T serverFcnId, MemUnit_T xilResponseId);
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(20): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilWriteData(const MemUnit_T *, uint32_T);
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(22): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilReadData(MemUnit_T *, uint32_T );
..\..\IIR_Filter_int32\Inc\xil_data_stream.h(24): error:  #20: identifier "MemUnit_T" is undefined
  XIL_DATA_STREAM_ERROR_CODE xilDataFlush(MemUnit_T isEndOfXILStep);
..\..\IIR_Filter_int32\Inc\codeinstr_data_stream.h(16): error:  #20: identifier "MemUnit_T" is undefined
  extern XIL_DATA_STREAM_ERROR_CODE codeInstrWriteData(const MemUnit_T *, uint32_T);
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xilcomms_rtiostream.h(18): error:  #20: identifier "MemUnit_T" is undefined
          typedef MemUnit_T IOUnit_T;
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(74): error:  #20: identifier "MemUnit_T" is undefined
      static MemUnit_T * uDataAddress = NULL;
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(110): error:  #20: identifier "MemUnit_T" is undefined
          MemUnit_T responseId,
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(128): error:  #20: identifier "MemUnit_T" is undefined
          if (xilWriteData((MemUnit_T *) &serverFcnId, sizeof(serverFcnId)) != XIL_DATA_STREAM_SUCCESS) {
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(128): error:  #29: expected an expression
          if (xilWriteData((MemUnit_T *) &serverFcnId, sizeof(serverFcnId)) != XIL_DATA_STREAM_SUCCESS) {
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(146): error:  #20: identifier "MemUnit_T" is undefined
  static XIL_INTERFACE_LIB_ERROR_CODE finalizeCommandResponse(XIL_RESPONSE_ERROR_ID errorId, MemUnit_T isEndOfXILStep)  {
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(159): error:  #20: identifier "MemUnit_T" is undefined
        MemUnit_T memUnitData = XIL_RESPONSE_ERROR;
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(164): error:  #20: identifier "MemUnit_T" is undefined
        memUnitData = (MemUnit_T) errorId;
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(164): error:  #65: expected a ";"
        memUnitData = (MemUnit_T) errorId;
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(323): error:  #20: identifier "MemUnit_T" is undefined
      MemUnit_T commandCode;    
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(327): error:  #20: identifier "MemUnit_T" is undefined
          xilReadData(&(commandCode),
IL_COMMAND_TYPE_SIZE);
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(351): error:  #20: identifier "MemUnit_T" is undefined
          xilReadData(((MemUnit_T*)&(cc.fcnId)), XIL_COMMAND_FCNID_SIZE);
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(351): error:  #29: expected an expression
          xilReadData(((MemUnit_T*)&(cc.fcnId)), XIL_COMMAND_FCNID_SIZE);
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(363): error:  #20: identifier "MemUnit_T" is undefined
          xilReadData(((MemUnit_T*)&(cc.commandIdx)), XIL_COMMAND_XILTID_SIZE);
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(363): error:  #29: expected an expression
          xilReadData(((MemUnit_T*)&(cc.commandIdx)), XIL_COMMAND_XILTID_SIZE);
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(547): error:  #20: identifier "MemUnit_T" is undefined
          MemUnit_T isEndOfXILStep = 1;
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(593): error:  #20: identifier "MemUnit_T" is undefined
                                     uint32_T svrFcnId, MemUnit_T xilResponseId) {
..\..\IIR_Filter_int32\Src\xil_interface_lib.c(609): error:  #20: identifier "MemUnit_T" is undefined
          MemUnit_T isEndOfXILStep = 0;
..\..\IIR_Filter_int32\Src\xil_interface_lib.c: 0 warnings, 24 errors
compiling STM32SerialRtiostream-Rtiostream.c...
compiling STM32SerialRtiostream-ProfilerTimer.c...
compiling stm32f4xx_hal_flash_ex.c...
compiling stm32f4xx_hal.c...
compiling stm32f4xx_hal_cortex.c...
compiling stm32f4xx_hal_flash.c...
compiling stm32f4xx_hal_uart.c...
compiling stm32f4xx_hal_dma_ex.c...
compiling stm32f4xx_hal_flash_ramfunc.c...
assembling startup_stm32f407xx.s...
compiling stm32f4xx_hal_rcc_ex.c...
compiling stm32f4xx_hal_gpio.c...
compiling stm32f4xx_hal_pwr_ex.c...
compiling stm32f4xx_hal_rcc.c...
compiling main.c...
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xil_interface_common.h(52): error:  #20: identifier "MemUnit_T" is undefined
     MemUnit_T * address;
C:\Program Files\MATLAB\R2017a\toolbox\rtw\targets\pil\c\xil_interface_lib.h(27): error:  #20: identifier "MemUnit_T" is undefined
                                            uint32_T serverFcnId, MemUnit_T xilResponseId);
..\..\Src\main.c: 0 warnings, 2 errors
compiling stm32f4xx_hal_pwr.c...
compiling system_stm32f4xx.c...
compiling stm32f4xx_it.c...
compiling stm32f4xx_hal_msp.c...
compiling stm32f4xx_hal_dma.c...
"IIR_Filter_int32 Configuration\IIR_Filter_int32 Configuration.axf" - 151 Error(s), 2 Warning(s).
Target not created.
Build Time Elapsed:  00:00:05

 

tnx

Outcomes