Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Is part of **nanoFramework** toolbox, along with other various tools that are re

It makes use of several 3rd party tools:

- Espressif esptool.
- Espressif esptool
You can find the esptool and licensing information on the repository [here](http://github.com/espressif/esptool).
- ST DfuSe USB.
You can find the source, licensing information and documentation [here](https://www.st.com/en/development-tools/stsw-stm32080.html).
- ST-LINK Utility.
- QMKDfuSe
Tool based on STM DfusSe tool. You can find the source, licensing information and documentation [here](https://github.com/qmk/qmk_dfuse).
- ST-LINK Utility
You can find the source, licensing information and documentation [here](https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-link004.html).
- Texas Instruments Uniflash
You can find the Uniflash tool and licensing information [here](http://www.ti.com/tool/download/UNIFLASH).
Expand Down
Binary file added lib/stdfu/qmk-dfuse.exe
Binary file not shown.
Binary file removed lib/stdfu/x64/STDFU.dll
Binary file not shown.
Binary file removed lib/stdfu/x64/STTubeDevice30.dll
Binary file not shown.
Binary file removed lib/stdfu/x86/STDFU.dll
Binary file not shown.
Binary file removed lib/stdfu/x86/STTubeDevice30.dll
Binary file not shown.
35 changes: 0 additions & 35 deletions nanoFirmwareFlasher/Exceptions/BadDfuProtocolVersionException.cs

This file was deleted.

31 changes: 0 additions & 31 deletions nanoFirmwareFlasher/Exceptions/CantReadDfuDescriptorException.cs

This file was deleted.

31 changes: 0 additions & 31 deletions nanoFirmwareFlasher/Exceptions/CantReadUsbDescriptorException.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
//
// Copyright (c) 2020 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//

using System;
using System.Runtime.Serialization;

namespace nanoFramework.Tools.FirmwareFlasher
Expand Down
33 changes: 33 additions & 0 deletions nanoFirmwareFlasher/Exceptions/DfuOperationFailedException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// Copyright (c) 2020 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//

using System;
using System.Runtime.Serialization;

namespace nanoFramework.Tools.FirmwareFlasher
{
/// <summary>
/// Verification of DFU write failed.
/// </summary>
[Serializable]
internal class DfuOperationFailedException : Exception
{
public DfuOperationFailedException()
{
}

public DfuOperationFailedException(string message) : base(message)
{
}

public DfuOperationFailedException(string message, Exception innerException) : base(message, innerException)
{
}

protected DfuOperationFailedException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
28 changes: 0 additions & 28 deletions nanoFirmwareFlasher/Exceptions/DfuVerificationFailedException.cs

This file was deleted.

6 changes: 0 additions & 6 deletions nanoFirmwareFlasher/ExitCodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ public enum ExitCodes : int
[Display(Name = "No DFU device found. Make sure it's connected and has booted in DFU mode")]
E1000 = 1000,

/// <summary>
/// Error with DFU file
/// </summary>
[Display(Name = "Error with DFU file")]
E1001 = 1001,

/// <summary>
/// DFU file doesn't exist
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions nanoFirmwareFlasher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
}
catch (Exception ex)
{
// exception with DFU file
_exitCode = ExitCodes.E1001;
// exception with DFU operation
_exitCode = ExitCodes.E1003;
_extraMessage = ex.Message;
}
}
Expand Down
Loading