UARTx_Init_Advanced not working for me

General discussion on mikroPascal PRO for PIC32.
Post Reply
Author
Message
Rotary_Ed
Posts: 756
Joined: 26 Dec 2004 23:10
Location: Matthews, NC, USA
Contact:

UARTx_Init_Advanced not working for me

#1 Post by Rotary_Ed » 31 Oct 2018 15:23

I am using a , using the PIC32MX795F512L chip on a custom board and I have been using the UARTX_initi_Advance function to initialize my UART modules since 2015 with no problem. However with mikroPascal PRO for PIC32 version 4.0, the Advance initialization routine no longer works for me.

UART2_Init_Advanced(9600,24000 ,_UART_LOW_SPEED, _UART_8BIT_NOPARITY, _UART_ONE_STOPBIT); // 11 July 2015
UART_Set_Active(@UART2_Read, @UART2_Write, @UART2_Data_Ready, @UART2_Tx_Idle);

If I use the simpler UART2_Init(9600) initialization, the module seems to work fine. Using the Advanced Initialization routine, there is no compiler error generated, the code compiles with the Advanced initialization version, but there is no communication over the UART channel.

I have a second UART5 module with the same problem.

Has anyone else encountered this problem?

Thanks
Rotary_Ed
Matthews, NC USA
Rv-6A N494BW Rotary Powered

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: UARTx_Init_Advanced not working for me

#2 Post by filip » 06 Nov 2018 11:13

Hi,

I will try this and let you know.

Regards,
Filip.

Rotary_Ed
Posts: 756
Joined: 26 Dec 2004 23:10
Location: Matthews, NC, USA
Contact:

Re: UARTx_Init_Advanced not working for me

#3 Post by Rotary_Ed » 06 Nov 2018 14:27

Thanks, Filip

I have tried to figure out why the Advanced Initialization worked with all previous versions of the compiler, but not now (at least for me). Fortunately, the basic initialization procedure does work.
Rotary_Ed
Matthews, NC USA
Rv-6A N494BW Rotary Powered

Post Reply

Return to “mikroPascal PRO for PIC32 General”