Skip to main content
Explorer
April 10, 2025
Question

TSLPRM_TOTAL_BANKS not calculated correctly?

  • April 10, 2025
  • 1 reply
  • 324 views

I have a U575VIT and am using 4 banks of touch giving 12 channels.

When I use the device configuration tool to configure it calculates the number of banks used to be 9 but should be 4?

It is defined in tsl_conf.h:

/** Total number of channels in application (range=1..255)
*/
#define TSLPRM_TOTAL_CHANNELS (12)

/** Total number of banks in application (range=1..255)
*/

#define TSLPRM_TOTAL_BANKS (9)

/** Total number of "Extended" TouchKeys in application (range=0..255)
*/
#define TSLPRM_TOTAL_TOUCHKEYS (0)

/** Total number of "Basic" TouchKeys in application (range=0..255)
*/
#define TSLPRM_TOTAL_TOUCHKEYS_B (12)

/** Total number of "Extended" Linear and Rotary sensors in application (range=0..255)
- Count also the 1-channel linear sensor used as TouchKey
*/

If I change the allowable limit to 9 (from 8) then it all works fine.

#if ((TSLPRM_TOTAL_BANKS < 1) || (TSLPRM_TOTAL_BANKS > 9))
#error "TSLPRM_TOTAL_BANKS is out of range (1 .. 8)."
#endif

 

Anyone have any ideas?

 

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    April 16, 2025

    Hello @DarrylStrong

    This issue was spotted previously with STM32U0 (Internal ticket numbers: Ticket 181891, Ticket 194437).

    It was corrected on U0 product, but the fix on the U5 is not yet implemented. 

    I will keep you updated!