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

NRF91 prj.conf udp_gps error

Hi,

I'd like to test the sample udp_gps but SES throwes an error and a warning. The warning says: Path/udp_gps/prj.conf:36 warning: attempt to assign the value 'y' to the undefined symbol NRF9160_GPS. The same worning is listed with the symbol NRF9160_GPS_LOG_LEVEL_DBG. I don't know what I should do to fix that. If the two symboles are not in the prj.conf, the project is created without an error/warning but it wont build. What can I do, that SES notices the two symboles?

KR, Sebastian

Parents
  • Hi

    The problem is you have to be on the master branch in order to use the 'nrf9160_gps' driver. 

    Run the following in a terminal, and see if that fixes the issue

    cd ncs/nrf && git pull && git checkout master && west update

    Best regards,

    Heidi

  • If I try to run "git pull" in a terminal, the response is:

    There is no tracking information for the current branch.
    Please specify which branch you want to merge with.
    See git-pull(1) for details.
    
        git pull <remote> <branch>
    
    If you wish to set tracking information for this branch you can do so with:
    
        git branch --set-upstream-to=origin/<branch> v1.0.0

    what does that mean?

    EDIT:

    > "git pull" and "git checkout" worked now, the problem was a modified prj.conf.

    > "west update" does not work, the output is:

    c:\nRFConnectSDK\ncs\nrf>west update
    validation.invalid
     --- All found errors ---
    ["Key 'repo-path' was not defined. Path: '/projects/0'", "Key 'repo-path' was not defined. Path: '/projects/3'", "Key 'repo-path' was not defined. Path: '/projects/4'", "Key 'repo-path' was not defined. Path: '/projects/5'", "Key 'repo-path' was not defined. Path: '/projects/6'", "Key 'repo-path' was not defined. Path: '/projects/10'"]
    Traceback (most recent call last):
      File "c:\nRFConnectSDK\ncs\.west\west\src\west\manifest.py", line 153, in __init__
        schema_files=[_SCHEMA_PATH[key]]
      File "c:\python37\lib\site-packages\pykwalify\core.py", line 167, in validate
        error_msg=u'.\n - '.join(self.validation_errors)))
    pykwalify.errors.SchemaError: <SchemaError: error code 2: Schema validation failed:
     - Key 'repo-path' was not defined. Path: '/projects/0'.
     - Key 'repo-path' was not defined. Path: '/projects/3'.
     - Key 'repo-path' was not defined. Path: '/projects/4'.
     - Key 'repo-path' was not defined. Path: '/projects/5'.
     - Key 'repo-path' was not defined. Path: '/projects/6'.
     - Key 'repo-path' was not defined. Path: '/projects/10'.: Path: '/'>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
        "__main__", mod_spec)
      File "c:\python37\lib\runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "C:\Python37\Scripts\west.exe\__main__.py", line 9, in <module>
      File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 499, in main
        wrap(wrap_argv)
      File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 485, in wrap
        west.main.main(argv)
      File "c:\nRFConnectSDK\ncs\.west\west\src\west\main.py", line 569, in main
        extensions = get_extension_commands()
      File "c:\nRFConnectSDK\ncs\.west\west\src\west\main.py", line 531, in get_extension_commands
        extensions = extension_commands()
      File "c:\nRFConnectSDK\ncs\.west\west\src\west\commands\command.py", line 181, in extension_commands
        manifest = Manifest.from_file()
      File "c:\nRFConnectSDK\ncs\.west\west\src\west\manifest.py", line 91, in from_file
        return Manifest(source_file=source_file, sections=sections)
      File "c:\nRFConnectSDK\ncs\.west\west\src\west\manifest.py", line 156, in __init__
        self._malformed(e, key)
      File "c:\nRFConnectSDK\ncs\.west\west\src\west\manifest.py", line 226, in _malformed
        complaint))
    west.manifest.MalformedManifest: Malformed manifest file c:\nRFConnectSDK\ncs\nrf\west.yml (schema: c:\nRFConnectSDK\ncs\.west\west\src\west\manifest-schema.yml):
    <SchemaError: error code 2: Schema validation failed:
     - Key 'repo-path' was not defined. Path: '/projects/0'.
     - Key 'repo-path' was not defined. Path: '/projects/3'.
     - Key 'repo-path' was not defined. Path: '/projects/4'.
     - Key 'repo-path' was not defined. Path: '/projects/5'.
     - Key 'repo-path' was not defined. Path: '/projects/6'.
     - Key 'repo-path' was not defined. Path: '/projects/10'.: Path: '/'>
    Do you know what the problem is or what I can do about it?

    KR, Sebastian

  • You aren't in the master branch. Run "git branch" to double check, but chances are "git checkout master" didn't work.

  • Now it works, thanks. I may damaged some documents in the ncs folder and so I set it up new. The example udp_gps works fine now (see the nmea and receive some message at the server).

    For some reason the udp_with_psm wont start anymore. I can see in the LTE Link Monitor that the modem findes a network and that it is registered but the text that is printed in the first few lines of the program never appears.  What do you suggest I should try that I can debug that example?

    EDIT:

    > After a few tries I managed to make the program operate again. The problem was a too small  CONFIG_HEAP_MEM_POOL_SIZE. It was configered with 1024 but that did not work. So I set it to 2048 and now the example udp_with_gps works fine.

    KR, Sebastian

Reply
  • Now it works, thanks. I may damaged some documents in the ncs folder and so I set it up new. The example udp_gps works fine now (see the nmea and receive some message at the server).

    For some reason the udp_with_psm wont start anymore. I can see in the LTE Link Monitor that the modem findes a network and that it is registered but the text that is printed in the first few lines of the program never appears.  What do you suggest I should try that I can debug that example?

    EDIT:

    > After a few tries I managed to make the program operate again. The problem was a too small  CONFIG_HEAP_MEM_POOL_SIZE. It was configered with 1024 but that did not work. So I set it to 2048 and now the example udp_with_gps works fine.

    KR, Sebastian

Children
No Data
Related