Dual Core Application SysTick on Slave

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Dual Core Application SysTick on Slave

1,013 次查看
lpcware
NXP Employee
NXP Employee
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;}
}
标签 (1)
0 项奖励
回复
3 回复数

974 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Jul 07 01:25:17 MST 2014
A new version of the LPC43xx user manual with this information in it is currently in progress.

Regards,
LPCXpresso Support
0 项奖励
回复

974 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by omegahacker on Sun Jul 06 09:11:57 MST 2014
Until you actually update the manual to make it blindingly clear that the per-core SysTick that's present on 99.9% of all Cortex parts is *not* present on the M0's, you're going to keep getting people asking this question and pissed off at why your chips aren't doing what they're expected to.  The forum is NOT an acceptable substitute.
0 项奖励
回复

974 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Jun 24 12:50:17 MST 2014
Sorry, but the cortex-m0 on the lpc43xx series does NOT have Systick. Search this forum for plenty of discussion on this subject... You will probably want to use the RIT.
0 项奖励
回复