Could not find a part of the path 'C:\ST\STM32CubeIDE_1.7.0\ .. families.xml

Sysprogs forums Forums VisualGDB Could not find a part of the path 'C:\ST\STM32CubeIDE_1.7.0\ .. families.xml

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32047
    gojimmypi
    Participant

    Hi.

    My objective is to have an STM32 project that can be shared on GitHub and useable by people without VisualGDB, specifically to be edited and compiled in the STM32CubeMX IDE.

    I’m trying to use the new project wizard but I am encountering an error when selecting the toolchain.

    Myfamilies.xml is found in

    C:\ST\STM32CubeIDE_1.7.0\STM32CubeIDE\plugins\com.st.stm32cube.common.mx_6.4.0.202111222105\db\mcu

    and not

    C:\ST\STM32CubeIDE_1.7.0\STM32CubeIDE\db\mcu\

    Error message:

    VisualGDB version: 5.6.102.4506
    ------------------ System.IO.DirectoryNotFoundException ------------------
    System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ST\STM32CubeIDE_1.7.0\STM32CubeIDE\db\mcu\families.xml'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
    at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
    at System.Threading.CompressedStack.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
    at System.Xml.XmlTextReaderImpl.OpenUrl()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    at System.Xml.XmlDocument.Load(XmlReader reader)
    at System.Xml.XmlDocument.Load(String filename)
    at STM32ProjectImporter.STM32CubeMXProjectImporter.LoadFamilyList(IProjectImportService service, String& xmlFile)
    at STM32ProjectImporter.STM32CubeMXProjectImporter.LoadMCUList(IProjectImportService service)
    at VisualGDB.WPF.Embedded.MCUSelector.ControllerImpl.DoLoadMCUList(MCUSelectionContext ctx)
    at VisualGDB.WPF.Embedded.MCUSelector.ControllerImpl.<>c__DisplayClass12_0.b__0()
    at fj1.v1.d()
    trace=[System.IO.__Error.WinIOError:252, System.IO.FileStream.Init:928, System.IO.FileStream..ctor:0, System.Xml.XmlDownloadManager.GetStream:18, System.Xml.XmlUrlResolver.GetEntity:9, System.Xml.XmlTextReaderImpl.OpenUrlDelegate:0, System.Threading.CompressedStack.runTryCode:29, System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup:-1, System.Threading.CompressedStack.Run:80, System.Xml.XmlTextReaderImpl.OpenUrl:111, System.Xml.XmlTextReaderImpl.Read:147, System.Xml.XmlLoader.Load:166, System.Xml.XmlDocument.Load:47, System.Xml.XmlDocument.Load:19, STM32ProjectImporter.STM32CubeMXProjectImporter.LoadFamilyList:36, STM32ProjectImporter.STM32CubeMXProjectImporter.LoadMCUList:5, VisualGDB.WPF.Embedded.MCUSelector+ControllerImpl.DoLoadMCUList:55, VisualGDB.WPF.Embedded.MCUSelector+ControllerImpl+<>c__DisplayClass12_0.b__0:0, fj1+v1.d:13]

     

    missing mcu families

    Any suggestions as to what I’m doing wrong, or possible other alternatives? Thanks.

    • Edit: I’m using Visual Studio 2019 v16.11.5 on Windows 10.
    • This topic was modified 2 years, 11 months ago by gojimmypi.
    #32051
    support
    Keymaster

    Hi,

    Look like you have pointed VisualGDB to the location of STM32CubeIDE instead of STM32CubeMX.

    Please make sure you install STM32CubeMX and point VisualGDB to it as shown in this tutorial, and it should work out-of-the-box.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.