AnsweredAssumed Answered

code shows running but isn't actually running in CCES for BF609 EZKIT

Question asked by lalitha123 on Aug 27, 2014
Latest reply on Aug 27, 2014 by CraigG

Hello,

 

I tried to run a simple code on BF609 ezkit (rev 0.1) in CCES 1.0.3, code for core0 is

/*****************************************************************************
 * proj1_Core0.c
 *****************************************************************************/

#include <ccblkfn.h>
#include "adi_initialize.h"
#include "proj1_Core0.h"
section("L1_data_a")
int i=5;
section("L1_code")
int main(void)
{


    /**
     * Initialize managed drivers and/or services that have been added to 
     * the project.
     * @return zero on success 
     */
    adi_initComponents();
    
    /**
     * The default startup code does not include any functionality to allow
     * core 0 to enable core 1. A convenient way to enable core 1 is to use the
     * 'adi_core_1_enable' function. 
     */
//    adi_core_1_enable();

    /* Begin adding your custom code here */

    ++i;
    i++;
    i=i+6;

    return 0;
}
++i;
    i++;
    i=i+6;

    retur




 

 

Code for core1 is following

 

/*****************************************************************************
 * proj1_Core1.c
 *****************************************************************************/

#include <ccblkfn.h>
#include "adi_initialize.h"
#include "proj1_Core1.h"

int main(void)
{
    /**
     * Initialize managed drivers and/or services that have been added to 
     * the project.
     * @return zero on success 
     */
    adi_initComponents();
    
    /* Begin adding your custom code here */

    return 0;
}



 

Now when I tried to debug, and run the code in core0, I couldn't find stepin step out highlighted and moreover the program counter is always at the address 0x07f3ffffe, how many ever times i run the code, it is at the same address as shown in the disassembly below.

pic_core0.jpg

Why is it showing all the L2_sram heap and stack memory when I don't use them?

Outcomes