Other Parts Discussed in Thread: DLPC150
Hi Experts,
I'm trying to reroute the scan button (PQ3) to expansion connector (pin 8, PK3), following the instruction of the related thread (provided by Pedro Gelabert). However it isn't work, here is the detail:
1. It is successful to reroute the green LED, by changing if 1 ---> if 0 in common.h, line 203. Everything works fine, the outside LED blinks, scan process works fine by PC GUI:
/**
* Compiler switch to remap GREEN LED
*
* 0 = Green LED output to Expansion Connector J3 pin 6
* 1 = Green LED on Tiva Board
*/
#if 1
#define GREEN_LED_TIVA_BOARD // PF5
#undef GREEN_LED_EXP_CONN
#else
#undef GREEN_LED_TIVA_BOARD // PA5
#define GREEN_LED_EXP_CONN
#endif
2. However, when do the samething for the scan button and burn the firmware to NANO, it doesn't work. The NANO is even not able to connected to PC GUI, not to mention that no response to the external button which connected to PK3.
Because the problem is NANO is disconnected, and on another hand, the reroute for green LED works fine, I guess the problem might be in the code level. However I can't work out what is the problem by myself, could you kindly help?
I only changed the line 195 from if 1 to if 0, following the instruction in FAQ. But the NANO is disconnected, with this only one change:
-
-
- Example to remap the scan button to Expansion Connector J3 pin 8, change line 195 from
-
/*** Compiler switch to remap Scan button** 0 = Scan button input from Expansion Connector J3 pin 8* 1 = Scan button input from Scan button on Tiva Board*/#if 1#define SCAN_BUTTON_TIVA_BOARD // PQ3#undef SCAN_BUTTON_EXP_CONN#else#undef SCAN_BUTTON_TIVA_BOARD // PK3#define SCAN_BUTTON_EXP_CONN#endif
to: