This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

main.py error

Hi

I am trying to flash a new firmware into my device through DFU via the programming python script. I use SDK7.2.0, and do:

ipy main.py -f c:\myproject.hex -a XXXXXXXXXXXX -m Application

I get following error, do not know what to do:

C:\Program Files\Nordic Semiconductor\Master Emulator\2.1.12.6
Sending file c:\smappeefroggee.hex to device DBF15DA71866
Programming the file as a APPLICATION. Using baud rate 1000000
[16:50:01.700] [EXCEPTION] 'type' object has no attribute 'BTLE_CMD_LE_WRITE_SCAN_PARAMETERS'
[16:50:01.700] Call stack:
[16:50:01.747]   File testerScriptCommon, line 468
[16:50:01.747]   File testerScriptCommon, line 435
[16:50:01.747]   File masteremulator, line 28
[16:50:01.747]   File <string>, line 4
[16:50:01.747]   File master_emulator.py, line 184
[16:50:01.747] number of errors: 1
[16:50:02.776] Not connected - Skipping

I am sure I got it working yesterday, but yesterday I also upgraded my MCP to version 3.9.0.6 - could this have something to do with the failure?

Parents
  • As far as I know, myproject.hex file is further not supported in MCP 3.9.0 because of init packet implementation (althoug feasible in GUI MCP). There is an omission in help.

    To make script working, myproject.zip must be generated with using nrf.exe instead.

    image description

  • I do not see referenced exception on my machine. Iron Python (2.7.5) script (MCP 3.9.0 win32, MasterEmulator.dll 2.1.12.6) and OTA DFU of an application.zip using S310, SDK 7.2.0 and MEFW_nrf51822_0.11.0_firmware_1M.hex running on nRF51422QFAAE0 works for me. There are some Installer disassemblers (www.legroom.net/.../uniextract), if you are interested.

Reply Children
No Data
Related