You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
482 B

  1. target_link_libraries(
  2. uexample_test PRIVATE
  3. --static -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group
  4. -T${PROJECT_SOURCE_DIR}/platform/stm32disco/stm32f405x6.ld
  5. -nostartfiles -Wl,--gc-sections
  6. cmsis)
  7. add_custom_command(
  8. TARGET uexample_test POST_BUILD
  9. COMMAND ${OBJCOPY} -Obinary uexample_test uexample_test.bin
  10. COMMENT "Invoking: objcopy")
  11. add_custom_target(
  12. flash
  13. COMMAND st-flash write uexample_test.bin 0x8000000
  14. COMMENT "Flashing device")