View previous topic :: View next topic |
Author |
Message |
1980best
Joined: 25 May 2007 Posts: 26
|
why error wizard ? |
Posted: Wed Apr 08, 2015 4:42 am |
|
|
I usually used wizard but wizard error...
I chanching pin or software .etc
#pin_select U1TX=PIN_E6
#pin_select U1RX=PIN_E7
/*.........................................................................................
.........................................................................................
.........................................................................................*/
AFTER...
#pin_select U1TX=PIN_E7
#pin_select U1RX=PIN_E6
Build Successful...
|
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Wed Apr 08, 2015 5:03 am |
|
|
So whats the problem?
RPI86 is an input only pin....the error is valid
when you define E6 as a TX output. _________________ Google and Forum Search are some of your best tools!!!! |
|
|
1980best
Joined: 25 May 2007 Posts: 26
|
|
Posted: Wed Apr 08, 2015 5:09 am |
|
|
I think the wizard should not allow it
pins should be closed in the wizard
program would be more useful
This is my personal opinion
Thanks.. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19494
|
|
Posted: Wed Apr 08, 2015 7:18 am |
|
|
Seriously, I don't think anyone who actually works with the compiler at all professionally uses the Wizard.
You have found one tiny little problem that it doesn't recognise that a particular pin is input only. However There are so many more major faults that worrying about this seem pointless.
The Wizard _has no 'intelligence' at all_. It'll allow you to setup all sorts of combinations that are impossible, and many of these will not be spotted by the compiler. Relying on it, is a sure way to shoot yourself in the foot.
The best way to work, is to start with the manufacturer's data sheet, and work out the settings you need for the chip involved. Then code just these. Store this setup as a PICxxxxsettings.h, and use this as the starting point whenever you use this chip.
Last edited by Ttelmah on Wed Apr 08, 2015 7:25 am; edited 1 time in total |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Wed Apr 08, 2015 7:24 am |
|
|
Quote: | the wizard should not allow |
Face it: the wizard is not so smart. I've seen the proof of this many times over.
It is a well meaning concept but flawed in more ways than you realize.
Hence it is not a wise choice to depend on it.
Though i have the full IDE / Wizards - it is only for the purpose of untangling and reintegrating the messes other people have started to create using it.
MY suggestion:
Become the wizard you seek and use the command line version of the compiler
instead. |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Thu Apr 09, 2015 5:29 am |
|
|
You are expecting way too much. Nothing substitutes for YOU reading the datasheet!
With the remappable pins and multitude of CPU versions out there, for the
CCS people to research and cover every possible pin combination would be
almost impossible. Not to mention, due to the hundreds of man hours it
would take, it would likely drive the compiler price way up! _________________ Google and Forum Search are some of your best tools!!!! |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9220 Location: Greensville,Ontario
|
|
Posted: Thu Apr 09, 2015 6:06 am |
|
|
The 'Wizard' is about as smart as ISIS/Proteus...
sigh
NOTHING is better than reading the datasheets of the devices you're using. Yes, I know it can be 'boring,dreary and dull' BUT it it THE place to get the information about the PIC !! Heck 20 years ago that's what we had to do, 30 years ago it was all about assembler and reading papertape.
Think about it, would you take your new Corvette to a farm tractor dealership to be have the 'computer' reprogrammed ??
The more you read the datasheets, the better the programmer you'll become.Same is true about reading the CCS compiler manual and looking(if not testing) the tons of free, working example programs CCS supplies.
I point I want to make is that you should NOT put 'blind faith' in a 3rd party 'wizard' or 'simulator'. These day no one 'program' can possibly 100% correctly 'setup' the hundreds of PICs available. CCS is one of a handful that when reported DO correct the 'errors' in a reasonable amount of time. Far faster than the infamous 'blue screen of death' !
Jay |
|
|
ELCouz
Joined: 18 Jul 2007 Posts: 427 Location: Montreal,Quebec
|
|
|
|