3

When I compile my code I am getting a unknown Opcode '.pword' error. The only line of code in my project that has .pword is:

do {
    __asm__ volatile (" .pword 0xDA4000");
    Nop();
} while(0)

Commenting the line out does nothing.

I searched .pword 0xDA4000 and know it is supported by the IDE MPLab for PICs.

In my case the IDE I am using is CrossStudio for a STMf32f2xx chip.

I have the updated CrossStudio which comes with binutils 2.21 and gcc 4.6.0

I initially had a problem with compiling unnamed structs and unions but adding -fms-extensions into additional C compiler options fixed it.

I dont know if I need to do something similar to fix Opcode '.pword' error.

could it just be that .pword is only a PIC opcode?

Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
microb
  • 93
  • 1
  • 2
  • 9
  • As you run into further pic specific issues Electronics.Stackexchange.com has quite a few questions and quite a few experts. Just an aside if we can be of help. – Kortuk Oct 20 '11 at 21:08

1 Answers1

2

In MPLAB ASM30 assembler the .pword declare 24 bit constant in code memory. It can be also any MPLAB ASM30 instruction.

Check: MPLAB ASM30 assembler

GJ.
  • 10,810
  • 2
  • 45
  • 62