diff --git a/boards.txt b/boards.txt index 414f56b9..ab8725fc 100644 --- a/boards.txt +++ b/boards.txt @@ -43,6 +43,7 @@ feather52.menu.softdevice.s132v510dual=5.1.0 Dual, S132 5.1.0 feather52.menu.softdevice.s132v510dual.build.sd_flags=-DS132 -DSD_VER=510 feather52.menu.softdevice.s132v510dual.build.sd_name=s132 feather52.menu.softdevice.s132v510dual.build.sd_version=5.1.0 +feather52.menu.softdevice.s132v510dual.build.sd_fwid=0x00A5 feather52.menu.softdevice.s132v510dual.build.ldscript=bluefruit52_s132_5.1.0_dual.ld feather52.menu.softdevice.s132v510dual.build.bootfile=dual/feather52_bootloader_5.1.0_s132_dual feather52.menu.softdevice.s132v510dual.upload.maximum_size=151552 @@ -52,6 +53,7 @@ feather52.menu.softdevice.s132v510single=5.1.0 Single, S132 5.1.0 feather52.menu.softdevice.s132v510single.build.sd_flags=-DS132 -DSD_VER=510 feather52.menu.softdevice.s132v510single.build.sd_name=s132 feather52.menu.softdevice.s132v510single.build.sd_version=5.1.0 +feather52.menu.softdevice.s132v510single.build.sd_fwid=0x00A5 feather52.menu.softdevice.s132v510single.build.ldscript=bluefruit52_s132_5.1.0_single.ld feather52.menu.softdevice.s132v510single.build.bootfile=single/feather52_bootloader_5.1.0_s132_single feather52.menu.softdevice.s132v510single.upload.maximum_size=303104 diff --git a/changelog.md b/changelog.md index 71621a35..e97c0a66 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ ## 0.9.0 +## 0.8.1 + +- Prevent sketch compiled with S132 v2 upload to device running S132 v5 and vice versa. + ## 0.8.0 ## Core diff --git a/cores/nRF5/utility/utilities.c b/cores/nRF5/utility/utilities.c index a5e926c0..aad0cafb 100644 --- a/cores/nRF5/utility/utilities.c +++ b/cores/nRF5/utility/utilities.c @@ -45,7 +45,6 @@ static lookup_entry_t const sd_lookup_items[] = { { .key = 0x0088, .data = "S132 2.0.1" }, - { .key = 0x009D, .data = "S132 5.0.0" }, { .key = 0x00A5, .data = "S132 5.1.0" }, }; diff --git a/platform.txt b/platform.txt index 8cbed859..83cf40fc 100644 --- a/platform.txt +++ b/platform.txt @@ -100,7 +100,7 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" ## Creat dfu package zip file -recipe.objcopy.zip.pattern="{tools.nrfutil.cmd}" dfu genpkg --dev-type 0x0052 --application "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.zip" +recipe.objcopy.zip.pattern="{tools.nrfutil.cmd}" dfu genpkg --dev-type 0x0052 --sd-req {build.sd_fwid} --application "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.zip" ## Save bin recipe.output.tmp_file_bin={build.project_name}.bin diff --git a/tools/nrfutil-0.5.2/binaries/win32/nrfutil.exe b/tools/nrfutil-0.5.2/binaries/win32/nrfutil.exe index d4942115..f87ae4ee 100644 Binary files a/tools/nrfutil-0.5.2/binaries/win32/nrfutil.exe and b/tools/nrfutil-0.5.2/binaries/win32/nrfutil.exe differ diff --git a/tools/nrfutil-0.5.2/nordicsemi/__main__.py b/tools/nrfutil-0.5.2/nordicsemi/__main__.py index 688b59b1..0e197c5d 100644 --- a/tools/nrfutil-0.5.2/nordicsemi/__main__.py +++ b/tools/nrfutil-0.5.2/nordicsemi/__main__.py @@ -287,8 +287,8 @@ def serial(package, port, baudrate, flowcontrol): click.echo("Failed to upgrade target. Error is: {0}".format(e.message)) click.echo("") click.echo("Possible causes:") - click.echo("- Bootloader, SoftDevice or Application on target " - "does not match the requirements in the DFU package.") + click.echo("- Selected Bootloader version does not match the one on Bluefruit device.") + click.echo(" Please upgrade the Bootloader or select correct version in Tools->Bootloader.") click.echo("- Baud rate must be 115200, Flow control must be off.") click.echo("- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.")