Git Product home page Git Product logo

remora-rp2040-w5500's People

Contributors

andrewmarles avatar scottalford75 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

remora-rp2040-w5500's Issues

raw string literal for default config

seems like the following is more usable than just the hex array for the defaultConfig

//const char defaultConfig[] = DEFAULT_CONFIG;
const char* defaultConfig = R"( 
{
  "Board": "PICO-JS",
  "Modules": [
    {
      "Thread": "Servo",
      "Type": "Blink",
      "Comment": "Blinky",
      "Pin": "GP25",
      "Frequency": 2
    }
  ]
}
)";

tests

Hey Scott,

I was going to mess around with this code, but see if I can get it running on an esp32.

Before I really dug in i was thinking it would be nice to write some tests. Have you thought about testing much?

What I as thinking was trying to abstract as much as possible so the basic mechanics could be built/tested native x86 with mocks for the MCU specific code. Since there are so many versions of remora I'm not quite sure what a good reusable framework to do this would be but I think it would be nice to have the communication protocols testable and consistent.

so something like -> mock transport -> base_thread -> mock timers/stepgen

questions

Hey Scott,

Got around to poking at this again this weekend but a few problems.

  1. using the current main I can't ping the pico, tried about everything. Have you tried this out with a rpi4 by chance? I've tried 2 different w5500 breakouts, i'm not using the pico hat. I've tested with the pico-examples code and it works and can be pinged. you code doesn't really look anything like that example so i'm a bit lost as to why they are different.
  2. using commit b61dc51 i can ping the pico but it just does this and locks up
Make Digital Input at pin GP13

Creating a std module
Creating Pin @
  pin = GP13
ptrData = 0

## Entering START state

Starting the BASE thread
Registering interrupt for interrupt number = 0
    setting up timer on PWM Slice 0
    desired frequency = 40000, div = 1, wrap = 3124
    actual frequency  = 40000.0000
        timer started

Starting the SERVO thread
Registering interrupt for interrupt number = 1
    setting up timer on PWM Slice 1
    desired frequency = 200, div = 16, wrap = 39061
    actual frequency  = 200.0000
        timer started

## Entering IDLE state

## Entering RUNNING state

## Entering RESET state
   Resetting rxBuffer

## Entering IDLE state

then it stops responding to pings and I have to reset it.

  1. I had to monkey with the uart setttings and I can only seem to get my FTDI to read GPIO28, nothing over USB and can't connect to that serial port. wondering how you are debugging.

  2. which hal module goes with this main version? I'm trying the remora-eth but there is also remora-nv and likely many versions. Maybe this deserves it's own repo with tags to track what it is tested with/designed to work with.

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.