I have a problem to run a project and gave me an Error to build ninja

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I have a problem to run a project and gave me an Error to build ninja

3,421 Views
geb
Contributor III

Hello,

I have a problem build a modified project from my colleague using IMX93 processor, to him the project work,

When we passsed the project with an USB when I try tu build gave me this error

build task started....
"C:\Program Files\CMake\bin\cmake.EXE" --build D:/NXP/1930030005/armgcc/debug --target all --
ninja: error: loading 'build.ninja': The system cannot find the file specified.

build finished with error(s).

* The terminal process failed to launch (exit code: 1).
* Terminal will be reused by tasks, press any key to close it.

Everything is perfectly set up, but still can't build the ninja, how is this possible?

 

Thanks & Regards

Tags (1)
0 Kudos
Reply
10 Replies

3,415 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @geb!

Thank you for contacting NXP Support!

 

Are you trying to compile a project for M core?

Can you provide more details of your problem?

 

If you are using VS Code to compile you should import the code using VS code and compiling the code using vs code.

 

Best Regards!

Chavira

0 Kudos
Reply

3,410 Views
geb
Contributor III

Hi @Chavira ,

Yes, I'm trying to using M33 core from FRDM-IMX93

We are working with SD on the board, I have build the 

 imx-image-full-imx93frdm.rootfs.wic.zst 

with the uuu and it's work

We have modified the dtb file and modified in dts and take out the resistances because we think that the board start with UART, we have take out resistance for running jtagw with jlink, the pins that we use are SWDIO an SWCLK, we have take out UART for use defoult configuration, it's correct to have take out UART5? And now I have started to run a project with VScode building and running with jlink, but I can't build the project the error that I have write previously

Thanks & Regards

Gabriele

0 Kudos
Reply

3,380 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @geb!
Thank you for contacting NXP Support!

 

There is not needed to remove the resistors.

If you want to debug the M core at U-boot stage you don´t have to change nothing, if you  need to debug the M core in Linux stage you should remove the UART5 from the device tree to avoid to set up the debug pins to UART5 function.

 

To debug the iMX93 using JLINK debugger you should install a patch, please refer to AN14120 

 

Best Regards!

Chavira

0 Kudos
Reply

3,376 Views
geb
Contributor III

Hi @Chavira ,

Sorry but no, we have to debug the M33 on FRDM-IMX93 with C on Visual Studio Code in Windows 10 with j-link segger.

How can we use j-link segger on FRDM-IMX93 on Visual Studio Code on Windows 10?

The https://www.nxp.com/docs/en/application-note/AN14120.pdf if for IMX93-EVK and not for FRDM-IMX93

Thanks & Regards

 

0 Kudos
Reply

3,368 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @geb!

The AN14120  talks about the iMX93-EVK but both boards share the same processor, you need the patch for JLINK that we provide in AN14120 to debug the FRDM board.

 

At the moment we don´t have any guide of how to debug the FRDM board but should be the same process of iMX93-EVK due to both boards has the same processor and both boards share the most of their connections, all of our examples for iMX93-EVK for M core should work without problems in FRDM Board.

0 Kudos
Reply

3,349 Views
geb
Contributor III

Hi @Chavira,

I patched the jlink using the data that are specified in AN14120 but doesn't work

Thanks & Regards

0 Kudos
Reply

3,310 Views
Chavira
NXP TechSupport
NXP TechSupport

HI @geb!

After a few days of research I found the solution.

 

According to this guide, we have to initialize the gdb server before to start the debug session in VS Code.

 

I have tried with the iMX93-EVK but should be the same for FRDM-IMX93.

 

I change the JTAG for SWD in gdb sever.

 

Best Regards!

Chavira

 

 

0 Kudos
Reply

3,294 Views
geb
Contributor III

Hi Chavira,

For my colleague works connecting the pin 1 Vtref of the JTAG to 3,3 V.

We have used the j-link segger base and j-link segger mini and for him works, form me doesn't works and gave me the same error of bulding nonja

Do you have any advice on what we can do with my problem? because on his pc it works

Thanks

Kind Regards

Gabriele

0 Kudos
Reply

3,285 Views
Chavira
NXP TechSupport
NXP TechSupport

HI  @geb!

That error should be problem of the environment.

Can you install the required packages using the MCUXPRESSO installer?

 

how you are  importing the source code?

Do you have the same sdk version installed?

 

 

0 Kudos
Reply

3,139 Views
geb
Contributor III

Hi @Chavira ,

I think we have found the problem, when we import a project from another pc the file on the  .vscode folder have different data in mcuxpresso-tools.json the toolchainPath is different and same in mcux_include.json for ARMGCC_DIR and MCUX_VENV_PATH. We have modified these data, but how can we not modify this data and make the modification automatic?

Thanks

Kind Regards

0 Kudos
Reply