Code Monkey home page Code Monkey logo

optiboot_over_uart's Introduction

Optiboot_Over_UART One Paragraph of project description goes here Getting Started This sketch will allow programming of an Atmega 328 or similar that has optiboot installed, over serial UART. Currently set up for Teensy 3.6 to proigram a 328AU over Serial port 2 (Teensy 3.6 pins 9 and 10) connected to the Serial UART on the 328 directly. Prerequisites Teensy 3.6 or any other arduino compatible board with UART.

ATMEGA 328 - ideally running as 328 on breadboard internal 8MHz clock. Optboot should be installed on this.

Installing Connect the Serial2 port of the Teensy to the UART on the 328. Programmer – Teensy 3.6 Target – 328 AU with Optiboot 10 –TX2 PD0 – Pin 30 – Arduino Pin 0 RX 09 – RX2 PD1 – Pin 31 – Arduino Pin 0 TX

Running the tests None yet. Deployment To be deployed as a live updater as part of firmware for in situ modules. Authors To be added Acknowledgments

• Limor Fried / Ladyada / Adafruit
• Optiloader  -  Bill Westfield ("WestfW")

optiboot_over_uart's People

Contributors

russcoty avatar

Watchers

Adrian McEwen avatar James Cloos avatar Alex Lennon avatar Ben Dickins avatar  avatar

optiboot_over_uart's Issues

What is this line doing?

@amcewen just wondering if this section of the getResponse funtion is correct? line 258.

I had to add the else section as Teensyduino IDE seemed to be somewhat picky about that and a few other things.

if ((millis() - reponsestart) < timeout) //testing this funciton ...debug not showing which is strnage { // We've got some data //return Serial2.readBytes(buffer, bufferLen); DEBUGLN("getResponse function retuned a value"); } else { return -1; DEBUGLN("getResponse function retuned a -1"); }

Optiboot behaviour

Any thoughts on this would be appreaciated @amcewen @ajlennon .

The 328 modules seem to not be entering program mode.. most annoyingly.

I scoped the serial output and they are actually jumping straight into spitting out serial...no 2 second delay on power up or after reset is released as you might expecr with optiboot.

Now this suggests to me that maybe there is a fuse set wrong and the program is just starting without the bootloader being involved at all perhaps.

This raises a few issues I suppose as it means that at least the first firmware fix would have to be done over ISP 6 pin as I had considered.

@amcewen do you think it is worth me trying to add the SPI funcitons into this sketch so it can upload a bootloader? Or a better plan to use the Adafruit one? I kind of have that working on the teensy by making a few modifications, still working out details to get page size runing on that approach.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.