lpcware

Dual Core Application SysTick on Slave

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by JoeE on Tue Jun 24 12:32:30 MST 2014
Hello,
I am trying to setup a dual core test application with an LPC4370 (lpc-link2).
The slave program (running on m0app) should
1. switch of the LED - this is ok
2. toggle an output pin - also ok
3. toggle the board LED by using a SysTick Event - not running

So the Problem is that the slave application is activated but not responding to the SysTick Event.
Question:
1 Is it possible to make the slave respond to the SysTick Interrupt?
2 Is it generally possible to respond to Interrupts by the slave?
3 Is the m0app coprocessor equipped with all the periphery as the m4 main processor or will it respond to Interrupts generated by the m4 main processor? EG. does it have own Timers,  SSP etc.

Thank you for any hints

Regards JoeE

Here is the relevant code from the m0aa:


#if defined (__USE_LPCOPEN)
#if !defined(NO_BOARD_LIB)
    // Read clock settings and update SystemCoreClock variable
    SystemCoreClockUpdate();
    // Set up and initialize all required blocks and
    // functions related to the board hardware
    Board_Init();

    // Set the LED to the state Off
    Board_LED_Set(0, false);                                                         //running                                                  
#endif
#endif
SysTick_Config(SystemCoreClock / TICKRATE_HZ1);       // will activate SysTick
    // TODO: insert code here

    // Force the counter to be placed into memory
    volatile static int i = 0 ;
    // Enter an infinite loop, just incrementing a counter
    while(1) {
        i++ ;
        Chip_GPIO_SetPinToggle(LPC_GPIO_PORT,5, 8);          //running
    }
    return 0 ;
}

void SysTick_Handler(void)
{
static int x = 0;
if (x++ > 500) {
Board_LED_Toggle(0);                                       //not running
x = 0;}
}

Outcomes