Custom BSP with MQX 4.0.1 and CW 10.4

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom BSP with MQX 4.0.1 and CW 10.4

Jump to solution
1,723 Views
pk2
Contributor III

I am using a K52DN512Z on a custom board.  I used the BSP Cloning Wizard (using TWR-K53N512 as a starting point) and called mine MyBSPClone.

When I moved the .wsd file into an empty CW project and built the projects, there were no problems but over 200 warnings.

My question is, when I start a new MQX4.0 project, how do  I get my custom BSP to show up as one of the choices along with the TWR boards?  I found the instructions on how to do this with MQX 3.8 but it appears the file structure is different in MQX 4.0

Thank you.

Gary

1 Solution
328 Views
Martin_
NXP Employee
NXP Employee

Follow the document on the link below, New Project Wizard modification on pages 22-25:

https://community.freescale.com/message/306164#306164

In CW 10.4, the path to the Kinetis xml files is:

c:\Freescale\CW MCU v10.4\MCU\lib\wizard_data\mqx\4.0\arm\

View solution in original post

0 Kudos
7 Replies
328 Views
pk2
Contributor III

Thank you Martin.  Thank you.  Now for the next step... Modifying the files to support the MK52DN512 and MK52DN512Z.  WHere can I find the differences between these 2 versions.

0 Kudos
329 Views
Martin_
NXP Employee
NXP Employee

Follow the document on the link below, New Project Wizard modification on pages 22-25:

https://community.freescale.com/message/306164#306164

In CW 10.4, the path to the Kinetis xml files is:

c:\Freescale\CW MCU v10.4\MCU\lib\wizard_data\mqx\4.0\arm\

0 Kudos
328 Views
Vagni
Contributor IV

Hi Martin,

I installed CW 10.4 and MQX 4.0.2 on my Windows 7 PC.

I used BSP Cloning Wizard to clone twrk60n512 MQX libraries for my custom board TB4, following "Getting Started with Freescale MQX BSP Cloning Wizard.pdf" help document.

The wizard generated TB4.reg and TB4.xml files in the "<MQX_4_0>\tools\CodeWarriorNPW" folder. I imported TB4.reg in Windows and copied TB4.xml in the "<CW_10_4>\MCU\lib\wizard_data\mqx\4.0\arm" folder, where the XML files for  Kinetis Evaluation boards are already present.

I started CW and tried to create a new MQX project for my TB4 board, but my new board does not appear in the Kinetis board list.

How can I fix it?

Thank you.

0 Kudos
328 Views
drodgers
Senior Contributor I

I'm having the exact same issue.  I have three custom BSPs I've cloned/developed so far, but I cannot get them to appear in the New Project Wizard.  I've tried copying them to C:\Freescale\CW_MCU_v10.5\MCU\lib\wizard_data\mqx\4.0\arm, or one level above that, but after closing and restarting CW, nothing changes, I just see the eval boards.  C'mon Freescale, what's the trick?

0 Kudos
328 Views
Martin_
NXP Employee
NXP Employee

The BSP Cloning Wizard for MQX with Freescale MQX 4.0.2 generates two files to support CodeWarrior New Project Wizard for a BSP clone: .reg and .xml in c:\Freescale\Freescale_MQX_4_0\tools\CodeWarriorNPW\. The .xml file is to be located in C:\Freescale\CW_MCU_v10.5\MCU\lib\wizard_data\mqx\4.0\arm


The .reg file is for 32-bit Windows (at the moment). For a 64-bit Windows 7, we have been told the .reg file needs to be changed as shown in the below example (note the "Wow6432Node"):

Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Freescale\Freescale MQX\4.0 newbsp]

"INSTALL_DATE"="10-09-2013"

"PACKAGE_DATE"="2013/09/10"

"PACKAGE_SIZE"="0"

"PATH"="C:\\Freescale\\Freescale_MQX_4_0"

"VERSION"="4.0.2"

328 Views
Keith4DSmith
Contributor V

For CW 10.6 and MQX 4.1.1 the keyword WOW6432Node is properly added to the *_64.reg file.

0 Kudos
328 Views
drodgers
Senior Contributor I

Tried it, still didn't work.  Running Windows 7 x64.  These are my file contents:

Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Freescale\Freescale MQX\4.0 CAM_DBU_K60F120M]

"INSTALL_DATE"="03-10-2013"

"PACKAGE_DATE"="2013/10/03"

"PACKAGE_SIZE"="0"

"PATH"="C:\\Freescale\\mqx_4.0"

"VERSION"="4.0.2"

I shut down CW 10.5, put cam_dbu_k60f120m.xml in C:\Freescale\CW_MCU_v10.5\MCU\lib\wizard_data\mqx\4.0\arm, executed cam_dbu_k60f120m_x64.reg (my hack of the original .reg file), restarted CW, and tried creating a new project... the same board families were listed (CF, CF+, and Kinetis eval boards), no listing for my custom board.

There's got to be a better way to do this.  This functionality should be integrated into the BSP Cloning Wizard, instead of having us manually copy XML files and hand-install registry files.

0 Kudos