YUNTU MCAL QSG RTM v1.1.0
Version: Rev1.1.0 Date: July 17, 2023 Author: YTMicro AE team No. 2 | 76 Page.
Index of Content
1. Briefing Introduction ........................................................................................................................... 3
1.1 Overview ..................................................................................................................................... 3
1.2 MCAL Driver Release Details ............................................................................................ 6
1.3 Supported Devices ................................................................................................................. 7
1.4 Download and Install the MCAL software package. ................................................. 7
1.5 SW and HW Requirements ............................................................................................... 10
1.6 User Manual for Driver Modules ..................................................................................... 10
1.7 Limitations ................................................................................................................................ 12
2. Create a new project ....................................................................................................................... 12
2.1 Select the device part number and package ............................................................. 12
2.2 Select the MCU package .................................................................................................. 14
2.3 Configure the project toolchain options(only for GCC toolchain) ...................... 14
2.4 Add MCAL driver modules ................................................................................................. 18
2.5 Basic driver configurations ................................................................................................ 22
2.6 Error and warning resolve ................................................................................................. 43
2.7 Code generation .................................................................................................................... 44
2.8 Add user codes/files ............................................................................................................. 48
2.9 Build the project and debug with VSCode + Nijia + GCC toolchain ................. 51
3. Import the example project ........................................................................................................... 57
4. FAQ list .................................................................................................................................................. 59
4.1 How to configure toolchain to support MCAL user mode? ................................ 59
4.2 How to support v7.6 or higher version JLINK for Keil/IAR/Ozone IDE debug?
.............................................................................................................................................................. 62
4.3 How to generate the Flash program file(S19/hex/bin) and list file with the
MCAL VSCode(CMake + GCC) IDE project? ................................................................... 63
4.4 How to reduce the MCAL project code size? ............................................................ 64
4.5 How to migrate the MCAL from low version to the latest verion? ..................... 66
4.6 How to ensure the SchM protection of MCAL drivers to work as expected? 72
Appendix .................................................................................................................................................... 73
Appendix I. Reversion History ................................................................................................ 73
Appendix II. Acronyms and Definitions ............................................................................... 73
Appendix III. Reference List .................................................................................................... 75
Disclaimer ................................................................................................................................................. 76