Skip to content

Commit bc3e5a0

Browse files
committed
lpc55xx_hic: Reduce CPU clock to 96 MHz due to flash writing constraints
1 parent 08d6cb5 commit bc3e5a0

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

docs/hic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| [kl27z](kl27z.md) | M0+ | 48 Mhz | 32 KB | 128 KB | FS |
99
| [lpc11u35](lpc11u35.md) | M0 | 48 Mhz | 12 KB | 64 KB | FS |
1010
| [lpc4322](lpc4322.md) | M4 | 120 MHz | 256 KB | 256 KB | HS |
11-
| [lpc55xx](lpc55xx.md) | M33 | 150 MHz | 272 KB | 320 KB | HS |
11+
| [lpc55xx](lpc55xx.md) | M33 | 96 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 |
1414
| [sam3u2c](sam3u2c.md) | M3 | 96 MHz | 32 KB | 128 KB | HS |

docs/hic/lpc55xx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# lpc55xx HIC
22

33
Based on LPC55S69JBD64 chip ([Data Sheet](https://www.nxp.com/docs/en/nxp/data-sheets/LPC55S6x_DS.pdf)):
4-
- Cortex-M33 150 Mhz (cores)
4+
- Cortex-M33 96 MHz (2 cores up to 150 Mhz)
55
- 640 KB Flash
66
- 320 KB RAM
77
- High-speed USB 2.0 host/device controller: 8 bi-directional endpoints including EP0 (*)

records/hic_hal/lpc55s69.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ common:
77
- INTERFACE_LPC55XX
88
- CPU_LPC55S69JBD64_cm33_core0
99
- DAPLINK_HIC_ID=0x4C504355 # DAPLINK_HIC_ID_LPC55XX
10-
- OS_CLOCK=150000000
10+
- OS_CLOCK=96000000
1111
includes:
1212
- source/hic_hal/nxp/lpc55xx
1313
- source/hic_hal/nxp/lpc55xx/LPC55S69

source/hic_hal/nxp/lpc55xx/hic_init.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,14 @@ void sdk_init(void)
172172
//! - Configure the USB PHY and USB1 clocks.
173173
void hic_enable_usb_clocks(void)
174174
{
175-
// For the interface, switch to 150 MHz before enabling USB. The bootloader will stay at 96 MHz
176-
// so it can always write internal flash.
177-
#if defined(DAPLINK_IF)
178-
BOARD_BootClockPLL150M();
179-
#endif
175+
// Switching to 150 MHz for interface is disabled because it prevents
176+
// interface from writing configuration and updating bootloader.
177+
// #if defined(DAPLINK_IF)
178+
// // For the interface, switch to 150 MHz before enabling USB.
179+
// // The bootloader will stay at 96 MHz so it can always write
180+
// // internal flash.
181+
// BOARD_BootClockPLL150M();
182+
// #endif
180183

181184
NVIC_ClearPendingIRQ(USB1_IRQn);
182185
NVIC_ClearPendingIRQ(USB1_NEEDCLK_IRQn);

0 commit comments

Comments
 (0)