Giter Site home page Giter Site logo

asps_daq_basic's Introduction

ASPS-DAQ firmware.

Used libraries are under libraries/. You'll probably need to move them to the libraries directory for your Energia install OR you can just create a symbolic link to the directory. I seriously recommend creating a symbolic link. On Windows this can be done with the "mklink" command in the command prompt.

Note that this has submodules, so you need to clone recursively. git clone --recursive https://github.com/ara-daq-hw/asps_daq_basic.git

When the uC is unprogrammed, it's in bootloader mode, so you can just use LM Flash Programmer using the serial connection and it will program OK. After it's programmed, give it a MAC address (don't screw up! It's a one-time program, for the most part). After that it can connect to the network, and the Ethernet bootloader will work.

If you screw up the Ethernet bootloader somehow, recovery is still possible using the GPIOs of the CP2104, however, it's not fun.

  1. Get the AN223 software here: http://www.silabs.com/documents/public/example-code/AN223SW.zip
  2. Open up CP210x Port Read/Write Example
  3. Select the serial port for the Tiva (make sure it's not open elsewhere!).
  4. Check off "Pins to Change" for GPIO 3. GPIO 3 State (in the Write Latch section) should be 0.
  5. Click "Write Latch." GPIO 3 State (in the Read Latch section) should now be 0.
  6. Uncheck GPIO3, check GPIO2. GPIO 2 State (in the Write Latch section) should be 0.
  7. Click "Write Latch." GPIO 2 State (in the Read Latch section) should now be 0.
  8. Click on the 0 in GPIO 2 State (in the Write Latch section). It should change to 1.
  9. Click on "Write Latch." GPIO 2 State (in the Read Latch section) should now be 1.
  10. Click on the 0 in GPIO 3 State (in the Write Latch section). It should change to 1.
  11. Uncheck GPIO 2. Check GPIO 3.
  12. Click on "Write Latch." GPIO 3 State (in the Read Latch section) should now be 1.
  13. Close CP210x Port Read/Write Example.

The Tiva is now in bootloader mode on the serial port, and can be programmed.

asps_daq_basic's People

Contributors

barawn avatar clark2668 avatar

Watchers

James Cloos avatar  avatar

asps_daq_basic's Issues

Setting a fixed IP is screwed up

showip()'s handling of the fixed IP setting is wrong. First, it only works if there are less than 4 arguments, which is totally wrong. It should only work if there are exactly 4 arguments, and throw an error otherwise. In addition, the IP octets are entered backwards.

Switch to a service-based model

Right now all of the Ethernet interfaces (serial servers, Web server) turn on immediately, and there's no way to stop them. This isn't ideal in situations where you have code that you're not sure is going to work: you'd like to make sure that you can change the code, try activating it, and if it doesn't work, that you can just upload new code with the Ethernet bootloader without having to use the forced Serial bootloader.

So the plan is to move to a service-based model, where the 'default' services are specified by a bitfield from the EEPROM. Then, when testing a new release, you can disable all of the running services except the Ethernet bootloader (and the web server if you don't have serial access), upload the new code, and then try enabling the new code to see if it breaks horribly. Then if it does, you can just reboot it (or power cycle it in the worst case) and upload new code using the Ethernet bootloader. If it doesn't, you can reactivate the default service state.

Telnet IAC escaping is all screwed up in serial server

The Telnet IAC handling in SerialServer is screwed up: when it receives a 0xFF, it outputs the 0xFF instead of just switching to the IAC state. Then if it receives another 0xFF, which actually should make it output a single 0xFF and drop back to the idle state, it actually outputs another 0xFF and stays in the IAC state.

Support even parity on BSL serial ports

BSL serial ports need to talk with even parity (8E1, not 8N1), but normal comms happen with no parity. Need to be able to switch between even and no parity. This isn't supported with the normal Energia/Arduino HardwareSerial class, so we'll need to modify it.

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.