usart2 is not gettiing configured. Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

usart2 is not gettiing configured.

Postby ep.hobbyiest » Sun Feb 19, 2017 10:14 am

Hi,
I am using stm32f103 controller. I was configuring UART2, but it is not getting configured it seems.
I changed board files as well to make sure pin configuration.
following is function stack when i stop the debug.

Code: Select all

   7 uart_lld_start_send() uart_lld.c:760 0x08001780   
   6 uartStartSend() uart.c:143 0x08001780   
   5 sendToFP() uartif.c:137 0x08001780   
   4 SendCmdFPS() uartif.c:151 0x08001780   
   3 uartStart() uart.c:98 0x0800225c   
   2 initUart() uartif.c:107 0x0800225c   
   1 main() main.c:185 0x0800225c   


and sometimes at uartp->txstate = UART_TX_ACTIVE;

Code: Select all

void uartStartSend(UARTDriver *uartp, size_t n, const void *txbuf) {

  osalDbgCheck((uartp != NULL) && (n > 0U) && (txbuf != NULL));
             
  osalSysLock();
  osalDbgAssert(uartp->state == UART_READY, "is active");
  osalDbgAssert(uartp->txstate != UART_TX_ACTIVE, "tx active");

  uart_lld_start_send(uartp, n, txbuf);
  uartp->txstate = UART_TX_ACTIVE;
  osalSysUnlock();
}


my code is on github.(first time i used github)
https://github.com/embhobbb/prj

ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: usart2 is not gettiing configured.  Topic is solved

Postby ep.hobbyiest » Sat Mar 11, 2017 4:49 am

Hi again,
Still i am facing this problem.
I wanted to read some sensors over uart and send it PC. So, i was configuring for uart2(PA2, PA3).

Somebody, please have a look.
I have attached required files.
Attachments
requiredFiles.7z
(5.08 KiB) Downloaded 144 times

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: usart2 is not gettiing configured.

Postby Giovanni » Sat Mar 11, 2017 12:45 pm

Your problem is that you are starting a transmission while already transmitting.

Giovanni

ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: usart2 is not gettiing configured.

Postby ep.hobbyiest » Sun Mar 19, 2017 1:17 pm

Always Thanks Giovanni.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 5 guests