I'm trying to program my school learning board with PIC16F88 on Ubuntu. I installed sdcc and picpgm.

PIC16F88 already has bootloader so I intended to compile C code in to HEX with sdcc and then upload it with picpgm. We used microC's microBootloader tool in school.

So I tried to compile first and got to the first problem: when I call

$ sdcc -mpic16f88 lucke.c

I got:

at 1: error 131: cannot generate code for target 'pic16f88'

Did I think in the right direction at all? This is my first time with programming chips.

  • \$\begingroup\$ Where should I ask then? \$\endgroup\$ – Andrej Nov 19 '12 at 19:52
  • \$\begingroup\$ Flagged for migration to StackOverflow.SE \$\endgroup\$ – Andrew Nov 20 '12 at 7:42
  • \$\begingroup\$ @Andrej: Don't get discouraged by these comments, it is just the Stackexchange way of keeping questions organized. \$\endgroup\$ – jippie Nov 20 '12 at 8:02

Use -mpic16 at the command line.

  • \$\begingroup\$ Thanks, it is a step forward but I get errors: lucke.c:25: warning 112: function 'Delay_ms' implicit declaration and lucke.c:25: error 101: too many parameters \$\endgroup\$ – Andrej Nov 19 '12 at 20:37
  • 2
    \$\begingroup\$ Entirely unrelated to this question. Register a new question and copy in the source code you are trying to compile. \$\endgroup\$ – jippie Nov 19 '12 at 20:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.