This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF: PHY_CAL_MODE settings from CLI (ImageCreator)

Part Number: CC3220SF
Other Parts Discussed in Thread: UNIFLASH

Hello,
I am not able to set PHY_CAL_MODE from CLI. We can't do it in UI, as the builds are running automatically on the server.

I tried a simplified version of JSON (just part with PHY_CAL_MODE), and also full JSON (see attachments)

Unfortunately, when I create the project in ImageCreator, it says Config file (cfg.json) doesn't exist, using defaults. I tried also reconfig tool, but that's even worse.

There are my four attempts to set this configuration:






jsons.zip

And yes, I have checked the project directory. The desired value of PHY_CAL_MODE is not present in the JSON project file (C:\Users\3100igsv\.SLImageCreator\projects\trigger\trigger.json).

Am I using it correctly? Is there any other way of setting that value (from CLI).

Thanks,
Igor

  • Hi Igor,

    When I create a project using the Uniflash CLI, I do see the PHY_CAL_MODE string in the JSON config created by default - I do not pass in a .json file during project creation. Are you using the latest version of Uniflash?

    Once you have a .json in your project folder with the PHY_CAL_MODE string, you can try one of two possible workarounds:

    1. Using a text editor, simply find the "PHY_CAL_MODE" string, and modify the value immediately after it from the default "0" to your desired value. You can do this manually, or have a script find the string for you. You can also use a dedicated JSON editing library, but for this sort of simple modification a simple string editor should work find, given the PHY_CAL_MODE is unique in the .json.

    2. If all else fails, do you have file access to the server you're using? You could create a project on a different PC, with the correct PHY_CAL_MODE set using the GUI, then export it from your PC and then import the project into your server. That should allow you to have the desired PHY_CAL_MODE setting.

    Regards,

    Michael

  • Sorry, this was some miscommunication. The PHY_CAL_MODE is present in the JSON project file, just the value is all the time 0. 

    Actually, I already did the same workaround as you say yesterday
    sed -i 's/"PHY_CAL_MODE": "0"/"PHY_CAL_MODE": "1"/' ~/.SLImageCreator/projects/projectName/projectName.json
    but I was hoping for some more propper solution. 

    So there is no working way, how to import this configuration parameter using the --cfg_json option?

  • Hi,

    Unfortunately, there is no elegant solution to this issue - for the PHY_CAL_MODE option, you will need to specify the setting manually through your script.

    As for importing this option, what you will need to do is import the rest of your json without this config option, and then perform the json file modification if needed.

    Let me know if you need more clarification or have further questions on using Uniflash Imagecreator.

    Regards,

    Michael