Skip to content

fix(mspm0): accept the unnumbered DMA trigger macro - #33

Merged
Jiu-xiao merged 1 commit into
devfrom
fix/mspm0-dma-trigger-unnumbered
Oct 10, 2026
Merged

Jiu-xiao merged 1 commit into
devfrom
fix/mspm0-dma-trigger-unnumbered

Conversation

@Jiu-xiao

Copy link
Copy Markdown
Member

SysConfig writes <instance>_INST_DMA_TRIGGER without a number while an instance has one DMA trigger, and _0, _1 from two on. _header_dma_channel() matched only the numbered form, so a UART with DMA TX only and no channel name in the .syscfg (only DMA_CHANNEL_TX.peripheral.$assign) stopped generation with "no DMA TX channel". The SDK example uart_tx_multibyte_fifo_dma_interrupts (G3507, G3218, G5187, L1306, L2117) has this configuration.

  • Accept both forms; an SPI reaches the same lookup and is covered too.
  • The "no DMA TX channel" message names both forms.
  • Tests: the two lookups, the wrong direction, an SPI with one event, and the G3507 example end to end (its .syscfg and SysConfig output under tests/data/mspm0/, TI BSD-3 headers kept).

Checks: ruff check and ruff format --check on src tests scripts; pytest 514 passed; g3507, g3519 and variants regenerate byte for byte. Without the fix, 4 of the new tests fail (the numbered-form test passes).

Part of the 6.0.1 release (version unchanged).

SysConfig writes <instance>_INST_DMA_TRIGGER without a number while an
instance has one DMA trigger, and _0, _1 from two on. _header_dma_channel()
matched only the numbered form, so an instance whose .syscfg names no DMA
channel (only DMA_CHANNEL_TX.peripheral.$assign, as in the
uart_tx_multibyte_fifo_dma_interrupts example of the SDK) found nothing and
generation stopped with "no DMA TX channel".

Both forms are accepted now. An SPI reaches the same lookup and is covered by
the same change. The error message names both forms, and the tests cover the
two lookups, an SPI with one event, and the example end to end.
@greptile-apps

greptile-apps Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

This PR lets MSPM0 parsing recognize DMA trigger macros with or without a numbered suffix.

  • MSPM0 projects with one DMA trigger now keep their channel assignment.

Reviews (1) · Last reviewed commit: "Accept the unnumbered DMA trigger macro ..." · Reviewed by Greptile

@Jiu-xiao
Jiu-xiao merged commit d5153df into dev Oct 10, 2026
55 checks passed
@Jiu-xiao
Jiu-xiao deleted the fix/mspm0-dma-trigger-unnumbered branch October 11, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant