Skip to content

SWO support for LPC4322 and other enhancements#904

Merged
mathias-arm merged 16 commits intoARMmbed:developfrom
mbrossard:feature/lpc4322_hic
Dec 7, 2021
Merged

SWO support for LPC4322 and other enhancements#904
mathias-arm merged 16 commits intoARMmbed:developfrom
mbrossard:feature/lpc4322_hic

Conversation

@mbrossard
Copy link
Contributor

@mbrossard mbrossard commented Dec 5, 2021

This is a refresh of #813 from @groleo with:

  • Added SWO support
  • Updated startup / system
  • Improved GPIO
  • Increase core frequency to 120 Mhz

Also thanks to @kc8apf who did another SWO effort and pointed out that the latest CMSIS UART drivers did not work.

@groleo
Copy link

groleo commented Dec 5, 2021

@mbrossard
what problems does the previous UART have?
I think it'd help mentioning in the downgrade commit message; asking because I do see some corruptions when I use write u32 to the ITM port.

@mbrossard
Copy link
Contributor Author

The CMSIS UART drivers in NXP.LPC4300_DFP.v2.9.0 CMSIS pack work, when the ones in NXP.LPC4300_DFP.v2.10.0 generate a HardFault, I have not had the time to investigate further. [04f20c3] and [6c2ce0f] commit messages mention pack versions.

The SWO tests I do are currently very simple: lpcxpresso55s69_hello_world_swo from MCUXpresso with pyocd at 1Mbaud. I need to create a better test program (daplink-validation only tests UART).

I have picked up your commit for MIMXRT1170-EVK on top of this PR but I can't test it without the hardware. I am looking into adding support for MIMXRT1060-EVK target to be able to test.

@groleo
Copy link

groleo commented Dec 5, 2021

@mbrossard
Got it.
let me know if you need help on 1060

mbrossard and others added 16 commits December 6, 2021 19:51
From Keil LPC4300_DFP version 2.10.0
The stack and heap have to reside in m_data.

The largest symbols (.bss.TraceBuf, .bss.sector_buf, .bss.DAP_Cmd_queue)
are explicitly placed in m_data_2.

Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
From Keil LPC4300_DFP version 2.10.0
Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
This way, one can set SWO_UART from the target's yaml.

Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
@kc8apf noticed that the drivers in version 2.9.0 of LPC4300_DFP pack work
Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
@mbrossard mbrossard force-pushed the feature/lpc4322_hic branch from 0a86f4b to ad6df73 Compare December 7, 2021 01:52
@mathias-arm mathias-arm merged commit c89c629 into ARMmbed:develop Dec 7, 2021
@mbrossard mbrossard deleted the feature/lpc4322_hic branch February 28, 2025 02:47
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.

3 participants