Downloading with ST-Link V2. On f103 it works. Other thing like relays, i2c ,serial with bluetooth works normal on f407 after ST-Link.zmemw16 wrote: ↑Wed Jan 24, 2018 3:38 pmhow are you downloading to target ? if st-link or jtag, pretty sure the low bits of PB and a couple in PA get messed with.
use disableDebugPorts(); // in setup
use enableDebugPorts(); // in the code that terminates execution maybe on a button press ... ... ...
if its HAL you may need to check which mode debug is set to ? i use CubeMX and then in the sys device i select the debug mode, generate code & report to see the values and masks etc
usual questions btw
os, version, arduino version, which core, from where & when, download method & target is f407ve ?
That debug and HAL is new to me. For now I'l skip that part.
Win10, Arduino 1.8.5, STM32Generic, Today, ST-Link v2, STM32F407VE.
Same way and code works with F103 bluebill and Arduino Mega.