NUCLEO_F401RE on VS Codium HELP #504
-
|
I currently have difficulties flashing the hello world example project onto my NUCLEO_F401RE. I am currently using the insider version of VS Codium, and PYOCD as upload method. The current state of my project is that I have 0 problem building the .elf using the "All" target. But "flash-" doesn't work. Here's the output when I try to flash-{MyProject}: [main] Configuring project: MyProject Below is the lineI want to talk about:
Initially I don't know why as I have already include the upload method in cmake-variants.yaml
Fill name of your targer which has to corespond totarget name in targets.json5 file or custom_targets.json5 in case of custom target.For simplified just replace every occurrence of YOUR_MBED_TARGET with Mbed target name.For example LPC1768 or NUCLEO_L452RE_Pdefault: NUCLEO_F401RE # default variant (choose) from below |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Currently there is no upload method config file for NUCLEO_F401RE. You may create a 'NUCLEO_F401RE.cmake' inside the 'mbed-os\targets\upload_method_cfg' folder. This file should be very similar to the existing 'NUCLEO_F446RE.cmake', except for the different chip model name. Or you can enable upload methods in your app's CMakeLists.txt: set(MBED_UPLOAD_ENABLED TRUE)
set(PYOCD_UPLOAD_ENABLED TRUE)
set(PYOCD_TARGET_NAME STM32F401RETx)
set(PYOCD_CLOCK_SPEED 4000k)
set(STM32CUBE_UPLOAD_ENABLED TRUE)
if ("${STM32CUBE_CONNECT_COMMAND}" STREQUAL "")
set(STM32CUBE_CONNECT_COMMAND -c port=SWD mode=UR)
set(STM32CUBE_GDBSERVER_ARGS -d -k)
endif() |
Beta Was this translation helpful? Give feedback.
Currently there is no upload method config file for NUCLEO_F401RE. You may create a 'NUCLEO_F401RE.cmake' inside the 'mbed-os\targets\upload_method_cfg' folder. This file should be very similar to the existing 'NUCLEO_F446RE.cmake', except for the different chip model name.
Or you can enable upload methods in your app's CMakeLists.txt: