Advertisement

Quick Links

Development guide
N32WB452 Series Quick Development Guide
Introduction
The purpose of this document is to allow users to quickly familiarize themselves with the development kits of
N32WB452 series MCUs and the related settings of Keil MDK-ARM, so as to reduce the preparation time in the
early stage of development and the difficulty of development.

Advertisement

Table of Contents
loading

Summary of Contents for Nations N32WB45xL EVB

  • Page 1 Development guide N32WB452 Series Quick Development Guide Introduction The purpose of this document is to allow users to quickly familiarize themselves with the development kits of N32WB452 series MCUs and the related settings of Keil MDK-ARM, so as to reduce the preparation time in the early stage of development and the difficulty of development.
  • Page 2: Table Of Contents

    5.2 Virtual serial port ........................... 20 5.3 Common interface problems ........................20 6. Version history ............................22 7. NOTICE ............................... 23 Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 3: Introduction To The Development Kit

    Usually starting with the letter "UG", the usage guide of the firmware library of the chip-specific function module, including the firmware architecture, software process, core code implementation introduction, Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 4 Contains all the above development board information, including schematic diagram/PCB/development board instruction manual.  SDK: Software Development Design Kit, including Keil DFP pack, firmware library (low-level driver code and reference routines). Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 5: Introduction To The Development Board

    N32WB452LEQ6 (QFN88). The functional structure diagram of the development board is described as follows: Figure 2-1 Front view of N32WB45xL_EVB V1.1 development board GPIO GPIO Fingerprint Beeper module interface Potentiometer NSLINK Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 6: N32Wb45Xl_Evb Development Board Interface Definition Description

    VCC_MCU for the MCU, and the interface is J6; the second channel is the power supply VCC3.3 for other peripheral chips except MCU, and the interface is J5; the third channel is the power supply VCC_BLE Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 7 13) LCD (U6) The development board has an onboard LCD screen, bit number U6, which can be directly used and debugged Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 8: N32Wb45Xl_Evb Development Board Jumper Function Description

    J20&J2: JTAG mode download port J9: BOOT0 J9,J11 BOOT jumper J11:BOOT1 Adjustable resistor jumpers If the ADC function is used, connect this jumper Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 9: Introduction To The Firmware Development Kit

    The SDK directory is a file named after the firmware library version. The directory structure and description are as follows: Encryption algorithm library Bluetooth driver library Standard peripheral driver library USB driver library Peripheral driver routines Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 10: Firmware

     n32wb452_usbfs_driver:  USB device driver library files, including .c source files and .h header files. The necessary files when Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 11: Projects

    3.3 Projects framework Take the BLE Slave project as an example:  STARTUP:  Contains the startup file of N32WB452. Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 12 Contains the BLE Profile file.  BT_PLATFORM:  Contains source files for BLE using n32wb452 chip related resources.  DOC:  Routine brief description document Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 13: Compilation Environment And Configuration

    Please install the KEIL MDK-ARM development environment, and the version requirement is V5.26 or later. The CMSIS architecture of MDKV5 and later versions can support the online update function. In the future, Nations will place the latest CMSIS version online, and users can update directly through the Pack Installer in the Keil environment.
  • Page 14: Compile Environment Configuration

    Set the size of ROM and RAM in the Target interface (set according to different models) Select the hex output file in the Output interface Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 15 The .map file records the usage of program storage space, and it is convenient to view the address space and size of variables, constants, and functions, as shown in the following figure. Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 16 --bin -o "$L@L.bin" "#L" to the following image Linker Scatter File settings (set according to the actual needs of the project) Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 17 Memory-mapped IO: A data segment can be placed at a precise address by using scatter file. Simulation related settings in the Debug interface Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 18 In the Flash Download interface, check the reset operation. Click Flash Download settings, check "Reset and Run", the code will automatically reset and run after downloading. Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 19: Download And Simulation

    When the emulator is connected and the program is compiled successfully, click the emulate button. Enter the simulation interface as shown below, and the simulation tool button appears in the toolbar. Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 20 Click button 1 to open the variable view window Click button 2 to open the memory view window Click button 3 to open the register viewing window. Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 21 Through the above methods, the running process and status of the program can be observed intuitively during the simulation process, and the development progress can be accelerated. Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 22: Ns-Link Debugging Tool

    5.3 Common interface problems  Connect to debug USB, without any device enumeration It may be that the NS-LINK control chip has not been programmed with firmware, please contact the Nations technical support team to solve it.  The jumper cap is not properly connected, so the interface cannot work Consult the development board documentation in the "EVT"...
  • Page 23 Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 24: Version History

    2. Updated sample screenshots and related descriptions that do not match the current SDK 3. Modify the text file in Linker Scatter File Setting to .sct Nations Technologies Inc. Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
  • Page 25: Notice

    It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. In no event shall NATIONS be liable for any direct, indirect, incidental, special, exemplary, or consequential damages arising in any way out of the use of this document or the Product.

Table of Contents