STM32F446RE - Arduino - upload error

Please can someone help, I have been trying to use the SMT32F446RE with my Arduino IDE but I get this message all the time, even a simple blink program. Does = specify a file name
or directory name on the target
(F = file, D = directory)?

This problem I see on both my Windows 11 Laptop and desktop PC's

can you copy the error message text and post it using code tags < CODE >?
what specific SMT32F446RE dev board are you using? give a link?
which Tools>Board do you select? what Board part number?
how do you program it? e.g. STM32CubeProgrammer (SWD), STM32CubeProgrammer (serial)??

Thanks for replying, Cube works perfectly, this is purely an Arduino issue. Will happen even with a basic blink program. Board is as above and correctly selected within Arduino.

how have you setup the SMT32F446RE using the Arduino IDE Tools>Board menu?
e.g.


the board part number, upload method, etc

what is the error message you get?

If you get this message all the time have you found a fix and if so how do you solve it?

what message?

Good news - problem solved. The problem is when changing the firmware version to work with DCC-EX using the using the ST-linkUpgrade.exe by default this makes 3 changes "STM32 + mass storage + vcp", you wont see this unless you click on "change type". The reason this is a problem is in Arduino when selecting the correct board ie Nucleo-64 selecting correct board ie in my case "STM32F446RE" the "upload method defaulted to "mass storage". This should have been STM32CubeProgrammer (SWD) . everything is now working correctly. Many thanks for your support and hope my findings will help others