Skip to content

Commit 8e599d1

Browse files
authored
Merge pull request drowe67#259 from drowe67/ms-remove-dfu
Remove DFU targets and update documentation
2 parents 530a89d + 1590eb0 commit 8e599d1

File tree

7 files changed

+19
-3420
lines changed

7 files changed

+19
-3420
lines changed

stm32/CMakeLists.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,11 @@ include(cmake/STM32_Lib.cmake)
114114
# Macro for elf->bin
115115
macro(elf2bin target)
116116
add_custom_command(TARGET ${target}
117-
POST_BUILD COMMAND ${CMAKE_OBJCOPY} -O binary ${target}.elf ${target}.bin
117+
POST_BUILD COMMAND ${CMAKE_OBJCOPY} -O binary ${target}.elf ${target}.bin && ${CMAKE_OBJCOPY} -O ihex ${target}.elf ${target}.hex
118118
COMMENT "Creating binary for ${target}")
119119
set_source_files_properties(${target}.bin PROPERTIES GENERATED TRUE)
120120
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" APPEND PROPERTY
121-
ADDITIONAL_MAKE_CLEAN_FILES ${target}.bin)
122-
endmacro()
123-
124-
# Macro for elf->bin
125-
macro(elf2dfu target)
126-
add_custom_command(TARGET ${target}
127-
POST_BUILD COMMAND ${CMAKE_OBJCOPY} -O ihex ${target}.elf ${target}.hex && ${CMAKE_SOURCE_DIR}/support/hex2dfu.py ${target}.hex ${target}.dfu
128-
COMMENT "Creating dfu file for ${target}")
129-
set_source_files_properties(${target}.bin PROPERTIES GENERATED TRUE)
130-
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" APPEND PROPERTY
131-
ADDITIONAL_MAKE_CLEAN_FILES ${target}.hex ${target}.dfu)
121+
ADDITIONAL_MAKE_CLEAN_FILES ${target}.bin ${target}.hex)
132122
endmacro()
133123

134124
# This macro just adds generation of a map file with the same name as the executable and .map suffix
@@ -318,4 +308,3 @@ add_mapped_executable(sm1000v5 ${SM1000_SRCS} ${SYSTEM_SRCS})
318308
target_link_libraries(sm1000v5 stm32f4_adac stm32f4 CMSIS)
319309
target_compile_options(sm1000v5 PRIVATE "-O3")
320310
elf2bin(sm1000v5)
321-
elf2dfu(sm1000v5)

stm32/doc/sm1000_manual.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -102,29 +102,28 @@ Settings are saved when you hold down BACK to leave the root menu.
102102

103103
You can program the flash memory on your SM1000 via USB using a Windows or Linux PC. Download the latest SM1000 firmware here:
104104

105-
Version | Date | Download .bin | Download .dfu | Release Notes
106-
:---: | --- | --- | --- | --- |
107-
1 | May 2015 | [sm1000.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000.bin) | | Original release with FreeDV 1600
108-
2 | July 2019 | [sm1000v2.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v2.bin) | [sm1000v2.dfu](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v2.dfu) | FreeDV 700D and morse menus
109-
3 | March 2020 | [sm1000v3.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v3.bin) | [sm1000v3.dfu](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v3.dfu) | Menu bug fixes, 700D modem improvements & automatic Mic EQ
110-
4 | May 2020 | [sm1000v4.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v4.bin) | [sm1000v4.dfu](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v4.dfu) | 700D sync logic to reduce stop burbling with no signal
111-
5 | August 2021 | [sm1000v5.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v5.bin) | [sm1000v5.dfu](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v5.dfu) | FreeDV 700E and Tx band pass filter for 700D & E
112-
113-
## Windows
105+
| Version | Date | Download .bin | Release Notes |
106+
|:---:|---|---|---|
107+
| 1 | May 2015 | [sm1000.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000.bin) | Original release with FreeDV 1600 |
108+
| 2 | July 2019 | [sm1000v2.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v2.bin) | FreeDV 700D and morse menus |
109+
| 3 | March 2020 | [sm1000v3.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v3.bin) | Menu bug fixes, 700D modem improvements & automatic Mic EQ |
110+
| 4 | May 2020 | [sm1000v4.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v4.bin) | 700D sync logic to reduce stop burbling with no signal |
111+
| 5 | August 2021 | [sm1000v5.bin](http://www.rowetel.com/downloads/codec2/smartmic/sm1000v5.bin) | FreeDV 700E and Tx band pass filter for 700D & E |
114112

115-
Find and install the **DfuSeDemo** software by searching on the [ST web site](http://www.st.com).
113+
## Windows
116114

117-
For Windows use the ```.dfu``` firmware file provided above:
115+
Find and install the **STM32CubeProgrammer** software by searching on the [ST web site](http://www.st.com).
118116

119117
1. Connect the SM1000 USB to a Windows PC.
120-
1. Run the ```DfuSeDemo``` Application.
121118
1. Apply power with PTT held down, then release PTT.
122-
1. The ```Available DFU Devices``` window should show ```STM Device in DFU Mode```. If not, use the arrow to select that option. Verify it shows a ```Vender ID``` of 0483, and a ```Product ID``` of DF11.
123-
1. In the lower right quadrant of the screen, under ```Upgrade or Verify Action``` select ```Choose```.
124-
1. Locate your DFU file you want to program into the SM1000, and press ```Open```.
125-
1. Select ```Verify after download``` option.
126-
1. Select ```Upgrade``` and confirm ```Yes``` when asked, and the firmware procedure will commence.
127-
1. A message when complete that it was successful. If the message returns that it was unsuccessful, then first try the ```Upgrade``` again. If the upgrade fails twice, you may have to start this complete procedure again.
119+
1. Run the `STM32CubeProgrammer` application and select the down arrow on the left side, and navigate to the "Erasing & Programming" section.
120+
1. Select the `Verify programming` option.
121+
1. In the "File path" on the left-hand side, select Open file and navigate to the .bin file you'd like to flash.
122+
1. Select "USB" from the drop-down list on the upper right and push the Refresh button next to the Port drop-down in the "USB configuration" area. The SM1000 will appear as "USB1" or similar in the list; select that entry.
123+
1. Click on the Connect button.
124+
1. Ensure that "PID" displays as DF11 and "VID" as 0483.
125+
1. Select `Start Programming` and the firmware procedure will commence.
126+
1. A message in the log at the bottom of the window will display once complete.
128127

129128
Power cycle the SM1000 and the new firmware will run.
130129

stm32/support/hex2dfu.py

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)