I searched the repo with "LQFP48" to find similar boards and some clues. I found that Olmexino and Maple mini are the only boards with this package and they both have a special get_pins function. Maybe this solves my problem?
def get_pins():
pins = pinutils.scan_pin_file([], 'stm32f103xb.csv', 6, 10, 11)
# Olimexino/Maple pins have stupid names
pinmapping = {
'D0' :'PA3',
'D1' :'PA2',
'D2' :'PA0',
'D3' :'PA1',
'D4' :'PB5',
'D5' :'PB6',
'D6' :'PA8',
'D7' :'PA9',
'D8' :'PA10',
'D9' :'PB7',
'D10':'PA4',
'D11':'PA7',
'D12':'PA6',
'D13':'PA5',
'D14':'PB8',
'D15':'PC0', # shared with A0-A15
'D16':'PC1',
'D17':'PC2',
'D18':'PC3',
'D19':'PC4',
'D20':'PC5',
'D21':'PC13',
'D22':'PC14',
'D23':'PC15',
'D24':'PB9',
'D25':'PD2',
'D26':'PC10',
'D27':'PB0',
'D28':'PB1',
'D29':'PB10',
'D30':'PB11',
'D31':'PB12',
'D32':'PB13',
'D33':'PB14',
'D34':'PB15',
'D35':'PC6',
'D36':'PC7',
'D37':'PC8',
'D38':'PC9', # for button
'D39':'PC12', # for USB disc
'D40':'PA11', # for USB dm
'D41':'PA12', # for USB dp
};
newpins = []
for newname in pinmapping:
# print newname
pin = pinutils.findpin(pins, pinmapping[newname], True)
pin["name"] = "P"+newname
pin["sortingname"] = newname[0] + newname[1:].rjust(2,'0')
newpins.append(pin)
# Because 'pinmapping' is NOT stored in order!!!
newpins = sorted(newpins, key=lambda pin: pin["sortingname"])
# print(json.dumps(newpins, sort_keys=True, indent=2))
return newpins
I pasted it to get__pins function in my file, but now I get this error on build. How can i get more info on what happened?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I searched the repo with "LQFP48" to find similar boards and some clues. I found that
Olmexino
andMaple mini
are the only boards with this package and they both have a specialget_pins
function. Maybe this solves my problem?I pasted it to
get__pins
function in my file, but now I get this error on build. How can i get more info on what happened?