[DONE] UART problems
Posted: Tue Mar 05, 2013 10:16 pm
Hi all,
i want to make use of the UART feature in order to unload the processor of actively sending byte by byte. However, it does not work as expected, only at the very first uartStartSend call data are sent, then nothings happens any more. In order to deal more in detail with using the UART device, I decided to have a closer look to the testhal UART example for the STM32F4 Discovery Board.
I am using ChibiStudio along with the os that is bundled in the download. In detail, I deleted all the files of the ARMCM4-STM32F407-DISCOVERY-MEMS Project (not the folders of the project) and copied all the files of the testhal UART for the STM32F4xx there. I modified the Makefile so that it can be compiled. The compile process works fine, there are no errors.
When I run the demo on the board, nothings happens. I don't see any output in the terminal. I placed a breakpoint in main.c @ uartStartSend(&UARTD2, 13, "Starting...\r\n") (line 140). This breakpoint is never reached. However, when placing a breakpoint at the command before, palSetPadMode(GPIOA, 3, PAL_MODE_ALTERNATE(7)), the breakpoint is reached. When I then resume execution (still, the breakpoint @line 140 is never reached) and then suspend execution, I always end up in function SVCallVector in chcore_v7m.c
Is this only a problem I encounter or does it show up at somebody's palce else as well?
Best regards,
Ralf
i want to make use of the UART feature in order to unload the processor of actively sending byte by byte. However, it does not work as expected, only at the very first uartStartSend call data are sent, then nothings happens any more. In order to deal more in detail with using the UART device, I decided to have a closer look to the testhal UART example for the STM32F4 Discovery Board.
I am using ChibiStudio along with the os that is bundled in the download. In detail, I deleted all the files of the ARMCM4-STM32F407-DISCOVERY-MEMS Project (not the folders of the project) and copied all the files of the testhal UART for the STM32F4xx there. I modified the Makefile so that it can be compiled. The compile process works fine, there are no errors.
When I run the demo on the board, nothings happens. I don't see any output in the terminal. I placed a breakpoint in main.c @ uartStartSend(&UARTD2, 13, "Starting...\r\n") (line 140). This breakpoint is never reached. However, when placing a breakpoint at the command before, palSetPadMode(GPIOA, 3, PAL_MODE_ALTERNATE(7)), the breakpoint is reached. When I then resume execution (still, the breakpoint @line 140 is never reached) and then suspend execution, I always end up in function SVCallVector in chcore_v7m.c
Is this only a problem I encounter or does it show up at somebody's palce else as well?
Best regards,
Ralf