mingw32-make: *** No rule to make target `C:/Freescale/Freescale_MQX_4_1/lib/frdmk64f.cw10gcc/debug/bsp/intflash.ld', needed by `explicit-dependencies'

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

mingw32-make: *** No rule to make target `C:/Freescale/Freescale_MQX_4_1/lib/frdmk64f.cw10gcc/debug/bsp/intflash.ld', needed by `explicit-dependencies'

Jump to solution
3,290 Views
boliu
Contributor I

1.Run CW 10.6.

2. create a new MQX4.1 project.

3. Select FRDMK64F board

4. Select aoolication type: Example application. Then chose basic examples->demo.

5.New Connection: Open Source JTAG

6.drag C:\Freescale\Freescale_MQX_4_1_FRDMK64F\build\frdmk64f\cw10gcc\rag build_libs.wsd to project explore.

7.selct bsp_frdmk64f, Hardware view. MK64FN1M0VLQ12 processor shown.

8. Project->Generate Processor Expert Code.

7. Projects->Build all, we have this error

mingw32-make: *** No rule to make target `C:/Freescale/Freescale_MQX_4_1/lib/frdmk64f.cw10gcc/debug/bsp/intflash.ld', needed by `explicit-dependencies'. Stop.

0 Kudos
1 Solution
1,851 Views
RadekS
NXP Employee
NXP Employee

When we want build MQX application, libraries must be built first.

Please do your steps in this sequence:

1.Run CW 10.6.

2. drag C:\Freescale\Freescale_MQX_4_1_FRDMK64F\build\frdmk64f\cw10gcc\rag build_libs.wsd to project explore.

(3. Made your BSP modifications.)

(4. Project->Generate Processor Expert Code.)

5. Projects->Build all

6. Create a new MQX4.1 project.

7. Select FRDMK64F board

8. Select application type: Example application. Then chose basic examples->demo.

(9. Build application)

10. New Connection: Open Source JTAG

11. Debug

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
15 Replies
1,852 Views
RadekS
NXP Employee
NXP Employee

When we want build MQX application, libraries must be built first.

Please do your steps in this sequence:

1.Run CW 10.6.

2. drag C:\Freescale\Freescale_MQX_4_1_FRDMK64F\build\frdmk64f\cw10gcc\rag build_libs.wsd to project explore.

(3. Made your BSP modifications.)

(4. Project->Generate Processor Expert Code.)

5. Projects->Build all

6. Create a new MQX4.1 project.

7. Select FRDMK64F board

8. Select application type: Example application. Then chose basic examples->demo.

(9. Build application)

10. New Connection: Open Source JTAG

11. Debug

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,851 Views
DavidS
NXP Employee
NXP Employee

In addition to what Radek outlined please read C:\Freescale\Freescale_MQX_4_1_1_GA\doc\MQX_Getting_Started.pdf for added help.

Regards,

David

0 Kudos
1,851 Views
boliu
Contributor I

Hi David,

  I installed two MQX_4_1 package.

1. Freescale_MQX_4_1 (Freescale MQX RTOS 4.1.1.exe)

2. Freescale_MQX_4_1_FRDMK64F (FSLMQXOS_4_1_0_FRDMK64F_GA.exe).

If I use Freescale_MQX_4_1, I can build the project correctly.

If I use Freescale_MQX_4_1_FRDMK64F, the problem is still there. Is this package a specific package for the FRDMK64F board? Now I can ignore this package, that's fine.

On the other hand, I select OpenSDA as debugger tool, but when I start debug, the following window is shown. what's the problem? MBED is In the Explore. I also tried BOOTLOADER mode, but it did not work too.

Thank you so much.

  Bo

pastedImage_0.png

0 Kudos
1,851 Views
DavidS
NXP Employee
NXP Employee

Hi Bo,

The Freescale_MQX_4_1_1 is the most up-to-date MQX version and supersedes the Freescale_MQX_4_1_FRDMK64F.

So just use the Freescale_MQX_4_1_1 for the frdmk64.

Regards,

David

0 Kudos
1,851 Views
boliu
Contributor I

Hi David,

I could not find bbl file. Does the new code warrior still use this file? If not, how can we specify output files?

Thank you so much.

Bo

