Exception when trying to use IO29 and IO32 as input

I’m getting the exception below when I try to configure IO29 or IO32 (ADC4, ADC5) as a digital input. All the other ADCs seem to work fine as digital inputs. Looking at the LPC2387 manual it ‘should’ be able to be used as a general purpose IO.

[quote] #### Exception System.ArgumentException - 0xfd000000 (2) ####
#### Message:
#### Microsoft.SPOT.Hardware.Port::.ctor [IP: 0000] ####
#### Microsoft.SPOT.Hardware.InputPort::.ctor [IP: 0008] ####
#### Program::.cctor [IP: 003b] ####
A first chance exception of type ‘System.ArgumentException’ occurred in Microsoft.SPOT.Hardware.dll
An unhandled exception of type ‘System.ArgumentException’ occurred in Microsoft.SPOT.Hardware.dll[/quote]

Do not use glitch filter on pins that do not support interrupts.

Thanks Gus, that was a big help! It should would help if the error message was a bit more meaningful. Maybe they improved that a bit in 4.2…