Rich D.
Active Member
Please excuse me if this was mentioned and addressed already, I looked and looked and didn't find anything...
I want to program a PIC24FJGA204 chip using MPLAB-X IDE (v4.00). I have a sample code that downloads and runs correctly on the unit (a PIC24F Curiosity Development board). Of course that is written in C (might as well be Greek). I can't seem to figure out how to get a Microchip Demo C program to call and execute assembly code. Microchip of course brags all over the place it can be done but doesn't seem to show me how! Seems they are really trying to screw the assembly coders out there. I would switch brands but I already have board designs committed to PIC24s.
I added a small sample .s file to the project with some assembly code. It compiles but shows no errors, and runs but doesn't execute any assembly code (which would take over and flash an LED and never return.) I didn't expect it to though, as I have never seen how to "declare" or tell the software to run this assembly. I figure it should be in a header or build file or something but what do I need to add and where? All my dreams would come true if somebody has a project example that does something simple in assembly such as flip an LED on a PIC24 that will compile and run with MPLAB-X. That really is all I need to get started. Once I have control over the chip I am confident I can get it to do all kinds of tricks for me.
For those who would just recommend I use C, Insult me if you must, but I am not good in C, I don't really get it, I used it for work but I don't like it, never did, never will. I have successfully developed many applications in Microchip Assembly for various dsPICs and I am comfortable with it, I will be able to kik-ass with it, so I want to use it. In fact I *need* to use it, as I have promised two companies that I will develop code with these PIC24FJ chips, and now that my old MPLAB IDE v7.xx won't support these newer, better chips, I am screwed unless I figure out how to get this d$%& MPLAB-X software to do what the old 7.xx software did so well...assembly.
I want to program a PIC24FJGA204 chip using MPLAB-X IDE (v4.00). I have a sample code that downloads and runs correctly on the unit (a PIC24F Curiosity Development board). Of course that is written in C (might as well be Greek). I can't seem to figure out how to get a Microchip Demo C program to call and execute assembly code. Microchip of course brags all over the place it can be done but doesn't seem to show me how! Seems they are really trying to screw the assembly coders out there. I would switch brands but I already have board designs committed to PIC24s.
I added a small sample .s file to the project with some assembly code. It compiles but shows no errors, and runs but doesn't execute any assembly code (which would take over and flash an LED and never return.) I didn't expect it to though, as I have never seen how to "declare" or tell the software to run this assembly. I figure it should be in a header or build file or something but what do I need to add and where? All my dreams would come true if somebody has a project example that does something simple in assembly such as flip an LED on a PIC24 that will compile and run with MPLAB-X. That really is all I need to get started. Once I have control over the chip I am confident I can get it to do all kinds of tricks for me.
For those who would just recommend I use C, Insult me if you must, but I am not good in C, I don't really get it, I used it for work but I don't like it, never did, never will. I have successfully developed many applications in Microchip Assembly for various dsPICs and I am comfortable with it, I will be able to kik-ass with it, so I want to use it. In fact I *need* to use it, as I have promised two companies that I will develop code with these PIC24FJ chips, and now that my old MPLAB IDE v7.xx won't support these newer, better chips, I am screwed unless I figure out how to get this d$%& MPLAB-X software to do what the old 7.xx software did so well...assembly.