0 Kudos
1,851 Views
RadekS
NXP Employee
NXP Employee

About output file)

Here is nice tutorial how to enable generating s19/hex/binary file:

http://mcuoneclipse.com/2012/09/13/s-record-generation-with-gcc-for-armkinetis/

And here is some description about using burner.exe utility for execution of *.bbl files:

http://mcuoneclipse.com/2013/10/29/s-record-manipulation-with-gnu-objcopy-and-burner-utility/

http://mcuoneclipse.com/2012/09/27/s-record-intel-hex-and-binary-files/

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,851 Views
boliu
Contributor I

Hi RadekS,

Yes, I can output the files. The problem is the file extension is always hex no matter what format file is output. The file extension doesn’t match the file format.

Thank you for helps.

Bo

0 Kudos
1,851 Views
DavidS
NXP Employee
NXP Employee

Hi Radek and Bo,

I too have just seen that I could set the output to be a srec file but the extension always remains .hex.  I think KDS needs option for customizing the output file extension.

Regards,

David

0 Kudos
1,851 Views
RadekS
NXP Employee
NXP Employee

Hi David,

I agree that it is right area for improving in one of next KDS releases.

Workaround1: I modified Command line pattern for output file name from ${OUTPUT} to directly $""output.s19" file.

Note: second quotation mark is here because first char is automatically cut off - it could be for example $0"output.s19"

output file.png

Workaround2: Did you try approach with burner.exe and *.bbl files? This approach should not suffer by this limitation.

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,851 Views
boliu
Contributor I

Hello RadekS,

Yes, I can output S19, bin and hex file now.

Thank you for helps.

Bo

0 Kudos
1,851 Views
boliu
Contributor I

Hi David,

Yes, I see. I’ll use Freescale_MQX_4_1_1 only.

How is the debug issue? Can I use OpenSDAv2 port to debug or shall I use MultiLink device? Any specific jumper setting on the EVM?

Thank you very much.

Bo

0 Kudos
1,851 Views
RadekS
NXP Employee
NXP Employee

About debugger at FRDM-K64F board)

The good thing is that debugging chip at board is not secured therefore you can use different debugging firmware.

You can use mbed CMSIS-DAP, P&E Micro or Segger JLink.

It seems that PEmicro connection manager in your case cannot detect debugger – so it leads me to supposition that your debugger chip contains different firmware than PEmicro – for example mbed CMSIS-DAP.

So, you can try search what firmware is loaded inside onboard kinetis K20 chip and select right debugger option or rather you can simply select best firmware for you and replace old firmware in onboard kinetis K20 chip.

Personally I use Segger J-Link.

More details about OpenSDAv2 at FRDM-K64:

https://community.freescale.com/docs/DOC-100720

More details about SWD and JTAG at FRDM-K64:

http://mcuoneclipse.com/2014/04/20/using-the-frdm-k64f-with-codewarrior/

Important note: When you want load firmware/code into debugger chip by bootloader, please don’t use any file manager like Total Commander. Bootloader disk is not true mass storage disk. I would like to highly recommend use standard windows explorer for drag and drop manipulation with firmware files.

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,851 Views
boliu
Contributor I

Hello Radeks,

I’m using CW 10.6. mbed CMSIS-DAP is not in the debugger list. How can I make it listed?

Thank you very much.

Bo

0 Kudos
1,851 Views
RadekS
NXP Employee
NXP Employee

Unfortunately CW10.6 is older that CMSIS-DAP therefore CMSIS-DAP is not supported in CW. CMSIS-DAP could be directly used in KDS.

You can look for any external eclipse solution – some plug-ip (trough GDB server), but I would like to recommend replace original CMSIS-DAP by PEmicro or Segger firmware as simplest possible solution in your case.

Other options:

  1. You can use external debugger like Universal Multilink from PEmicro or Segger J-Link.
  2. USBDM – as onboard debugger or as external debugger (trough any other FRDM-xxxx board), but I didn’t test it till now.

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,851 Views
DavidS
NXP Employee
NXP Employee

Hi Bo,

The OpenSDA works for me.

I use the MultiLink for custom boards.

Here is my board for jumper reference:

frdm-k64f120m.JPG.jpg

Regards,

David

0 Kudos