Yes, that all seems good - stm32loader needs a serial connection to the chip, which you won't have.
The short-hand to use st-flash to flash the board is just STM32F4DISCOVERY=1 make flash.
The error you're getting is almost certainly because you haven't erased the chip first, so it's still got the 'old' code you saved in it. As it says in http://www.espruino.com/Other+Boards, just hold down Button1 while booting (which will stop Espruino automatically loading the saved program). Then type 'save()' to save a correct (but Empty) JavaScript program back into flash.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, that all seems good - stm32loader needs a serial connection to the chip, which you won't have.
The short-hand to use st-flash to flash the board is just
STM32F4DISCOVERY=1 make flash
.The error you're getting is almost certainly because you haven't erased the chip first, so it's still got the 'old' code you saved in it. As it says in http://www.espruino.com/Other+Boards, just hold down Button1 while booting (which will stop Espruino automatically loading the saved program). Then type 'save()' to save a correct (but Empty) JavaScript program back into flash.