cancel
Showing results for 
Search instead for 
Did you mean: 

problem in running program with stm32f10rbt6

mhdizgah
Associate II
Posted on June 08, 2015 at 08:25

hi every one

i wrote a c project for a stm32f103ret6 in keil & download it with jlink v8 to mcu ,it work fine.

but know i want to program same project to the stm32f103rbt6 but it dosent work correctly

i download the program by jlink & it successfully program the mcu, then i pulled down boot0(or not ) and reset mcu but mcu dosent work .

i used any other simple project but always result is same.

may i solve it with defining knew project for stm32f103rbt6?

the other thing is in defining mcu in: option for target->utility->setting->flash download

i only see high desinity 512kB flash device while stm32f103rbt6 has 128KB flash

can any one please help me ?

with best regards

#stm32f103rbt6
8 REPLIES 8
mhdizgah
Associate II
Posted on June 09, 2015 at 07:26

hi 2a

know i can run gpio sample in knew mcu(old sample for stm32f103ret6 correctly run in knew stm32f103rbt6)

but i cant launch usart samples in knew mcu yet !!!

i use cmsis for usart(sample correctly work on my stm32f103ret6 mcu )
Posted on June 10, 2015 at 18:10

uv4.7 seems to offer me STM32F10x Med-density Flash 128k

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
mhdizgah
Associate II
Posted on June 16, 2015 at 08:07

hi every body

i think problem is related with clock source

i do not any changes for that & system use internal clock source,now i want to sett that for HSE external 8 MHZ crystall

how i must do that in cmsis?

WBR 
mhdizgah
Associate II
Posted on June 16, 2015 at 16:25

hi every one

i founded how to config mcu with external crystal

but usart1 dose not work aether!!!

& even in debug mode in keil usart registers dose not changed when mcu run usart send instructions !!!

thanks for any help

WBR
Posted on June 16, 2015 at 16:49

You need to enable the clocks to the peripheral and the pins, and then configure the pins for the TX/RX functions, and the correct settings for the USART.

There should be dozens of USART examples posted here to the forum, and also as part of the Standard Peripheral Library examples.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
mhdizgah
Associate II
Posted on June 16, 2015 at 20:39

dear clive1

i do all these ,as i said i successfully initialed usart for my stm32f103ret6 header board

but know i design a new pcb for stm32f103rbt6 & want to port my last program to knew mcu.

new mcu run successfully gpio project but dose not any output for usart(not any out put on jlink debugger for usart )

Posted on June 16, 2015 at 21:05

I'm not familiar with your board or software.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
mhdizgah
Associate II
Posted on June 17, 2015 at 08:19

dear clive1

i attached these files:

1- picture of schematic of my pcb

2-pcb project in altium dxp format

3-keil project for stm32f103rbt6 in HSE 8MHZ clock source

4-keil project for stm32f103ret6 without any setting in clock source

thank for your helps

________________

Attachments :

project.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0zU&d=%2Fa%2F0X0000000bhr%2FnH200EBmtaxl.fdEyIF32XsMmlkgEeYq5tTYy83NtZc&asPdf=false