Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Sequence with <block/> creates unexpected instance type #2003

Open
ReinhardKeil opened this issue Mar 3, 2025 · 0 comments
Open

Debug Sequence with <block/> creates unexpected instance type #2003

ReinhardKeil opened this issue Mar 3, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ReinhardKeil
Copy link
Collaborator

Describe the bug

NXP.MCXN947_DFP.psdc contains in line 54:

        <sequence name="EnableDebugMailbox">
          <block/>
          <control if="!(ReadAP(0x0) &amp; 0x40)">
            <!-- Check AHB-AP CSW DbgStatus to decide if need enable DebugMailbox -->

This creates in *.cbuild-run.yml:

    - name: EnableDebugMailbox
      blocks:
        - {}
        - if: "!(ReadAP(0x0) & 0x40)"

And then the error:

Execute: cbuild Simple.csolution.yml --context-set --packs
/Simple+MCXN947VDF.cbuild-run.yml:193:11 - error csolution: unexpected instance type

To Reproduce

Use this example example Simple_Device_project.zip and execute cbuild Simple.csolution.yml --context-set --packs

Expected behavior

<block/> should be ignored

Workaround

Remove <block/> from *.pdsc files.

Environment (please complete the following information):

Additional context
Add any other context about the problem here.

@ReinhardKeil ReinhardKeil added the bug Something isn't working label Mar 3, 2025
@jkrech jkrech moved this to Backlog in CMSIS-Toolbox 2.9.0 Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants