Skip to content

bigw00d/mbedos2-bluepill-ps2controller-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

083d825 · May 8, 2020

History

59 Commits
Apr 27, 2020
May 8, 2020
Apr 26, 2020
May 8, 2020
May 8, 2020
Apr 8, 2020
Apr 8, 2020
Apr 8, 2020
Apr 8, 2020
Apr 30, 2020
May 8, 2020
Apr 19, 2020
May 8, 2020
Apr 19, 2020
Apr 19, 2020

Repository files navigation

mbedos2-bluepill-ps2controller-host

Bluepill host application for PS2 controller
 

Requirement

Pin connections

BluePill USB Serial Board
GND GND
A2 RX
BluePill PC
USB Micro-B USB-A
Controller BluePill Note
Data(miso) PA_6 insert 1k pull-up to 5V
CMD(mosi) PA_7
GND GND
3V3 3V3
SEL PB_6 insert 1k pull-up to 5V
CLK PA_5

Controller Connection

  1. Data
  2. CMD
  3. NC (No Connection)
  4. GND
  5. 3V3
  6. SEL
  7. CLK
  8. NC
  9. NC

Programmer Connection

Quick start

  1. Installation
  • clone this repository

    • In Source Tree, need to get submodule recursively.
  • install STM32 ST-LINK Utility(including usb device driver)

  • update ST-Link V2 firmware with ST-LINK Utility

    • ST-LINK -> Firmware update -> Device Connect
  • install mbed-cli-windows-installer

  • install python modules

C:\WorkSpace\mbedos2-bluepill-ps2controller-host> pip install -r .\tools\requirements.txt
C:\WorkSpace\mbedos2-bluepill-ps2controller-host> pip install mbed-cli==1.10.1 pyelftools jsonschema
  1. Change vendor_id & product_id aas you favorite controller(USBJoystickMouse.h)
    USBJoystickMouse(uint16_t vendor_id = 0x1234, uint16_t product_id = 0x0500, uint16_t product_release = 0x0001, int waitForConnect = true):
  1. Build & upload project
C:\WorkSpace\mbedos2-bluepill-ps2controller-host> mbed config root .
C:\WorkSpace\mbedos2-bluepill-ps2controller-host> mbed deploy
C:\WorkSpace\mbedos2-bluepill-ps2controller-host> mbed compile -m BLUEPILL_F103C8 -t GCC_ARM
C:\WorkSpace\mbedos2-bluepill-ps2controller-host> ST-LINK_CLI.exe -c SWD -P .\BUILD\BLUEPILL_F103C8\GCC_ARM\mbedos2-bluepill-ps2controller-host.bin 0x8000000 -Rst -Run -NoPrompt 
  • if clean building, mbed compile -c -m BLUEPILL_F103C8 -t GCC_ARM
  • mbed deploy for extract library files
  • I use mbed-dev submodule (need to get recursively or update in Source Tree)

settings: get recursively

 

menu: update submodule

Other Info

Related Links

Releases

No releases published

Packages

No packages published