Ambient
New Member
C18 variables problem
First off, Microchip needs fix their crap. Half of the example code in the C18 guide does not work with the compiler. Even some of the code supplied with the compiler!
Question 1: how do I use the "-p18f4685" command line option? From what it tells me, it should be: "mcc18 -p18f4685". But this does not work (syntax error!)
Question 2: I get the message: "Error - section '.tmpdata' can not fit the section. Section '.tmpdata' length=0x00000020" This happens whenever I uncomment the function I have that crunches through some IK equations. I have no idea how to fix this, or why the problem exists. I am assuming that the reserved .tmpdata variable section is not big enough. How would I create a new temp data section and have the function use that? Microchip really needs to read their own stuff.
First off, Microchip needs fix their crap. Half of the example code in the C18 guide does not work with the compiler. Even some of the code supplied with the compiler!
Question 1: how do I use the "-p18f4685" command line option? From what it tells me, it should be: "mcc18 -p18f4685". But this does not work (syntax error!)
Question 2: I get the message: "Error - section '.tmpdata' can not fit the section. Section '.tmpdata' length=0x00000020" This happens whenever I uncomment the function I have that crunches through some IK equations. I have no idea how to fix this, or why the problem exists. I am assuming that the reserved .tmpdata variable section is not big enough. How would I create a new temp data section and have the function use that? Microchip really needs to read their own stuff.
Last edited: