The stack requirements for the QTouch library should be accounted for and the stack size adjusted in the user’s project for proper operation of the software when using the IAR IDE. This section lists the stack usage for the different variants of the QTouch and QMatrix acquisition method libraries applicable to the IAR compiler tool chain.
When using the IAR IDE / compiler tool chain, the map file generated for the application will list total CSTACK & RSTACK requirements. Adjust the total CSTACK and RSTACK values in the IAR project options to be greater than the values listed in the map file.
QTouch Acquisition method Libraries : Stack usage for IAR compiler tool chain |
||
---|---|---|
Configuration |
CSTACK size |
RSTACK size |
Single port pair - only keys (4 / 8 channels ) |
0x30 |
0x28 |
Single port pair – keys/ rotors/ sliders (4/8 channel) |
0x40 |
0x2C |
Two port pairs - only keys keys (16 channel) |
0x50 |
0x28 |
Two port pairs – keys/ rotors/ sliders (16 channel) |
0x60 |
0x2C |
QMatrix Acquisition method Libraries : Stack usage for IAR compiler tool chain |
|||
---|---|---|---|
Number of channels |
Configuration |
CSTACK size |
RSTACK size |
4 |
ONLY KEYS |
0x20 |
0x20 |
4 |
KEYS/ROTOR/SLIDER |
0x30 |
0x20 |
8 |
ONLY KEYS |
0x25 |
0x20 |
8 |
KEYS/ROTOR/SLIDER |
0x35 |
0x20 |
16 |
ONLY KEYS |
0x30 |
0x20 |
16 |
KEYS/ROTOR/SLIDER |
0x40 |
0x20 |
32 |
ONLY KEYS |
0x35 |
0x25 |
32 |
KEYS/ROTOR/SLIDER |
0x45 |
0x25 |
56 |
ONLY KEYS |
0x45 |
0x25 |
56 |
KEYS/ROTOR/SLIDER |
0x55 |
0x25 |
64 |
ONLY KEYS |
0x45 |
0x25 |
64 |
KEYS/ROTOR/SLIDER |
0x55 |
0x25 |