
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Exporting PMG1 applications into Keil µVision for Arm® (ARM-MDK) - KBA236735
Version: **
Prerequisites
- Project Creator which is installed with the ModusToolbox™ software.
- Keil µVision V5.28 or later.
- PMG1 development kit.
1 Creating an example program
1. Open Project Creator and select PMG1-CY7110.
2. Click Next as shown in Figure 1.
Figure 1 Project Creator tool
3. Click Browse and select the Application(s) Root Path folder for the application.
4. Expand the Getting Started menu.
5. Select Hello World. Click Hello_World to modify the application name.
6. Select ARM MDK(µVision) from the Target IDE menu.
7. Click Create as shown in Figure 2.
Figure 2 Project Creator tool
8. Open the Hello_World folder as shown in Figure 3.
Figure 3 Application(s) root path folder
9. Double-click the Hello_World CMSIS project description file as shown in Figure 4.
10. Click Yes in the Missing Required Packs pop-up window to install PMG1 library pack as shown in Figure 5.
Figure 5 Keil µVision IDE
2 Installing the packages
1. Select Cypress from the Devices tab and Cypress::PMG1_DFP from the Packs pane.
2. Click Install as shown in Error! Reference source not found.
Figure 6 Keil µVision IDE pack installer
3. Agree to the License Agreement.
4. Click Next as shown in Figure 7.
Figure 7 Pack installation window
5. In the Packs tab, make sure that Cypress::PMG1_DFP is Up to date shown in Figure 8.
Figure 8 Keil µVision IDE pack installer updated
Note : In some cases, you may see the following error message: “SSL caching disabled in Windows Internet Settings. Switched to offline mode.” See https://developer.arm.com/documentation/ka002253/latest for the workaround.
3 Building and programming
1. Connect the PMG1 kit to the host PC (Connector J1).
2. Right-click Target 1 and select Options for Target ‘Target 1’… as shown in Figure 9.
Figure 9 Keil µVision IDE project options
4 Build configuration settings
1. In the Options for Target ‘Target 1’ dialog box, select the C/C++ (AC6) tab.
2. Select c99 from the Language C drop-down list.
3. Select AC5-like Warnings from the Warnings drop-down list.
4. Select -Os balanced from the Optimization drop-down list as shown in Figure 10.
Figure 10 Target project options for C/C++ (AC6)
5 Debug configuration settings
1. In the Options for Target ‘Target 1’ dialog box, select the Debug tab.
2. Select CMSIS-DAP Debugger from the Use drop-down list.
3. Click on Settings as shown in Figure 11.
Figure 11 Target project options for debug
4. Select KitProg(x) CMSIS-DAP from the CMSIS-DAP – JTAG/SW Adapter drop-down list.
5. Click OK as shown in Figure 12.
6. Click OK for the Figure 11.
Figure 12 Target project debug settings
7. Click Project and select Build Target as shown in Figure 13.
Figure 13 Project building menu
The build output is displayed as shown in Figure 14.
Figure 14 Build output window
6 Suppress linker warnings about unused sections
1. Right-click Target 1 and select Options for Target ‘Target 1’….
Figure 15 Project option selection
Select the Linker tab in the Options for Target ‘Target 1’ dialog box.
Add 6314,6329 to the disable Warning text box as shown in Figure 16.
Figure 16 Disabling linker warnings
4. Click Flash and select Download as shown in Figure 17.
Figure 17 Project flash menu
The build output is displayed as shown in Figure 18.
Figure 18 Verifying flash window
5. Click Debug and select Start/Stop Debug session to debug as shown in Figure 19.
The debug window is shown in Figure 20.