Timer initialization prompts build error SPC560 test program
- January 4, 2019
- 4 replies
- 2804 views
Hello,
I have built LED blinky test program in SPC560B-DIS eval, I am setting and clearing LEDs in eval bord. I have introduced delay "osalThreadDelayMilliseconds(500);" between set and clear.
I have used below code for my application, but it throws build error please find attached build error. Please guide to fix the error,
Note if I am commenting line "stm_lld_start(&STMD1,stm0_config);" starts working. but if including throws build error
#include "components.h"
#include "stm_lld_cfg.h"
int main(void)
{
componentsInit();
/* Enable Interrupts */
irqIsrEnable();
/* Activates STM0 Driver */
stm_lld_start(&STMD1,stm0_config);
/* Enable channels and start global counter */
stm_lld_enable(&STMD1);
for (;;)
{
pal_lld_setpad(PORT_C, PIN_GPIO34_LED);
osalThreadDelayMilliseconds(500); // Delay 500 ms
pal_lld_clearpad(PORT_C, PIN_GPIO34_LED);
osalThreadDelayMilliseconds(500); // Delay 500 ms
}
}
