This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

button and calendar

Hi,

I use the calendar to display on the screen the actual date. It works but now I want to display it only when I press a button, but the button doesn't work. When I press it, nothing is happening, the function bsp_event_handler is not scanned; but why? Maybe the problem comes from priority of interruption? I use the driver st7735 and sdk15.3.

Regards,

Lydie

Parents
  • I assume you are using the pca10040 board, am I right?

    In the sdk_config.h what is GPIOTE_CONFIG_IRQ_PRIORITY and SPI_DEFAULT_CONFIG_IRQ_PRIORITY?

    Try to set the spi priority to 7 and the gpiote priority to 6 and see what happens.

    If that doesn't help, try to disable all the acitivites related to st7735, and use the bsp library by itself to see if the conflict actually comes from there. 

    Best regards,

    Simon

Reply
  • I assume you are using the pca10040 board, am I right?

    In the sdk_config.h what is GPIOTE_CONFIG_IRQ_PRIORITY and SPI_DEFAULT_CONFIG_IRQ_PRIORITY?

    Try to set the spi priority to 7 and the gpiote priority to 6 and see what happens.

    If that doesn't help, try to disable all the acitivites related to st7735, and use the bsp library by itself to see if the conflict actually comes from there. 

    Best regards,

    Simon

Children
No Data
Related