jupyter_micropython_kernel icon indicating copy to clipboard operation
jupyter_micropython_kernel copied to clipboard

Isn't the better way to interact with python embedded into gdb?

Open ponyatov opened this issue 6 years ago • 2 comments

Modern gdb versions have --enable--python option which included Python interpreter into the debugger for any target processor/MCU. This option looks me much better to embed gdb interface into Jython, as we'll have a portable way to interact directly with hardware using any mainstream i/o interfaces like J-Link, ST-Link,.. or any UART/USB/ETH coupled with gdb stub on the device.

Factically, we can even write the firmware model without the use of any C code, as all MCU i/o mapped to a memory address space, and we need only small interrupt handling code and a sort of generic i/o gateway written in C.

ponyatov avatar May 29 '19 10:05 ponyatov

Also, we can wrap cross-LLVM library built into Jupyter session, and play with dynamic compilation. It will be notable complex comparing to C programming, but Python can be used as a core for the interactive compiler by calling LLVM and rewriting parts of machine code on a hardware device.

ponyatov avatar May 29 '19 10:05 ponyatov

Not sure I follow this.

goatchurchprime avatar Jul 19 '19 11:07 goatchurchprime