Giter Site home page Giter Site logo

stm32f102c8's Introduction

Explored board from APC Pro 900.

MCU: stm32f102c8t6 LQFP48 (flash 64Kb)

EEprom: Serial Eeprom 93C46 1Kb 

Board have solder pins for SWD/JTAG (J20)

J20 Pinout

          J20	
      º º º º º º -> pin1
      º º º º º º -> pin2

pin1  3,3v        (VBAT,VDD_1,2,3,VDDA, MCU_Pin 1,9,24,36,48 )
pin2  swdio/jtms  (PA13, MCU_pin 34)
pin3  NC.         (I use for Boot1 pin)
pin4  swclk/jtck  (PA14, MCU_pin 37)
pin5  NC.         (I use for 3,3v pullup Boot0)
pin6  swo/jtdo    (PB3, MCU_pin 39)
pin7  NC.         (I use for Boot0 pin)
pin8  NC.
pin9  GND         (VSS_1,2,3,VSSA, MCU_pin 8,23,35,47) 
pin10 NRST        (NRST, MCU_pin 7)

Added 10Kb resistor to 3,3v(VDD,J20_pin 1) for pullup Boot0,Boot1.(See Picture Boot0_Boot1_pins.jpg)

Boot option for this MCU:
Boot0 = 0, Boot1 = x Default, boot form MCU flash(64Kb).Boot1 can be 0 or 1.
Boot0 = 1, Boot1 = 0, Boot from System Memory.
Boot0 = 1, Boot1 = 1, Boot from SRAM.

On this board Boot0 and Boot1 is 0 default.

Tested on Rpi 3b+, APC board powered from Rpi 3b+(Pin 1).
Dangerous DO NOT connect 5v because MCU burned!!!!I do :(.   
Pin on Rpi 3b+
Rpi_3b+             APC_Board
 pin 1  (3,3v)     ->    J20 pin 1
 pin 6  (GND)      ->    J20 pin 9
 pin 12 (GPIO18)   ->    J20 pin 10 (NRST no need)
 pin 18 (GPIO24)   ->    J20 pin 2  (SWDIO)
 pin 22 (GPIO25)   ->    J20 pin 4  (SWCLK)


Soldering on J20   (See Picture Boot0_Boot1_pins.jpg)
pin1(3,3v) -> pin5 for pullup
pin3 -> 10K_resistor -> Boot1.
pin7 -> 10K_resistor -> Boot0.


#Rpi Install Openocd

sudo apt-get install git autoconf libtool make pkg-config libusb-1.0-0 libusb-1.0-0-dev
sudo apt install libgpiod-dev

git clone https://github.com/openocd-org/openocd.git

cd openocd/

./bootstrap

./configure --enable-sysfsgpio --enable-bcm2835gpio

make

make install

cd Openocd

openocd -f rpi-102_C8T6-swd.cfg -f target/stm32f1x.cfg




stm32f102c8's People

Contributors

raxone avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.