This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

f28m35的调试问题



我在F28M35双核调试的时候,必须去掉C28程序里面的AD设置 InitSysCtrl()程序里的关于AD部分的设置//    (**InitAnalogSystemClock)(ACLKDIV4);

//    EALLOW;

//     Initialize the Analog Sub-System and set the clock divider to divide by 4

//    while((**AnalogClockEnable)(AnalogConfig1,ADC1_ENABLE));    // Enable ADC 1

//    while((**AnalogClockEnable)(AnalogConfig2,ADC2_ENABLE));    // Enable ADC 2

//    (**Device_Cal)();

//    while((**AnalogClockDisable)(AnalogConfig1,ADC1_ENABLE));   // Disable ADC1

//    while((**AnalogClockDisable)(AnalogConfig2,ADC2_ENABLE));   // Disable ADC2

//    EDIS;

   // Initialize the Analog Sub-System and set the clock divider to divide by 4

//    (**InitAnalogSystemClock)(ACLKDIV4);

   EALLOW;

//    while((**AnalogClockEnable)(AnalogConfig1,ADC1_ENABLE)); // Enable ADC 1

//    while((**AnalogClockEnable)(AnalogConfig2,ANALOGCONFIG2ALL)); // Enable

                                                                 // ADC 2,

                                                                 // COMP1,2,3,

要把上面的程序去掉双核才能运行,否则C28X进入0X3FF7ED,而M3核运行到 IPCMtoCBootControlSystem(CBROM_MTOC_BOOTMODE_BOOT_FROM_FLASH);

请专家解答?

  • 楼主在调试时,请确保按照以下步骤操作。

    如果楼主是这样操作的,请使用F28M35x_examples_Dual\blinky下面的例程试一下。这个例程我这边确认是没有问题的,两个核都可以在FLASH中跑起来。

    1:[Launch Selected Configuration]

    2:[Connect Target] Master Subsystem

    3:[Connect Target] Control Subsystem

    4:[Load Program] Master Subsystem(blinky_dc_m3.out)

    5:[Load Program] Control Subsystem(blinky_dc_c28.out)

    6:[Reset CPU] Control Subsystem

    7:[CPU Reset] Master Subsystem

    8:[CPU Restart] Master Subsystem

    8:[RUN] Master Subsystem

    9:[RUN] Control Subsystem {do not do a restart}