Hi @jofen: we got python to control gpio maybe it can help you. and there exist pin-map about the 40pin of stm32p1 in our wiki.