Bad news, after recompiling with Rev.B board files, it still does not work.
Something sounds suspicious to me :
Code: Select all
/*
* Port D setup:
* PD0 - Input with PU (unconnected).
* PD1 - Input with PU (unconnected).
* PD2 - Input with PU (unconnected).
* PD3 - Input with PU (unconnected).
* PD4 - Input with PU (unconnected).
* PD5 - Alternate output (USART2 TX, UEXT).
* PD6 - Input with PU (USART2 RX, UEXT).
* PD7 - Push Pull output (USB_VBUSON).
* PD8 - Alternate output (USART2 TX, remapped).
* PD9 - Normal input (USART2 RX, remapped).
* PD10 - Input with PU (unconnected).
* PD11 - Normal input (USART2 CTS, remapped).
* PD12 - Alternate output (USART2 RTS, remapped).
* PD13 - Input with PU (unconnected).
* PD14 - Input with PU (unconnected).
* PD15 - Input with PU (unconnected).
*/
#define VAL_GPIODCRL 0x38B88888 /* PD7...PD0 */
#define VAL_GPIODCRH 0x888B484B /* PD15...PD8 */
#define VAL_GPIODODR 0xFFFFFFFF
In the comments, it says that USART2 is also mapped to PD8 and PD9... It should be USART3, no ?
I know it is only a comment, but maybe there is also something wrong in the define bellow.
Actually, I still don't understand how this mapping declarations work... I hope I'll get used to it soon.
Hopefully someone (maybe mabl) can help me go further. Thanks.
Fred