invalid pin configuration designator

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
wwwoholic
Posts: 53
Joined: 23 December 2010, 20:58 PM

invalid pin configuration designator

Post by wwwoholic »

I've being re-compiling some old working programs with new compiler and stumbled upon this:
option PortD "PTPTTTTT"
Warning: invalid pin configuration designator for bit 0 (1)

I admit this is rather valid warning, as pins in question are used as serial I/O for programming.

My question is this - if old program worked fine then either compiler ignored my configuration or bootloader simply reconfigured pins on startup. Will program compiled with new compiler work the same?
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: invalid pin configuration designator

Post by dkinzer »

wwwoholic wrote:Will program compiled with new compiler work the same?
It should. When the ZBasic startup code runs, the rx and tx pins for Com1 are configured as input and output, respectively. This overrides any pin configuration that might have been done (when allowed by the older compiler).
- Don Kinzer
Post Reply