ColdFire Assembler-only Project for MCF51QE128

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

ColdFire Assembler-only Project for MCF51QE128

897 Views
buckeyeman
Contributor III

Hello,

 

There is a problem vexing me at the moment, and that is, how to get a downloadable-to-EVB file generated (presumably that is an ELF file???).

 

Using the EVBQE128 with MCF51QE128 installed and the P&E Micro MultiLink Universal tools.  Using CW for MCU v10.1, fully updated. Absolutely NO C/C++ code. The assembler has generated a main_asm.obj file, no problem there. I am not using any code libraries as additional sources for the project. But the so-called SmartLinker (presumably it is this tool) is giving me fits! :

 

Here is the Console view from Build Project:

 

**** Build of configuration MCF51QE128_Internal_Flash for project EVBQE128_with_MCF51QE128_15-NOV-2011_A ****

C:\Program Files (x86)\Freescale\CW MCU v10.1\gnu\bin\make all
'Building file: ../Sources/main.asm'
'Invoking: ColdFire Assembler'
"C:/Program Files (x86)/Freescale/CW MCU v10.1/MCU/ColdFire_Tools/Command_Line_Tools/mwasmmcf" @@"Sources/main.args" -o "Sources/main_asm.obj" "../Sources/main.asm"
'Finished building: ../Sources/main.asm'
' '
C:\Program Files (x86)\Freescale\CW MCU v10.1\gnu\bin\make: *** No rule to make target `C:/CodeWarrior_Workspace_2/EVBQE128_with_MCF51QE128_15-NOV-2011_A/Project.prm', needed by `EVBQE128_with_MCF51QE128_15-NOV-2011_A.elf'.  Stop.

 

Now, here are the ColdFire Linker settings under Project Properties - Tool Settings:

 

Command: "${CF_ToolsDir}/mwldmcf"

All options: -sym full -msgstyle parseable -proc 51QE -lavender model=ewl ,print=int ,scan=int ,io=raw -nostdlib "../Project.prm" -application -map -map keep -srec -sreclength 252 -sreceol dos -list -brec -breclength 252 -w on

Expert settings: ${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}

 

And here is the contents of the Project.prm file, with the Vector Addresses being omitted for brevity here:

 

LINK main.abs

/* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
NAMES
    main_asm.obj
END

/* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
SEGMENTS
    ROM_AREA = READ_ONLY        0x00000000 TO 0x0001FFFF    
    RAM_AREA = NO_INIT            0x00800000 TO 0x00801FFF
END

/* Here all predefined and user segments are placed into the SEGMENTS defined above. */
PLACEMENT
    DEFAULT_ROM INTO ROM_AREA
    DEFAULT_RAM INTO RAM_AREA
END

 

I'm stumped, does anyone see what I am missing here? The CW for MCU help is not being very helpful ;(

 

It was much easier back when I was using the MCF9S08QE128 chip...

 

Any help would be most appreciated, thanks!

 

Brad

Labels (1)
0 Kudos
4 Replies

566 Views
CrasyCat
Specialist III

Hello

 

    It looks like the linker is unable to find the .prm file.

 

   Where is your .project file located?

   Where is the .prm feel located?

   Where is your build directory?  To retrieve this one open the Project Properties dialog and check edit box Build directory in

    the C/C++ Build page (Tab Builder Settings), 

 

CrasyCat

0 Kudos

566 Views
buckeyeman
Contributor III

Thanks for the feedback, CrasyCat, I 'll check after my Thanksgiving journey today... :smileywink:

0 Kudos

566 Views
buckeyeman
Contributor III

Well, intuition and CW for MCU are at odds with each other, to the point where I have nearly thrown in the towel on trying to figure out the make process in order to get my assembled object file linked into a file useable by the EVB.

 

So, at the moment, I am investigating the feasibility of using the IAR Embedded Workbench IDE to see if it can get the job done.

 

Brad

0 Kudos

566 Views
Kerrie
Contributor I

We write multiple projects all in assembly, using the PE and development tools.  (they have support for the QE128) it was much cheaper then IAR. 

0 Kudos