Skip to content
Snippets Groups Projects
  1. Apr 17, 2022
  2. Apr 16, 2022
    • Byron Lathi's avatar
      Execute code read from the SD card · 2786ec09
      Byron Lathi authored
      This will read the data from the sd card, copy it to the originally
      linked address (no relocation), then execute it.
      
      I am lazy and wrote it in C using weird function pointer casting but
      this would probably be more efficient if it were to be written in
      assembly instead.
      
      The test program simply returns 'A', but that is enough to prove that it
      is actually running.
      2786ec09
    • Byron Lathi's avatar
      Remove compilation output files · 585faa02
      Byron Lathi authored
      These were used to help understand the o65 file format, but are not
      needed and shouldn't have been commited anyway.
      585faa02
    • Byron Lathi's avatar
      Do not track o65 files · 4be5366a
      Byron Lathi authored
      These are object files still, which means we do not want to track them.
      4be5366a
    • Byron Lathi's avatar
      Use the system cl65, don't use verbose mode · 7e7bdd3b
      Byron Lathi authored
      I had used these to try and help figure out the structure of the o65
      file but this is not needed anymore
      7e7bdd3b
    • Byron Lathi's avatar
      More o65 parsing · 016e9ede
      Byron Lathi authored
      Prints out the options now too.
      016e9ede
    • Byron Lathi's avatar
      Rename o65_opt to o65_opt_t · e30768d4
      Byron Lathi authored
      e30768d4
    • Byron Lathi's avatar
      Add parsing of o65 files · f15b7876
      Byron Lathi authored
      Prints out information about the first file found on the SD card, if it
      is an o65 file.
      f15b7876
    • Byron Lathi's avatar
      Add basic test program · 59da06c5
      Byron Lathi authored
      This adds a test program which can be loaded and executed by the host.
      It simply returns a value in the `a` register.
      
      The linker script is modified so that it will output an o65 file, and
      the memory sgments are changed as well. There is no STARTUP segment
      defined, so it uses the default `none` crt0, which sets up the stack
      and does initialization and deconstruction.
      
      The Makefile is modified to not turn the output into an intel hex file,
      and instead keep it as the o65 file.
      59da06c5
    • Byron Lathi's avatar
      Add definitions and structures for o65 files · 0cecf166
      Byron Lathi authored
      These can be used to read and parse o65 files.
      0cecf166
    • Byron Lathi's avatar
      Remove unused char c · 2c6f3339
      Byron Lathi authored
      2c6f3339
  3. Apr 14, 2022
  4. Apr 11, 2022
  5. Apr 10, 2022
  6. Apr 09, 2022
  7. Apr 08, 2022
    • Byron Lathi's avatar
      add testbench for SD command tx · 38566f7b
      Byron Lathi authored
      Sends a few commands which we know the proper checksum for and makes
      sure that the bits on the output are correct.
      38566f7b
    • Byron Lathi's avatar
      Add SD Card controller for sending commands · f89ecfa0
      Byron Lathi authored
      Adds the start of the SD card controller which is capable of sending
      commands using the SD protocol.
      
      It is accessed by writing the arguments first and triggered by writing
      the command number.
      f89ecfa0
    • Byron Lathi's avatar
      Have valid crc when valid signal is present · 552fe8b6
      Byron Lathi authored
      Previously the crc would be reset after 1 clock cycle while the valid
      signal was still high. Now the data is preserved in the valid state
      until the load signal is asserted.
      552fe8b6
    • Byron Lathi's avatar
      Add tests for crc7 · 3e691094
      Byron Lathi authored
      These are just some values that I found from an example program. This
      does not test every possible value.
      3e691094
    • Byron Lathi's avatar
      Add crc7 module · e828df08
      Byron Lathi authored
      This module takes in a 40 bit word and generates the 7 bit crc7
      appropriate for an SD card.
      
      It does not use any fancy parallel algorithm, it does it 1 bit at a
      time.
      e828df08
Loading