Search
cd NUCLEO\ by\ Terminal/Debug/ make clean make
Commands make compiles your code and generates a .bin file which is executable by your Nucleo board. Note that if your machine cannot find the compiler, you may need to add it to append it to your PATH variable:
make
.bin
PATH=$PATH:*PATH TO COMPILER*
PATH=$PATH:/overlay/pivot/opt/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.17.0.201812190825/tools/compiler/bin
Go ahead and copy NUCLEO\ by\ Terminal.bin file to your Nucleo board. You should know the proper command for this action so try it for yourself. Here is the answer:
NUCLEO\ by\ Terminal.bin
cp NUCLEO\ by\ Terminal.bin /media/YOUR_USER_NAME/NODE_F446RE
Replace YOUR_USER_NAME with your PC username. Congratulations, you have uploaded your first code to the Nucleo board. Wait what code?
YOUR_USER_NAME
main.c
cd ../Core/Src/
The file main.c is the file that you just uploaded to the board and your board is now executing this. Lets change this file and make our board blink an LED.
vim
HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_5); HAL_Delay(1000);
Go ahead and save the modifications of main.c.
makefile
cd ../../Debug/
make clean
make cp NUCLEO\ by\ Terminal.bin /media/YOUR_USER_NAME/NOD_F446RE
.sh
sudo bash FILENAME
FILENAME
y
n
STMicroelectronics STM32CubeIDE
File
New
STM32 Project
Board Selection
Part Number Search
NUCLEO-F401RE
NUCELO-F446RE
Board List
Next
Choose a project name and click Finish.
Finish
yes
core/src/main
while(1){}
/
Run
Debug As
STM32 MCU C/C++ Application
OK
Switch
F8
Now your code has been transferred to the Nucleo Board, CONGRATUlATIONS!.