2015-06-07 11:25 PM
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 #stm32f103rbt62015-06-08 10:26 PM
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 )2015-06-10 09:10 AM
uv4.7 seems to offer me STM32F10x Med-density Flash 128k
2015-06-15 11:07 PM
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? WBR2015-06-16 07:25 AM
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 WBR2015-06-16 07:49 AM
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.2015-06-16 11:39 AM
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 )2015-06-16 12:05 PM
I'm not familiar with your board or software.
2015-06-16 11:19 PM
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