| 1 | This directory contains the Optiboot small bootloader for AVR |
| 2 | microcontrollers, enhanced to include the KuttyPy AVR Training |
| 3 | utility developed by jithin B.P @ [CSpark Research Pvt Ltd](https://csparkresearch.in). |
| 4 | |
| 5 | What is KuttyPy? |
| 6 | --- |
| 7 | |
| 8 | An Open-Hardware microcontroller board with a python GUI companion |
| 9 | that allows real-time manipulation and reading of registers |
| 10 | in the processor. It allows a glimpse into the brain of |
| 11 | the processor (m32), if you may . |
| 12 | |
| 13 | The hardware is designed by the [ExpEYES Project](http://expeyes.in/kuttypy/index.html). |
| 14 | |
| 15 | The python-gui is authored by jithin B.P ([email protected]), |
| 16 | and is hosted on [github](https://github.com/csparkresearch/kuttypy-gui) by <a href="https://csparkresearch.in" target="_blank">CSpark Research</a> |
| 17 | |
| 18 | KuttyPy Specific Enhancements: |
| 19 | --- |
| 20 | |
| 21 | The bootloader UART listener has been modified to listen |
| 22 | to the KUTTYPY_VERSION,KUTTYPY_READ,KUTTYPY_WRITE commands, |
| 23 | and if any of these are detected, it jumps into a loop |
| 24 | which can be exited by a reset. |
| 25 | |
| 26 | Glitches exist, and need to be worked out. Until then, |
| 27 | kuttypy.hex is uploaded into the application section, |
| 28 | and a simple stk500v1 bootloader is provided. |
| 29 | |
| 30 | ------------------------------------------------------------ |
| 31 | Building and uploading bootloader for KuttyPy. Tested on Ubuntu 18.04 |
| 32 | with avr-gcc . |
| 33 | |
| 34 | ```Bash |
| 35 | $ make atmega32 |
| 36 | $ avrdude -B10 -c <your programmer : usbasp/arduino/parallel> -patmega32 -U flash:w:optiboot_atmega32.hex |
| 37 | ``` |
| 38 | |
| 39 | The KuttyPy-GUI can now communicate with bootloader. |
| 40 | Please keep the RST jumper connected in order to enable the |
| 41 | RTS based automatic software reset by the GUI trying to enter the loop. |
| 42 | |
| 43 | To upload hex files compiled with avr-gcc, |
| 44 | ``` |
| 45 | $ avrdude -b 38400 -P <serial port> -pm32 -c arduino -U flash:w:yourhex.hex |
| 46 | ``` |
| 47 | |
| 48 | The kuttypy GUI will soon have features for uploading hex files without |
| 49 | avrdude, and skipping the execution vector directly to the application code . |
| 50 | |
| 51 | ----------------- |
| 52 | Optiboot is more fully described here: http://code.google.com/p/optiboot/ |
| 53 | and is the work of Peter Knight (aka Cathedrow), building on work of Jason P |
| 54 | Kyle, Spiff, and Ladyada. Arduino-specific modification are by Bill |
| 55 | Westfield (aka WestfW) |
| 56 | |
| 57 | |
| 58 | ------------------------------------------------------------ |
| 59 |