• Welcome to Andy's Workshop Forums. Please login or sign up.
 
March 29, 2024, 08:47:10 am

News:

SMF - Just Installed!


stm32F102C6

Started by mhel, February 12, 2016, 12:20:37 pm

Previous topic - Next topic

mhel

February 12, 2016, 12:20:37 pm Last Edit: May 27, 2016, 01:27:45 pm by mhel
Hi,
How do I add support for stm32F102C6? It's not supported
out of the box. It has 32k flash 6k sram, USB.
I'm going to attempt to convert this http://www.numark.com/product/dj2go to HID
for use with http://mixxx.org/ and learn some USB in the process.
A friend gave it to me after he spilled drinks on it, and
after washing and drying it seems to be functional again.
As it is the controller works as midi device ( I think, that's why the jogwheel is kinda slow to respond ).

I tried openocd with it using the stlink from my F4discovery board:
Open On-Chip Debugger
> poll   
background polling: on
TAP: stm32f1x.cpu (enabled)
stm32f1x.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x01000000 pc: 0x080001c0 msp: 0x20000f18
> reset halt
stm32f1x.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080001c0 msp: 0x20000f18
> flash probe 0
device id = 0x10006412
STM32 flash size failed, probe inaccurate - assuming 32k flash
flash size = 32kbytes
flash 'stm32f1x' found at 0x08000000


I've already mapped out most of the pins and LEDs except for the buttons.
I probed the buttons and can't identify yet the arrangement, ( it could be 4x4 matrix ).

Diode Common 41 PB5  (16 diodes)
SW1,2,3,4 25 PB12
SW5,6,7,8 26 PB13
SW9,10,11,12 27 PB14
SW13,14,PAD1,2 28 PB15


edit:
This was scrapped, my place burned down last Feb 2016 and lost all, I'm starting again with stm32f4Discovery board.