Industrial IoT Baremetal Framework
Developer Guide
NXP Semiconductors
Document Number: IIoT_Baremetal_DG
Rev. 1.3.1, Oct 2018
Contents
Chapter 1 Introduction....................................................................................3
1.1 QorIQ layerscape processor................................................................................................ 3
1.2 Baremetal framework for QorIQ layerscape......................................................................... 3
1.3 Supported processors and boards....................................................................................... 4
Chapter 2 Getting started............................................................................... 5
2.1 Hardware and software requirements..................................................................................5
2.2 Hardware setup................................................................................................................... 5
2.2.1 LS1021A-IoT board...............................................................................................................5
2.2.2 LS1043ARDB or LS1046ARDB............................................................................................ 6
2.3 Building the baremetal images from U-Boot source code....................................................7
2.3.1 Building U-Boot binary for the master core........................................................................... 7
2.3.2 Building baremetal binary for slave cores............................................................................. 7
2.4 Building the image through OpenIL..................................................................................... 8
2.4.1 Getting OpenIL..................................................................................................................... 8
2.4.2 Building the baremetal images............................................................................................. 9
2.4.3 Booting up the Linux with Baremetal.................................................................................. 10
Chapter 3 Running examples.......................................................................12
3.1 Preparing the console........................................................................................................ 12
3.2 Running the bare metal binary...........................................................................................12
Chapter 4 Development based on baremetal framework.......................... 14
4.1 Developing the baremetal application................................................................................14
4.2 Example software.............................................................................................................. 14
4.2.1 Main file app.c..................................................................................................................... 14
4.2.2 Common header files..........................................................................................................14
4.2.3 GPIO file............................................................................................................................. 15
4.2.4 I2C file.................................................................................................................................16
4.2.5 IRQ file................................................................................................................................17
4.2.6 QSPI file..............................................................................................................................17
4.2.7 Ethernet.............................................................................................................................. 19
4.2.8 USB file...............................................................................................................................19
4.2.9 PCIe file.............................................................................................................................. 20
4.2.10 CAN file............................................................................................................................. 21
4.3 ICC module........................................................................................................................22
4.3.1 ICC examples..................................................................................................................... 25
4.4 Hardware resource allocation............................................................................................ 26
4.4.1 LS1021A-IoT board.............................................................................................................26
4.4.2 LS1043ARDB or LS1046ARDB board................................................................................ 30
Chapter 5 Revision history...........................................................................35
Contents
Industrial IoT Baremetal Framework Developer Guide, Rev. 1.3.1, Oct 2018
2
NXP Semiconductors