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

SES show too many CC for timers

With SEGGER Embedded Studio 5.10d and nRF52840, the register view show TIMER0-2 with 6 CC registers but they only have 4.

It's quite confusing particularly when using the library because it doesn't assert when using those inexistent CC registers.

Parents
  • Hi 

    The SES debugger gets the peripheral definitions from the MDK files, more specifically nrf52840.h in the /modules/nrfx/mdk folder of the SDK. 

    Here all the timers are defined using the same NRF_TIMER_Type struct, which defines 6 CC registers, to avoid having to use different NRF_TIMER_Type structs for the different timers. 

    In other words it was decided to prioritize code readability and simplicity over getting a correct number of CC registers for all the timers. 

    Best regards
    Torbjørn

Reply
  • Hi 

    The SES debugger gets the peripheral definitions from the MDK files, more specifically nrf52840.h in the /modules/nrfx/mdk folder of the SDK. 

    Here all the timers are defined using the same NRF_TIMER_Type struct, which defines 6 CC registers, to avoid having to use different NRF_TIMER_Type structs for the different timers. 

    In other words it was decided to prioritize code readability and simplicity over getting a correct number of CC registers for all the timers. 

    Best regards
    Torbjørn

Children
Related