This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Assembler directive or command line switch for the 5509"A"

We keep getting annoying messages from errors that were in the 5509 errata but are NOT in the 5509A errata (so I'm assuming that means these are fixed).

Specifically we have gotten errors:  CPU_21 and CPU_27.

Apparently the assembler thinks we are using the 5509.  Is there a command line switch or assembler directive to "force" the assembler we are generating code for the 5509"A" silicon?

Thank you in advance.

Tony

  • Tony,

    Have you tried using the -v compiler switch to specify your target?  I think you would use -vcore:2.2 to specify the CPU version used on the C5509A.

    Regards.

  • Tommy,

    Thank you for the reply.

    We tried this with the CCS V4 assembler and got the message indicating the -v command is an unrecognized option.  Were you able to get this to work or do we have an obsolete version of the assembler (ours is dated 10-04-2009) ?

    Tony

  • Tommy,

    Specifically the assembler reports PC v4.3.5 Thu Jul 29 09:50:50 2010.

    Tony

  • Tony,

    Sorry, the -v switch is for CCS3.x.  For CCSv4 the comparable setting is under Build Properties -> C/C++ Build -> Tool Settings tab -> C5500 Compiler -> Basic Options.  The first setting is where the device can be specified.  I've got a C5509A project where I specified 5509A as the target.  Try that.

    There is a newer version of the compiler v4.3.6 that has some bug fixes that you want to get.

    Regards.

  • Tommy,

    Thanks - we got it to work from the GUI and then looked at its command line execution.  From there we found that using the CL55 -v5509A [filename] from the command line will work (previously we had been using masm55).

    Can we get a listing directly from CL55 without having to also use the disassembler?  We just like the format of the masm55 listing better than the disassembler listing.

    Best regards, your help has been much appreciated.

    Tony

  • Tony,

    I am not familar with the masm55, so am not sure what the output looks like.  There is an option in CCSv4 Build Properties for the C5500 Compiler -> Assembler Options to generate a listing file (2nd check box).  Is this what you are looking for?

    Regards.

  • Tommy,

    Thank you again for all your help...

    We solved the listing issue and I wanted to let you know what we discovered:

    \[path]\CL55 -v5509A -g --asm_listing [asm source file]

    Creates a nice assembler listing and bypasses the step of running the disassembler.  We like this listing better than the one the disassembler produces, but it's just a matter of personal preference.

    Thanks again for your help and insight - this issue is now officially closed!  :-)

  • Tony,

    Glad you are getting the results you wanted.  Thanks for sharing you solution.  The Community appreciates it.

    Regards.