Search found 4 matches

by mirtio
Sun Nov 09, 2014 4:10 pm
Forum: STM32 Support
Topic: STM32F103RB USART TX problem
Replies: 6
Views: 5341

Re: STM32F103RB USART TX problem

:oops:

It seems like halInit() or chSysInit() resets all ports to the default settings in board.h. So my pad configuration got overwritten. After changing the order of the function calls it works correctly...

I can't believe it took me almost 2 days to find this - I should get a debugger hardware...
by mirtio
Sun Nov 09, 2014 4:02 pm
Forum: STM32 Support
Topic: STM32F103RB USART TX problem
Replies: 6
Views: 5341

Re: STM32F103RB USART TX problem

Using the serial driver also does not work. What I tried was the bare minimum program


#include "ch.h"
#include "hal.h"

/*
* Green LED blinker thread, times are in milliseconds.
*/
static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {

(void)arg ...
by mirtio
Sun Nov 09, 2014 3:01 pm
Forum: STM32 Support
Topic: STM32F103RB USART TX problem
Replies: 6
Views: 5341

Re: STM32F103RB USART TX problem

Hi Giovanni

thanks for the hint. The usage of SDU1 was just a quick hack to check if serial RX is working on USART2. It is however not the source of the problem.
I just removed the Maple bootloader and flashed the "bare" program via the STM32's hard-wired bootloader through USART1 (so the hardware ...
by mirtio
Sun Nov 09, 2014 1:43 pm
Forum: STM32 Support
Topic: STM32F103RB USART TX problem
Replies: 6
Views: 5341

STM32F103RB USART TX problem

Hi

I'm using a STM32F103RB on an Olimexino STM32 board from Olimex and try to get USART TX working with no success so far. Some more details about my setup:


⋅ I use the Maple bootloader, so I changed the linkerscripts and VTOR accordingly and use the dfu-util to flash my software ...