Post Go back to editing

Code Fusion Studio doesn't work properly (can't flash)

Thread Summary

The user encountered issues with Code Fusion Studio (CFS) including 'Package manager failed to initialize' and 'arm-none-eabi-gdb' not recognized. The solution involved performing a clean installation of CFS v2.0.0, ensuring the CFS SDK and extension are both updated to the latest version. The required packages for the MAX32655 MCU are cfs_base_plugins/2.0.0, cfs_base_data_models/2.0.0, and msdk/2.0.0. The user confirmed the environment problem was resolved.
AI Generated Content
Category: Software
Software Version: 1.1.0

Hi,

My Code Fusion Studio worked fine so far but suddenly a message below appeared.

I re-invoked VSC and saw a message "CFS: Package manager failed to initialize" during its start.

So, I followed the document in the snip:

Install required packages

Did Resolution option 1, but it returns as "CFS: Package Manager commands cannot be run because the package manager failed to initialize."

Did Resolution option 2, executed "cfsutil pkg search "max32655"" but it returns "Error: command pkg:search:max32655 not found"

Both didn't work. Further, biggest problem is Flash (OpenOCD)(m4) does not work. Message "'arm-none-eabi-gdb' is not recognized as an internal or external command, operable program or batch file." appeared in the process and the flashing does not work.

How can I solve this?

1) How to resolve "CFS: Package manager failed to initialize" error

2) How to install Missing SoC Data model (correct error)

3) How to fix the flashing problem ('arm-none-eabi-gdb' is not recognized), it is at least OK if this problem is solved.

Please advise.

Regards,

Satoru

  • Hi Satoru,

    The latest release of CFS (v2.0.0) introduces a new capability: you can now download SDKs, toolchains, and plugins on demand directly from a remote server. This streamlines the setup process and ensures your development environment stays up to date without the need for a full reinstallation.

    If your installed CFS extension in VS Code is version 2.0.0, but the CFS SDK on your PC is still 1.1.0, you may encounter compatibility issues, errors, or unexpected bugs. To avoid these problems, I strongly recommend performing a clean installation of CFS. This involves completely removing both the CFS SDK and the CFS extension from your system, then reinstalling the latest version by carefully following the steps outlined in the official user Guide: User guide - CodeFusion Studio

    As for the packages required for the MAX32655 MCU, make sure the following packages are installed:

    • cfs_base_plugins/2.0.0
    • cfs_base_data_models/2.0.0
    • msdk/2.0.0

    Kind regards,

    Haluk

  • Hi Haluk,

    Thank you for your support. Now my environment problem is resolved.

    Regards,

    Satoru