Skip to content

Commit ad6df73

Browse files
committed
lpc4322 (core): set CGU to use 120 MHz core clock
1 parent e6bbc89 commit ad6df73

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/hic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| [kl26z](kl26z.md) | M0+ | 48 Mhz | 16 KB | 128 KB | FS |
88
| [kl27z](kl27z.md) | M0+ | 48 Mhz | 32 KB | 128 KB | FS |
99
| [lpc11u35](lpc11u35.md) | M0 | 48 Mhz | 12 KB | 64 KB | FS |
10-
| [lpc4322](lpc4322.md) | M4 | 96 MHz | 256 KB | 256 KB | HS |
10+
| [lpc4322](lpc4322.md) | M4 | 120 MHz | 256 KB | 256 KB | HS |
1111
| [lpc55xx](lpc55xx.md) | M33 | 150 MHz | 272 KB | 320 KB | HS |
1212
| [max32625](max32625.md) | M4 | 96 MHz | 160 KB | 512 KB | FS |
1313
| [nrf52820](nrf52820.md) | M4 | 64 MHz | 32 KB | 256 KB | FS |

docs/hic/lpc4322.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# lpc4322 HIC
22

33
Based on LPC4322JET100E chip ([Data Sheet](https://www.nxp.com/docs/en/data-sheet/LPC435X_3X_2X_1X.pdf)):
4-
- Cortex-M4 204 Mhz
4+
- Cortex-M4 204 Mhz (currently run at 120 MHz)
55
- 512 KB Flash
66
- 104 KB RAM
77
- High-speed USB 2.0 device controller
@@ -16,7 +16,7 @@ Based on LPC4322JET100E chip ([Data Sheet](https://www.nxp.com/docs/en/data-shee
1616

1717
Bootloader size is 64 KB
1818

19-
## DAPLink default pin assignment
19+
## DAPLink default pin assignment
2020

2121
| Signal | I/O | Symbol | Pin |
2222
|-------------|:---:|---------|:---:|

records/hic_hal/lpc4322.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ common:
88
- CORE_M4
99
- INTERNAL_FLASH
1010
- DAPLINK_HIC_ID=0x97969905 # DAPLINK_HIC_ID_LPC4322
11-
- OS_CLOCK=96000000
11+
- OS_CLOCK=120000000
1212
includes:
1313
- source/hic_hal/nxp/lpc4322
1414
- source/hic_hal/nxp/lpc4322/RTE_Driver

source/hic_hal/nxp/lpc4322/board_LPC43xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
void sdk_init(void)
2626
{
27-
/* Set core clock to 96MHz */
28-
CGU_Init(96000000);
27+
/* Set core clock to 120MHz */
28+
CGU_Init(120000000);
2929
/* Set up USB0 clock */
3030
/* Disable PLL first */
3131
CGU_EnableEntity(CGU_CLKSRC_PLL0, DISABLE);

source/hic_hal/nxp/lpc4322/lpc43xx_cgu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ uint32_t CGU_Init(uint32_t wantedFreq)
244244
// Setup PLL1 to 204MHz
245245
// 0. Select IRC as BASE_M4_CLK source
246246
CGU_EntityConnect(CGU_CLKSRC_IRC, CGU_BASE_M4);
247-
SystemCoreClock = 96000000;
247+
SystemCoreClock = 120000000;
248248
// 1. Enable the crystal oscillator
249249
CGU_SetXTALOSC(12000000);
250250
CGU_EnableEntity(CGU_CLKSRC_XTAL_OSC, ENABLE);

0 commit comments

Comments
 (0)