LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   12F675 programming from Linux (https://www.linuxquestions.org/questions/programming-9/12f675-programming-from-linux-853227/)

devnull10 12-30-2010 05:38 AM

12F675 programming from Linux
 
Back at uni I used to love programming in assembly, we used ARM processors and some pre-made boards. Anyway, I'd like to try and get back into it, so I have acquired some basic electronic components, some prototype board, a couple of 12F675 chips and a JDM serial programmer.

Now, whilst I could run this from my works laptop on Windows, I'd far prefer to use my Linux desktop! (of course!) :)
I'll be using my favourite editor to write the code so not bothered about an all singing and dancing IDE.

I have a couple of questions...

1) What can I use to assembly/compile the source code? Does gcc have any support? If not, can someone recommend a free assembler, ideally command line?

2) Is there any good simulator software out there (I've found a few but not found people who have actually used them)? It would be useful to be able to run the code through a simulator before actually uploading to the chip - saves time and effort uploading something to find I've missed a command out!

3) Any useful links, tutorials, forums?

4) Any other resources? Like I said, I can (or at least used to be able to! :) ) write code for an ARM chip but the instruction set it different for this. I can easily pick up languages though so not too bothered about learning from scratch. I know people will say use c, but I'd far prefer to go down the ASM route, just for my own benefit and enjoyment!


This isn't for any particular project, it's just a hobby - once I've got a sound grounding then I'll start looking at a few more elaborate things!

Ta! :)

redhatstand 12-30-2010 06:44 AM

Hiya,

http://pp06.sourceforge.net/

seems like a good place to start - haven't tried it but looks promising.

www.sf.net in general would be worth searching:

http://sourceforge.net/projects/sdcc/ - might support C inline asm at least?

I used to code for the 12C508 - not even enough space to swing a gnat :-)

Oh, yes my google search string was 12F675 linux

Regards,

Andy T


All times are GMT -5. The time now is 02:28 PM.