Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add external mcu update reference solution #3

Merged
merged 2 commits into from
Nov 15, 2018
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
4 changes: 4 additions & 0 deletions Samples/ExternalMcuUpdateNrf52/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.jlink
*.emSession
# Build output
_build/
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Copyright (c) 2014 - 2018, Nordic Semiconductor ASA

All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form, except as embedded into a Nordic
Semiconductor ASA integrated circuit in a product or a software update for
such product, must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.

3. Neither the name of Nordic Semiconductor ASA nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.

4. This software, with or without modification, must only be used with a
Nordic Semiconductor ASA integrated circuit.

5. Any software provided in binary form under this license must not be reverse
engineered, decompiled, modified and/or disassembled.

THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
These nRF52 firmware binaries are based on samples from Nordic Semiconductor ASA.
See the LICENSE.txt in this directory, and for more background, see the README.md in the
parent directory for this sample.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2046
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ExternalMcuUpdateNrf52", "ExternalMcuUpdateNrf52\ExternalMcuUpdateNrf52.vcxproj", "{DF7DD235-A2AC-4AAA-AD69-4308C3EAB5EE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Release|ARM = Release|ARM
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DF7DD235-A2AC-4AAA-AD69-4308C3EAB5EE}.Debug|ARM.ActiveCfg = Debug|ARM
{DF7DD235-A2AC-4AAA-AD69-4308C3EAB5EE}.Debug|ARM.Build.0 = Debug|ARM
{DF7DD235-A2AC-4AAA-AD69-4308C3EAB5EE}.Release|ARM.ActiveCfg = Release|ARM
{DF7DD235-A2AC-4AAA-AD69-4308C3EAB5EE}.Release|ARM.Build.0 = Release|ARM
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3366B1A6-4E35-4CB4-938F-1C2AFDC2A079}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClInclude Include="applibs_versions.h" />
<ClInclude Include="epoll_timerfd_utilities.h" />
<ClInclude Include="file_view.h" />
<ClInclude Include="mem_buf.h" />
<ClInclude Include="mt3620_rdb.h" />
<ClInclude Include="nordic\crc.h" />
<ClInclude Include="nordic\dfu_defs.h" />
<ClInclude Include="nordic\dfu_uart_protocol.h" />
<ClInclude Include="nordic\slip.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="epoll_timerfd_utilities.c" />
<ClCompile Include="file_view.c" />
<ClCompile Include="main.c" />
<ClCompile Include="mem_buf.c" />
<ClCompile Include="nordic\crc.c" />
<ClCompile Include="nordic\dfu_uart_protocol.c" />
<ClCompile Include="nordic\slip.c" />
</ItemGroup>
<ItemGroup>
<None Include="..\External NRF52 Firmware\blinkyV1.bin">
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
</None>
<None Include="..\External NRF52 Firmware\blinkyV1.dat">
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
</None>
<None Include="..\External NRF52 Firmware\s132_nrf52_6.1.0_softdevice.bin">
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
</None>
<None Include="..\External NRF52 Firmware\s132_nrf52_6.1.0_softdevice.dat">
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
</None>
<None Include="app_manifest.json" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{df7dd235-a2ac-4aaa-ad69-4308c3eab5ee}</ProjectGuid>
<Keyword>AzureSphere</Keyword>
<RootNamespace>ExternalMcuUpdateNrf52</RootNamespace>
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<ApplicationType>Linux</ApplicationType>
<ApplicationTypeRevision>1.0</ApplicationTypeRevision>
<TargetLinuxPlatform>Generic</TargetLinuxPlatform>
<LinuxProjectType>{D51BCBC9-82E9-4017-911E-C93873C4EA2B}</LinuxProjectType>
<DebugMachineType>Device</DebugMachineType>
<PlatformToolset>GCC_AzureSphere_1_0</PlatformToolset>
<ProjectName>ExternalMcuUpdateNrf52</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
<TargetApplicationRuntimeVersion>1+beta1</TargetApplicationRuntimeVersion>
<TargetSysroot>1+Beta1811</TargetSysroot>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
<TargetApplicationRuntimeVersion>1+beta1</TargetApplicationRuntimeVersion>
<TargetSysroot>1+Beta1811</TargetSysroot>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings" />
<ImportGroup Label="Shared" />
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
<ItemDefinitionGroup>
<ClCompile>
<AdditionalOptions>-Werror=implicit-function-declaration %(AdditionalOptions)</AdditionalOptions>
<TreatWarningAsError Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</TreatWarningAsError>
<TreatWarningAsError Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</TreatWarningAsError>
</ClCompile>
<Link>
<LibraryDependencies>applibs;pthread;gcc_s;c</LibraryDependencies>
<AdditionalOptions>-Wl,--no-undefined -nodefaultlibs %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="nordic">
<UniqueIdentifier>{251d4958-c0b9-43a2-aec3-9c1f4a3cdaae}</UniqueIdentifier>
</Filter>
<Filter Include="nordic\Header Files">
<UniqueIdentifier>{e838d76d-0774-4f0f-a394-a6e7b86b70ad}</UniqueIdentifier>
</Filter>
<Filter Include="nordic\Source Files">
<UniqueIdentifier>{969c1a73-ce87-4a50-92f8-a033fef401ee}</UniqueIdentifier>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{cc3fc6d3-723e-4ed5-b183-2ec6e3dbeb0c}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{1d30addb-54e8-442e-bc6c-9f1a3452e9a3}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{d0aeb53e-3afa-4b96-8ffb-cd284e920206}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="nordic\crc.h">
<Filter>nordic\Header Files</Filter>
</ClInclude>
<ClInclude Include="nordic\dfu_defs.h">
<Filter>nordic\Header Files</Filter>
</ClInclude>
<ClInclude Include="nordic\dfu_uart_protocol.h">
<Filter>nordic\Header Files</Filter>
</ClInclude>
<ClInclude Include="nordic\slip.h">
<Filter>nordic\Header Files</Filter>
</ClInclude>
<ClInclude Include="applibs_versions.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="epoll_timerfd_utilities.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="file_view.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="mem_buf.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="mt3620_rdb.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="nordic\slip.c">
<Filter>nordic\Source Files</Filter>
</ClCompile>
<ClCompile Include="nordic\crc.c">
<Filter>nordic\Source Files</Filter>
</ClCompile>
<ClCompile Include="nordic\dfu_uart_protocol.c">
<Filter>nordic\Source Files</Filter>
</ClCompile>
<ClCompile Include="main.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="epoll_timerfd_utilities.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="file_view.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="mem_buf.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="app_manifest.json" />
<None Include="..\External NRF52 Firmware\blinkyV1.bin">
<Filter>Resource Files</Filter>
</None>
<None Include="..\External NRF52 Firmware\blinkyV1.dat">
<Filter>Resource Files</Filter>
</None>
<None Include="..\External NRF52 Firmware\s132_nrf52_6.1.0_softdevice.bin">
<Filter>Resource Files</Filter>
</None>
<None Include="..\External NRF52 Firmware\s132_nrf52_6.1.0_softdevice.dat">
<Filter>Resource Files</Filter>
</None>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright (c) Microsoft Corporation. All rights reserved.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# License
For details on license, see LICENSE.txt in this directory. This license applies only to the files in this directory.
The files in the nordic subdirectory are under a different license.
# Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"SchemaVersion": 1,
"Name": "ExternalMcuUpdateNrf52",
"ComponentId": "12932655-bab6-4dc9-8250-d3d1481a469e",
"EntryPoint": "/bin/app",
"CmdArgs": [],
"TargetApplicationRuntimeVersion" : 1,
"Capabilities": {
"AllowedConnections": [],
"AllowedTcpServerPorts": [],
"AllowedUdpServerPorts": [],
"Gpio": [ 5, 12, 44 ],
"Uart": [ "ISU0" ],
"WifiConfig": false,
"NetworkConfig": false,
"SystemTime": false
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. */

#pragma once
// This header defines which struct versions will be used for applibs APIs.
#define WIFICONFIG_STRUCTS_VERSION 1
#define UART_STRUCTS_VERSION 1
Loading