Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Exporting PMG1 applications into Keil µVision for Arm® (ARM-MDK) - KBA236735

Exporting PMG1 applications into Keil µVision for Arm® (ARM-MDK) - KBA236735

Infineon_Team
Moderator
Moderator
Moderator
5 replies posted First solution authored First comment on KBA

Exporting PMG1 applications into Keil µVision for Arm® (ARM-MDK) - KBA236735

Version: **

Prerequisites

  1. Project Creator which is installed with the ModusToolbox™ software.
  2. Keil µVision V5.28 or later.
  3. PMG1 development kit.

1 Creating an example program

1. Open Project Creator and select PMG1-CY7110.
2. Click Next as shown in Figure 1.

Infineon_Team_21-1673349203825.png

 

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.

Infineon_Team_20-1673349168345.png

 

Figure 2  Project Creator tool

8. Open the Hello_World folder as shown in Figure 3.

Infineon_Team_0-1673349597819.png

 

Figure 3  Application(s) root path folder


9. Double-click the Hello_World CMSIS project description file as shown in Figure 4.

Infineon_Team_17-1673348963820.pngFigure 4  Application(s) root path folder

10. Click Yes in the Missing Required Packs pop-up window to install PMG1 library pack as shown in Figure 5.

Infineon_Team_16-1673348897691.png

 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. 

Infineon_Team_15-1673348817555.png

 Figure 6  Keil µVision IDE pack installer

3. Agree to the License Agreement.
4. Click Next as shown in Figure 7.

Infineon_Team_14-1673348741322.png

 Figure 7  Pack installation window     

5. In the Packs tab, make sure that Cypress::PMG1_DFP is Up to date shown in Figure 8.

Infineon_Team_13-1673348677832.png

 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.

Infineon_Team_12-1673348566336.png

 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.

Infineon_Team_11-1673348424955.png

 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.

Infineon_Team_10-1673348278008.png

 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.

Infineon_Team_9-1673348201010.png

 Figure 12  Target project debug settings

7. Click Project and select Build Target as shown in Figure 13.

Infineon_Team_8-1673348106376.png

 Figure 13  Project building menu

The build output is displayed as shown in Figure 14.

Infineon_Team_7-1673348046626.png

 Figure 14  Build output window

6  Suppress linker warnings about unused sections

1.  Right-click Target 1 and select Options for Target ‘Target 1’….

Infineon_Team_6-1673347944638.png

 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.

Infineon_Team_5-1673347859024.png

 Figure 16  Disabling linker warnings

4. Click Flash and select Download as shown in Figure 17.

Infineon_Team_4-1673347828498.png

 Figure 17  Project flash menu

The build output is displayed as shown in Figure 18.

Infineon_Team_2-1673347654015.png

Figure 18   Verifying flash window

 5. Click Debug and select Start/Stop Debug session to debug as shown in Figure 19.

Infineon_Team_1-1673347585122.pngFigure 19  Project debug menu

The debug window is shown in Figure 20.

Infineon_Team_0-1673347531365.pngFigure 20  Debugging project
0 Likes
47 Views