ERROR: Element 'example', attribute 'path'

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ERROR: Element 'example', attribute 'path'

727 次查看
razvanstanescu
NXP Employee
NXP Employee

Hi all,

I am currently working on adding a new board to the SDK generator. I was working on an old branch, and after I rebase my branch with the "release/2.5.0_rel9_rfp" the generator stopped working. The behavior was the following :

Start generating examples.
generate project:  [release debug] [rapidiotk64f_hello_world] [C:/Repos/mcu-sdk-2.0/boards/${board}/demo_apps/hello_world/iar/rapidiotk64f_hello_world.ewp]
generate project:  [release debug] [rapidiotk64f_hello_world] [C:/Repos/mcu-sdk-2.0/boards/${board}/demo_apps/hello_world/mdk/rapidiotk64f_hello_world.uvprojx]

.

.

.

106:0: ERROR: Element 'example', attribute 'path': [facet 'pattern'] The value 'boards/${board}/demo_apps/hello_world' is not accepted by the pattern '([$a-zA-Z_\-\s0-9\.\|\(\)']+/?)+'.
106:0: ERROR: Element 'example', attribute 'path': 'boards/${board}/demo_apps/hello_world' is not a valid value of the local atomic type.

As you can see the scrip didn't parse the ${board} expression and created the "${board}" board. After some digging I found that in other working boards in the "mcu-sdk-2.0\bin\generator\records_v1\projects\frdmk64f\sdk.yml" file the "- bin/generator/records_v1/msdk/projects/lib_example/lib_sdk/MK64F12.yml" line was commented out. After I commented this line for my board it worked.

Why do we need to comment that line ?

Thank you,

Razvan.

2 回复数

713 次查看
marek-trmac
NXP Employee
NXP Employee

Razvan,
we do not know the answer, this should be answered by @Holt Sun. It seems it is not blocking so lets wait when he is back from holidays.

Marek

Regards,
Marek


NOTE: If you find the answer useful, kindly click on "ACCEPT AS SOLUTION" button
0 项奖励
回复

713 次查看
razvanstanescu
NXP Employee
NXP Employee

You are right, it is not blocking me. I just wanted to understand better the problem and also I wanted to share my fix.