Posted on October 28, 2015 at 13:28
Hello,
I have following problem with copying hex data.
for
(i = 0; i < 6; i++) {
printf
(
''%02x''
, packet[i]);
// copy packet to FIFO
}
Printf copy data from packet[] to FIFO...
Posted on October 21, 2015 at 20:31Hello,I using STM periph. library and I would need to use two UARTs on STM32F103. One UART for serial Modbus RTU comunication with sensors and one UART for terminal interface which will show data from sensors and p...
Posted on August 12, 2015 at 13:51
I trying send characters to the UART in simulation in Keil MDK-ARM using .ini file. This code is from uVision Help.
signal
void
serialA_Z (
void
) {
char
ch;
for
(ch =
'A'
; ch <
'Z'
; ch++) {
S0IN...
Posted on August 12, 2015 at 13:22I have made some program using STM standard peripheral libraries (which uses CMSIS?). I do not use any OS now. I read that CMSIS support RTX and Keil ARM-MDK contains RTOS. I have some elementary questions.1. What m...
Posted on April 14, 2015 at 21:51
Hello,
I have function
fifo_read(RxFifo, &rx, 1) which reads byte from FIFO buffer.
I want to use this function in two different interrupt handlers.
I have declared rx variable as fo...
Posted on October 25, 2015 at 12:56Where or how is possible to redirect fprintf to UART? For redirecting of classic printf function I have been modified fputc and fgetc function in retarget.c module. Is it possible to do this in the same way with fp...
Posted on May 14, 2015 at 17:55Hi clive,is it possible to use CRC unit in STM32F1 (which compute 32 bit CRC) to compute just 16 bit CRC for Modbus protocol? If yes, how?
Posted on May 07, 2015 at 22:42
Now, I have three .c files (main.c, fifo.c, stdio_through_usart.c). In all of them is included fifo.h.
fifo.h contains:
#ifndef FIFO_H
#define FIFO_H
#define RXSIZE 1024
#define TXSIZE 512
uint8_t Rx...