This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debug -> Go In valid ELF file

Hi,

I am a beginner with nrf9160 DK and followed the instruction in https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_programming.html#gs-programming to build and programm the example mqtt_simple. But in step 6, when i click Debug -> Go following warning occurs even though the Project is built.

Then i click Yes and following error occurs:

Do you know what is the Problem? Thank you

Regards,

Linh

Parents Reply
  • I go to path <sourcecode_root>\ncs\nrf in cmd as admin and then do git checkout v1.1.0, west update.

    The result of "git rev-parse HEAD" in side my <NCS folder>/nrf is

    d3130d77559e2206a2541b09dd26e9be2f8532ed

    Then I opened the Project again with checking "Clean build folder" check box. But now I can't event build the Project with Build -> Build Solution. It Looks like this after "Build Solution"

    should I try git checkout and west update again or try an other Version of NCS?

Children
  • The problem might be due to a too-long file path.

    Try to move your NCS directory closer to the root of your file system.

  • Hi,

    Thank you for your answer. I try do move to other directory and it's work with Segger Embedded Studio v 4.3. With verson 4.4 there are a Problem with Target -> Download zephyr/merged.hex. At least it works for one of them so it's ok.

    Regards,

    Linh

  • Hi, great to hear that it is now working for you!

    However, I am interested in knowing more about the error you get in SES v4.42a.

    If it is not too much to ask, could you change the drop-down menu in the "Output" panel from "Tasks" to "Output" and send me the output?

    Also, you can try to run "nrfjprog -e" in a terminal, then download the application from SES v4.42a. I believe it should work then.

    Best regards,

    Didrik

  • Hi, 

    Hier is the Output. 

    Where should i run nrfjprog -e. i try to run it in cmd.exe but got a message that the command nrfjprog is not found. By the way i cannot install  nRF Command Line Tools . After running the nRF-Command-Line-Tools_10_6_0_Installer.exe I got the following Log file. Maybe, it is relevant.

    [29EC:27A8][2020-02-18T11:57:31]i001: Burn v3.11.1.2318, Windows v10.0 (Build 16299: Service Pack 0), path: C:\WINDOWS\Temp\{0B2BE5FE-FCAE-40FE-BE91-AC1005372E2C}\.cr\nRF-Command-Line-Tools_10_6_0_Installer.exe
    [29EC:27A8][2020-02-18T11:57:31]i000: Initializing version variable 'SeggerNewVersion' to value '6.54.3.0'
    [29EC:27A8][2020-02-18T11:57:31]i000: Initializing version variable 'VC2017INSTALLINGVER' to value '14.15.26706'
    [29EC:27A8][2020-02-18T11:57:31]i009: Command Line: '-burn.clean.room=C:\Draeger\Install\nRF-Command-Line-Tools_10_6_0_Installer.exe -burn.filehandle.attached=688 -burn.filehandle.self=704'
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Draeger\Install\nRF-Command-Line-Tools_10_6_0_Installer.exe'
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Draeger\Install\'
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\lethuyli\AppData\Local\Temp\nRF-Command-Line-Tools_10_6_0_20200218115731.log'
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'WixBundleName' to value 'nRF-Command-Line-Tools_10_6_0'
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'WixBundleManufacturer' to value 'Nordic Semiconductor'
    [29EC:0BA4][2020-02-18T11:57:31]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
    [29EC:0BA4][2020-02-18T11:57:31]i000: Setting version variable 'WixBundleFileVersion' to value '10.6.0.0'
    [29EC:27A8][2020-02-18T11:57:31]i100: Detect begin, 3 packages
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting numeric variable 'SeggerInHKCU' to value 1
    [29EC:27A8][2020-02-18T11:57:31]i052: Condition 'SeggerInHKCU' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'SeggerHKCUInstallPath' to value 'C:\Program Files (x86)\SEGGER\JLink'
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting numeric variable 'SeggerInHKLM' to value 1
    [29EC:27A8][2020-02-18T11:57:31]i052: Condition 'SeggerInHKLM' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'SeggerHKLMInstallPath' to value 'C:\Program Files (x86)\SEGGER\JLink\'
    [29EC:27A8][2020-02-18T11:57:31]i052: Condition 'SeggerInHKCU' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'SeggerHKCUDir' to value 'C:\Program Files (x86)\SEGGER\JLink'
    [29EC:27A8][2020-02-18T11:57:31]i052: Condition 'SeggerInHKCU' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting numeric variable 'SeggerHKCUDllExists' to value 1
    [29EC:27A8][2020-02-18T11:57:31]i052: Condition 'SeggerInHKLM' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'SeggerHKLMDir' to value 'C:\Program Files (x86)\SEGGER\JLink\'
    [29EC:27A8][2020-02-18T11:57:31]i052: Condition 'SeggerInHKLM' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting numeric variable 'SeggerHKLMDllExists' to value 1
    [29EC:27A8][2020-02-18T11:57:31]i052: Condition 'SeggerInHKLM' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting version variable 'SeggerHKLMDllVersion' to value '6.54.3.0'
    [29EC:27A8][2020-02-18T11:57:31]i052: Condition 'SeggerInHKCU' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting version variable 'SeggerHKCUDllVersion' to value '6.54.3.0'
    [29EC:27A8][2020-02-18T11:57:31]i000: Setting string variable 'VC2017CURRENTVER' to value '14.0.23026'
    [29EC:27A8][2020-02-18T11:57:31]w120: Detected partially cached package: VC2017REDIST, invalid payload: VC2017REDIST, reason: 0x80070002
    [29EC:27A8][2020-02-18T11:57:31]i101: Detected package: SeggerJLink, state: Absent, cached: None
    [29EC:27A8][2020-02-18T11:57:31]i101: Detected package: VC2017REDIST, state: Absent, cached: Partial
    [29EC:27A8][2020-02-18T11:57:31]i101: Detected package: Tools, state: Absent, cached: None
    [29EC:27A8][2020-02-18T11:57:31]i199: Detect complete, result: 0x0
    [29EC:0BA4][2020-02-18T11:57:33]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
    [29EC:27A8][2020-02-18T11:57:33]i200: Plan begin, 3 packages, action: Install
    [29EC:27A8][2020-02-18T11:57:33]i052: Condition 'NOT ((SeggerHKCUDllExists AND (SeggerHKCUDllVersion > SeggerNewVersion)) OR (SeggerHKLMDllExists AND (SeggerHKLMDllVersion > SeggerNewVersion)))' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:33]w321: Skipping dependency registration on package with no dependency providers: SeggerJLink
    [29EC:27A8][2020-02-18T11:57:33]i000: Setting string variable 'WixBundleLog_SeggerJLink' to value 'C:\Users\lethuyli\AppData\Local\Temp\nRF-Command-Line-Tools_10_6_0_20200218115731_000_SeggerJLink.log'
    [29EC:27A8][2020-02-18T11:57:33]i052: Condition 'VC2017INSTALLINGVER > VC2017CURRENTVER OR NOT VC2017CURRENTVER' evaluates to true.
    [29EC:27A8][2020-02-18T11:57:33]w321: Skipping dependency registration on package with no dependency providers: VC2017REDIST
    [29EC:27A8][2020-02-18T11:57:33]i000: Setting string variable 'WixBundleLog_VC2017REDIST' to value 'C:\Users\lethuyli\AppData\Local\Temp\nRF-Command-Line-Tools_10_6_0_20200218115731_001_VC2017REDIST.log'
    [29EC:27A8][2020-02-18T11:57:33]i000: Setting string variable 'WixBundleRollbackLog_Tools' to value 'C:\Users\lethuyli\AppData\Local\Temp\nRF-Command-Line-Tools_10_6_0_20200218115731_002_Tools_rollback.log'
    [29EC:27A8][2020-02-18T11:57:33]i000: Setting string variable 'WixBundleLog_Tools' to value 'C:\Users\lethuyli\AppData\Local\Temp\nRF-Command-Line-Tools_10_6_0_20200218115731_002_Tools.log'
    [29EC:27A8][2020-02-18T11:57:33]i201: Planned package: SeggerJLink, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
    [29EC:27A8][2020-02-18T11:57:33]i201: Planned package: VC2017REDIST, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: Yes, dependency: None
    [29EC:27A8][2020-02-18T11:57:33]i201: Planned package: Tools, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
    [29EC:27A8][2020-02-18T11:57:33]i299: Plan complete, result: 0x0
    [29EC:27A8][2020-02-18T11:57:33]i300: Apply begin
    [29EC:27A8][2020-02-18T11:57:33]i010: Launching elevated engine process.
    [29EC:27A8][2020-02-18T11:57:33]i011: Launched elevated engine process.
    [29EC:27A8][2020-02-18T11:57:33]i012: Connected to elevated engine.
    [4390:1E48][2020-02-18T11:57:33]i358: Pausing automatic updates.
    [4390:1E48][2020-02-18T11:57:33]i359: Paused automatic updates.
    [4390:1E48][2020-02-18T11:57:33]i360: Creating a system restore point.
    [4390:1E48][2020-02-18T11:57:34]w363: Could not create system restore point, error: 0x80070422. Continuing...
    [4390:1E48][2020-02-18T11:57:34]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}, options: 0x7, disable resume: No
    [4390:1E48][2020-02-18T11:57:34]i000: Caching bundle from: 'C:\WINDOWS\Temp\{63469B05-D81C-4956-8CC3-3CC340941A7B}\.be\nRF-Command-Line-Tools_10_6_0_Installer.exe' to: 'C:\ProgramData\Package Cache\{e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}\nRF-Command-Line-Tools_10_6_0_Installer.exe'
    [4390:1E48][2020-02-18T11:57:34]i320: Registering bundle dependency provider: {e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}, version: 10.6.0.0
    [4390:1E48][2020-02-18T11:57:34]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}, resume: Active, restart initiated: No, disable resume: No
    [29EC:44B4][2020-02-18T11:57:34]i336: Acquiring container: WixAttachedContainer, copy from: C:\Draeger\Install\nRF-Command-Line-Tools_10_6_0_Installer.exe
    [29EC:44B4][2020-02-18T11:57:34]i000: Setting string variable 'WixBundleLastUsedSource' to value 'C:\Draeger\Install\'
    [29EC:4880][2020-02-18T11:57:34]e000: Error 0x80070570: Failed to extract all files from container, erf: 1:4:0
    [29EC:44B4][2020-02-18T11:57:34]e000: Error 0x80070570: Failed to begin and wait for operation.
    [29EC:44B4][2020-02-18T11:57:34]e000: Error 0x80070570: Failed to extract payload: a1 from container: WixAttachedContainer
    [29EC:44B4][2020-02-18T11:57:34]e312: Failed to extract payloads from container: WixAttachedContainer to working path: C:\WINDOWS\Temp\{63469B05-D81C-4956-8CC3-3CC340941A7B}\791476BEFF3BE2E9F0B4E8C649803278D5A874B1, error: 0x80070570.
    [29EC:44B4][2020-02-18T11:57:34]w350: Applied non-vital package: SeggerJLink, encountered error: 0x80070570. Continuing...
    [4390:3BFC][2020-02-18T11:57:34]e000: Error 0x80070002: Failed to find payload: VC2017REDIST in working path: C:\WINDOWS\Temp\{63469B05-D81C-4956-8CC3-3CC340941A7B}\VC2017REDIST and unverified path: C:\ProgramData\Package Cache\.unverified\VC2017REDIST
    [4390:3BFC][2020-02-18T11:57:34]e000: Error 0x80070002: Failed to cache payload: VC2017REDIST
    [29EC:44B4][2020-02-18T11:57:34]e314: Failed to cache payload: VC2017REDIST from working path: C:\WINDOWS\Temp\{63469B05-D81C-4956-8CC3-3CC340941A7B}\VC2017REDIST, error: 0x80070002.
    [29EC:44B4][2020-02-18T11:57:34]e349: Application requested retry of payload: VC2017REDIST, encountered error: 0x80070002. Retrying...
    [29EC:44B4][2020-02-18T11:57:37]i336: Acquiring container: WixAttachedContainer, copy from: C:\Draeger\Install\nRF-Command-Line-Tools_10_6_0_Installer.exe
    [29EC:27D0][2020-02-18T11:57:37]e000: Error 0x80070570: Failed to extract all files from container, erf: 1:4:0
    [29EC:44B4][2020-02-18T11:57:37]e000: Error 0x80070570: Failed to begin and wait for operation.
    [29EC:44B4][2020-02-18T11:57:37]e000: Error 0x80070570: Failed to extract payload: a2 from container: WixAttachedContainer
    [29EC:44B4][2020-02-18T11:57:37]e312: Failed to extract payloads from container: WixAttachedContainer to working path: C:\WINDOWS\Temp\{63469B05-D81C-4956-8CC3-3CC340941A7B}\791476BEFF3BE2E9F0B4E8C649803278D5A874B1, error: 0x80070570.
    [29EC:27A8][2020-02-18T11:57:37]e000: Error 0x80070570: Failed while caching, aborting execution.
    [4390:1E48][2020-02-18T11:57:37]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}, resume: None, restart: None, disable resume: No
    [4390:1E48][2020-02-18T11:57:37]i330: Removed bundle dependency provider: {e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}
    [4390:1E48][2020-02-18T11:57:37]i352: Removing cached bundle: {e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}, from path: C:\ProgramData\Package Cache\{e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}\
    [4390:1E48][2020-02-18T11:57:37]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e284d2b3-83f5-4edf-b60d-5d7ba3fc153a}, resume: None, restart initiated: No, disable resume: No
    [29EC:27A8][2020-02-18T11:57:37]i399: Apply complete, result: 0x80070570, restart: None, ba requested restart:  No

  • We have seen that issue internally as well.

    If you have nRF Connect for Desktop, you can use the programmer application there instead of nrfjprog.

Related