2023-02-06 09:13:29 +08:00
# LPC55S69-EVK BSP Introduction
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
**English** | [中文 ](README_zh.md )
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
## 1. Introduction
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
The LPC55S69 is a high-performance microcontroller based on the Cortex-M33 core from NXP Semiconductors.
Includes the following hardware features:
| HARDWARE | DESCRIPTION |
2019-10-24 17:56:09 +08:00
| -- | -- |
2023-02-06 09:13:29 +08:00
|Chip model| LPC556x/LPC55S6x Full range |
2019-10-24 17:56:09 +08:00
|CPU| Cortex-M33 Dual Core, with FPU |
2023-02-06 09:13:29 +08:00
|Frequency| 150MHz |
|Basic peripherals| 8 x Flexcomm (optionally configured as USART/SPI/I2C/I2S) / 1 x 50MHz SPI / Dual USB (1 H and 1 Full, Master-Slave Support) |
|Characteristic| PowerQuad DSP coprocessor/security peripheral: PRINCE/PUF/CASPER/AES-256/HASH |
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
## 2. Hardware development system
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
![Schematic diagram of the development board ](./figures/board.png )
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
## 3. Quickly Get Started
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
| ENVIRONMENT | DESCRIPTION |
| ------------------- | ------------------------------------------------------------ |
| PC Operating System | Linux/MacOS/Windows |
| Compiler | arm-none-eabi-gcc version 6.3.1 20170620 (release)/armcc/iar |
| Build tools | scons/mdk5/iar |
| Depends | Env tool/(MDK or IAR or arm-none-eabi-gcc)/git/debugger driver |
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
1) Download the source code
2019-10-24 17:56:09 +08:00
```bash
git clone https://github.com/RT-Thread/rt-thread.git
```
2023-02-06 09:13:29 +08:00
2) Configure the project and prepare the ENV
2019-10-24 17:56:09 +08:00
( Linux/Mac)
```bash
cd rt-thread/bsp/lpc55s69_evk
scons --menuconfig
source ~/.env/env.sh
pkgs --upgrade
```
( Windows)
2023-02-06 09:13:29 +08:00
>Download the ENV toolkit [RT-Thread][1]
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
3) Configure the chip model
2019-10-24 17:56:09 +08:00
( Linux/Mac)
```bash
scons --menuconfig
```
2023-02-06 09:13:29 +08:00
( Windows(use ENV))
2019-10-24 17:56:09 +08:00
```bash
menuconfig
```
2023-02-06 09:13:29 +08:00
On the menuconfig page, configure and select the corresponding chip model, if the development environment is MDK/IAR, you need to generate the project.
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
4) Build Project (please skip this step under Mac/Linux)
2019-10-24 17:56:09 +08:00
( Windows IAR)
```bash
SET RTT_CC=iar
scons --target=iar -s
```
( Windows MDK5) *
```bash
scons --target=mdk5 -s
```
2023-02-06 09:13:29 +08:00
*This board support package does not support projects that generate MDK4
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
**MDK and IAR must manually select the chip signal once in the project after the project is built, otherwise a serious compilation error will be generated.**
2019-10-24 17:56:09 +08:00
2023-02-07 11:15:42 +08:00
---
2019-10-24 17:56:09 +08:00
2023-02-07 11:15:42 +08:00
Note: Because some versions of Keil5 have issues with AC6 compiler support, it is recommended to upgrade keil to the latest version
> [Download the latest version of Keil here](https://www.keil.com/update/check.asp?P=MDK&V=5.38.0.0&S=)
Some error messages are as follows:
![](./figures/bug.png)
Or you can choose to refer to this forum post:[AC6 compiler error unsupported option '--c99' solution](https://club.rt-thread.org/ask/question/4c744e41ded5efb0.html)
---
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
5) Compile
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
To use the MDK or IAR, see the corresponding tutorial
2019-10-24 17:56:09 +08:00
( Windows arm-none-eabi-gcc)
2023-02-06 09:13:29 +08:00
Use the following command to set the GCC path
2019-10-24 17:56:09 +08:00
```bash
2023-02-06 09:13:29 +08:00
SET RTT_EXEC_PATH=[GCC path]
2019-10-24 17:56:09 +08:00
```
( Linux/Mac arm-none-eabi-gcc)
2023-02-06 09:13:29 +08:00
Use the following command to set the GCC path
2019-10-24 17:56:09 +08:00
```bash
2023-02-06 09:13:29 +08:00
export RTT_EXEC_PATH=[GCC path]
2019-10-24 17:56:09 +08:00
```
2023-02-06 09:13:29 +08:00
Compile( WindowsLinux/Mac arm-none-eabi-gcc)
2019-10-24 17:56:09 +08:00
```bash
scons -j4
```
2023-02-06 09:13:29 +08:00
Or use the `scons --exec-path="GCC toolchain path"` command to compile directly while specifying the toolchain location.
2022-10-10 07:08:19 +08:00
2023-02-06 09:13:29 +08:00
The following message indicates that the compilation was successful
2019-10-24 17:56:09 +08:00
```bash
LINK rtthread-lpc55s69.elf
arm-none-eabi-objcopy -O binary rtthread-lpc55s6x.elf rtthread.bin
arm-none-eabi-size rtthread-lpc55s69.elf
text data bss dec hex filename
41596 356 1456 43408 a990 rtthread-lpc55s6x.elf
scons: done building targets.
```
2023-02-06 09:13:29 +08:00
If compiled correctly, the rtthread-lpc55s6x.elf, rtthread.bin file will be generated. where rtthread .bin binary firmware
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
## 3. Download and Execution
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
Programming can use emulators, ISPs, and other ways to repeat them here.
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
### 3.1 Running Results
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
If the compilation & programming is correct, you will see the RT-Thread startup logo information on the Flexcomm0 serial port*:
2019-10-24 17:56:09 +08:00
```bash
\ | /
- RT - Thread Operating System
/ | \ 4.0.1 build Jul 30 2019
2006 - 2019 Copyright by rt-thread team
uising armclang, version: 6120001
msh />
```
2023-02-06 09:13:29 +08:00
*Default serial port
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
## 4. Peripheral Condition
2019-10-24 17:56:09 +08:00
2023-02-06 09:13:29 +08:00
| **On-board Peripherals** | **Support** | **Remark** |
2019-10-24 17:56:09 +08:00
| ---------- | :------: | :--------------------------: |
2023-02-06 09:13:29 +08:00
| UART | yes | UART0/2 |
| GPIO | yes | Automatically selects the pinout based on the chip model |
| SPI | yes | Support High Speed SPI |
| USB Device | no | |
| USB Host | no | |
| Windowed WatchDog | no | |
| ADC | no | |
| I2C | yes | Can be used with MMA8562 |
| I2C Sensor | yes | Acquire onboard MMA8562 accelerometer data |
| RTC | yes | RTC clock auto-configuration |
| SDIO | yes | Operate the SD card |
| I2S | no | |
2023-04-28 17:44:40 +08:00
## 5.Notes
- Please use env (v1.3.5) [download ](https://github.com/RT-Thread/env-windows/releases/tag/v1.3.5 )
- Please use the version is higher than 5.3 keil
2023-02-06 09:13:29 +08:00
## 6. Maintained By
2019-10-24 17:56:09 +08:00
2022-12-05 14:37:49 +08:00
* magicoe@163.com
* alex.yang@nxp.com