AnsweredAssumed Answered

question about CCES and adi_initialize.c

Question asked by mattp Employee on Jun 27, 2014
Latest reply on Jul 2, 2014 by mattp

Hello. I noticed some strange behavior with CCES 1.1.0 and adi_initialize.c and thought that I should mention it to you.

 

I started with the the device programmer (serial) project in the ADSP-BF526_EZKIT-Rel1.0.0 BSP. Its adi_initialize.c looked like this:

***************************************************************************

#include "adi_initialize.h"

int32_t adi_initpinmux(void); /* auto-generated code */

 

static int32_t adi_initInterrupts(void);

 

int32_t adi_initComponents(void) {

    int32_t result = 0;

    result = adi_initInterrupts();

    if (result == 0) {

        result = adi_initpinmux(); /* auto-generated code (order:0) */

    }

 

    return result;

}

 

static int32_t adi_initInterrupts(void) {

    int32_t result = 0;

 

#ifdef __HAS_SEC__

    result = adi_sec_Init();

#endif

 

    return result;

}

***************************************************************************

 

Then I changed the processor setting from BF526 Rev 0.2 to BF524 Rev 0.2. Then its adi_initialize.c was regenerated and looked like this:

***************************************************************************

#include <sys/platform.h>

#ifdef __ADI_HAS_SEC__

#include <services/int/adi_sec.h>

#endif

 

#include "adi_initialize.h"

 

 

int32_t adi_initComponents(void)

{

    int32_t result = 0;

 

#ifdef __ADI_HAS_SEC__

    result = adi_sec_Init();

#endif

 

    return result;

}

***************************************************************************

and the device programmer DXE file stopped working on the BF526 EZ-Board. As you can see, some important source code is missing.

 

Then I changed the processor setting back to BF524 Rev 0.2. Then its adi_initialize.c was regenerated and remained looking like this:

***************************************************************************

#include <sys/platform.h>

#ifdef __ADI_HAS_SEC__

#include <services/int/adi_sec.h>

#endif

 

#include "adi_initialize.h"

 

 

int32_t adi_initComponents(void)

{

    int32_t result = 0;

 

#ifdef __ADI_HAS_SEC__

    result = adi_sec_Init();

#endif

 

    return result;

}

***************************************************************************

and the device programmer DXE file still was not working on the BF526 EZ-Board.

 

Then I replaced the adi_initialize.c file with the original one from the BSP, rebuilt, and the device programmer DXE file started workign on the BF526 EZ-Board.

 

Is there a way to make CCES auto-generate a adi_initialize.c file with the correct source code to program the EZ-Board?

 

-Matt

Outcomes