Skip to content

Commit 1ef820e

Browse files
authored
Enhance chipidea (hathach#2075)
* update chipidea dcd, remove manual ep_count and use DCCPARAMS to get number of endpoint instead * add dcd dcache for chipidea * add cmake for lpc18 * add makefile build for mcx * use fork of mcu sdk * fix ci build with nrf * flash rp2040 with openocd
1 parent c998e9c commit 1ef820e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1914
-121
lines changed

.github/workflows/build_arm.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ jobs:
142142

143143
- name: Create flash.sh
144144
run: |
145-
#echo > flash.sh 'cmdout=$(openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1 reset exit")'
146-
echo > flash.sh 'pyocd flash -t rp2040 $1'
145+
echo > flash.sh 'cmdout=$(openocd -f "interface/cmsis-dap.cfg" -f "target/rp2040.cfg" -c "adapter speed 5000" -c "program $1 reset exit")'
147146
echo >> flash.sh 'if (( $? )) ; then echo $cmdout ; fi'
148147
chmod +x flash.sh
149148

.github/workflows/cmake_arm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
matrix:
3333
family:
3434
# Alphabetical order
35+
- 'mcx'
3536
- 'imxrt'
3637
steps:
3738
- name: Setup Python

.idea/cmake.xml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/rt1010_jlink.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/rt1010_nxplink.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/runConfigurations/rt1060_nxplink.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,28 @@ repos:
88
hooks:
99
- id: check-yaml
1010
- id: trailing-whitespace
11+
exclude: |
12+
(?x)^(
13+
hw/bsp/mcx/sdk/
14+
)
1115
- id: end-of-file-fixer
12-
exclude: ^.idea/
16+
exclude: |
17+
(?x)^(
18+
.idea/|
19+
hw/bsp/mcx/sdk/
20+
)
1321
- id: forbid-submodules
1422

1523
- repo: https://github.com/codespell-project/codespell
1624
rev: v2.2.4
1725
hooks:
1826
- id: codespell
1927
args: [-w]
20-
exclude: ^lib/
28+
exclude: |
29+
(?x)^(
30+
lib/|
31+
hw/bsp/mcx/sdk/
32+
)
2133
2234
- repo: local
2335
hooks:

examples/device/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ family_add_subdirectory(midi_test)
2424
family_add_subdirectory(msc_dual_lun)
2525

2626
# FIXME temp skip net_lwip_webserver for imxrt for now
27-
if (NOT ${FAMILY} STREQUAL "imxrt")
27+
if (NOT ${FAMILY} STREQUAL "imxrt" AND NOT ${FAMILY} STREQUAL "mcx")
2828
family_add_subdirectory(net_lwip_webserver)
2929
endif()
3030

hw/bsp/board_mcu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
TU_CHECK_MCU(OPT_MCU_LPC40XX, OPT_MCU_LPC43XX)
4545
#include "chip.h"
4646

47-
#elif TU_CHECK_MCU(OPT_MCU_LPC51UXX, OPT_MCU_LPC54XXX, OPT_MCU_LPC55XX)
47+
#elif TU_CHECK_MCU(OPT_MCU_LPC51UXX, OPT_MCU_LPC54XXX, OPT_MCU_LPC55XX, OPT_MCU_MCXN9)
4848
#include "fsl_device_registers.h"
4949

5050
#elif TU_CHECK_MCU(OPT_MCU_KINETIS_KL, OPT_MCU_KINETIS_K32)

hw/bsp/family_support.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ function(family_add_default_example_warnings TARGET)
135135
endif()
136136
endfunction()
137137

138+
139+
# add_custom_command(TARGET ${TARGET} POST_BUILD
140+
# COMMAND ${CMAKE_OBJCOPY} -O ihex $<TARGET_FILE:${TARGET}> ${TARGET}.hex
141+
# COMMAND ${CMAKE_OBJCOPY} -O binary $<TARGET_FILE:${TARGET}> ${TARGET}.bin
142+
# COMMENT "Creating ${TARGET}.hex and ${TARGET}.bin"
143+
# )
144+
138145
# Add flash jlink target
139146
function(family_flash_jlink TARGET)
140147
if (NOT DEFINED JLINKEXE)

0 commit comments

Comments
 (0)