David Rodgers

MQX 4.1.1 BSP Cloning Wizard bug and fix (globals_full.yml not found)

Discussion created by David Rodgers on Aug 29, 2014
Latest reply on Feb 20, 2015 by Jianwu Tong

I started a new project this week, so I updated to the latest MQX release (4.1.1, I had been using 4.0.2 previously) to get K21F120 support.  My first step was to clone the K21 BSP for our new board, but after creating the YML file and starting the cloning process, I got a crapton of error messages, that mostly looked like this:

 

Generating: BSP for cw10gcc
------------------------------------------------------------------------------------------------------------------------

ASSERTION FAILED:

message: file do not exists 'c:/Freescale/mqx_4.1/tools/generator/records/mqx_records/globals_full.yml'

------------------------------------------------------------------------------------------------------------------------

file : \<C:\Freescale\mqx_4.1\tools\generator\project.exe>UtilityBase.pm

line : 132

args : 0

args : file do not exists 'c:/Freescale/mqx_4.1/tools/generator/records/mqx_records/globals_full.yml'

------------------------------------------------------------------------------------------------------------------------

file : mqx_project.pl

line : 41

args : MQXProjectUtility=HASH(0x675d7ac)

args : c:/Freescale/mqx_4.1/tools/generator/records/mqx_records/globals_full.yml

------------------------------------------------------------------------------------------------------------------------

file : \<C:\Freescale\mqx_4.1\tools\generator\project.exe>Class\MOP\Method.pm

line : 125

args : MQXProjectUtility=HASH(0x675d7ac)

args : HASH(0x67720f4)

 

I checked the MQX file tree, and apart from the BSP source itself being copied for my new BSP, none of the project files for BSP, PSP, or examples were being generated.  I investigated the missing file, and found that while

c:/Freescale/mqx_4.1/tools/generator/records/mqx_records/globals_full.yml

did not exist, this one did:

c:/Freescale/mqx_4.1/tools/generator/records/mqx_records/globals.yml

 

I went ahead and submitted a support ticket, and after an initial misunderstanding (the tech just assumed I was asking about the 64-bit registry issue), he confirmed that this is in fact a bug in the BSP Cloning Wizard for MQX 4.1.1.  The workaround is simply to copy globals.yml to globals_full.yml and run the Wizard; this will allow the cloning process to complete.  I have a sneaking suspicion that the developer decided to rename that file, but had a copy of the old file kicking around on his system, so it only causes problems on a fresh installation of MQX 4.1.1.

 

Anyway, thought I'd share here in case anyone else runs into this issue.

 

David R.

Outcomes