EmBitz

Full Version: programming 1.8V controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm using STM32F466 at 1.8V with Embitz 2.0. Sometimes it happens that ST-Linkv2 reads out "only" 1.79V and EBlink refuses to program the chip.
It would be nice if EBlink would accept 100mV tolerance here.
Well, that's easy to solve.
Just overrule the VCC in the interface settings by 1.8

[attachment=109]

Background:

If you look into the flash/f7_f4_f2.script file you can see where it did go wrong and how that VCC_VOLTAGE is overruling the detected voltage

Code:
<snip...>

        // Check the voltage and set the right flash strategy
        if (isScriptObject("VCC_VOLTAGE") && VCC_VOLTAGE>0)
        {
            voltage = VCC_VOLTAGE
            printf("CLI vcc voltage: %f \n", voltage)
        }
        else
            voltage = intrfApi.targetVoltage()

        if(voltage  < 1.8)                         <-- without override this throws your error
        {
           _n_throw(ERROR_VOLTAGE)
        }

<..snip>