Here is what I think was the last L6474 config I used before moving to STEP01:
Code:
//#define std_config
#ifndef std_config
uint16_t tmp;
// decrease slew-rate and config_toff, per Enrico ??? get defaults from sh #0
tmp = ( L6474_GetParam(0, L6474_CONFIG ) & ~L6474_CONFIG_VOLT_SR ) & ~L6474_CONFIG_TOFF_MASK;
L6474_SetParam( ALL_SHIELDS, L6474_CONFIG, tmp | L6474_CONFIG_SR_320V_us | L6474_CONFIG_TOFF_016us );
L6474_SetParam( ALL_SHIELDS, L6474_T_FAST, L6474_FAST_STEP_16us | L6474_TOFF_FAST_10us );
L6474_SetParam( ALL_SHIELDS, L6474_TON_MIN, L6474_TON_MIN_4us );
L6474_SetParam( ALL_SHIELDS, L6474_TOFF_MIN, L6474_TON_MIN_17us ); // cf L6474_TOFF_MIN
#endif
Enrico is an STM guy who provided some suggestions to reduce heating. I can't be sure these are exactly what he recommended. The get and set procedures are my own which are fairly self explanatory. The defined constants should be equally so.
HTH.