Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 4 months ago.
mbedOS pin allocation error...
I am running mbedOS with Dragonfly Nano and trying to allocate some of the multiple ADC pins brought out on the Arduino Shield interface on the UDK2. I can successfully execute AnalogIn(x) where x = A0 and A2 - but I get: ERROR CODE Pinmap Invalid The pinmap provided is invalid. ...
0) why wouldn't mbed Studio report an error during the build, (compile, link, etc.) that this pin is not available for that application?
1) Is there a means to trap a return value from a pin allocation function (eg AnalogIn(), DigitalIn() or DigitalOut()) during run-time to confirm that that specific Pin is available as requested?
2) How does one enable MBED_CONF_PLATFORM_ERROR_FILENAME_CAPTURE_ENABLED in the build configuration to obtain more information?