cypd3175 power sdk how to increase stack size of callback timer ?

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Geromino
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

void led_timer_cb (

    uint8_t port,

    timer_id_t id)

{

    (void)port;

    (void)id;

    gpio_set_value (FW_LED_GRREN_GPIO_PORT_PIN, !(gpio_read_value (FW_LED_GRREN_GPIO_PORT_PIN)));

    timer_start (0, LED_TIMER_ID, LED_TIMER_PERIOD, led_timer_cb);

}

if i put   more  code  i have  stack overflow  for example  send I2C master    and  expeted recieve  answer from slave

0 Likes
1 Reply
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi ,

It should be no issue to add send I2C master (Write or read) in the timer call back function. Could you please kindly screen shot the error you have been met for stack overflow?

Best Regards,

Lisa

0 Likes