Skip to content

Commit

Permalink
Version 0.8.0 (#13)
Browse files Browse the repository at this point in the history
* Initial commit diagnostics cartridge and fixing bug allowing for more diverse sd-cards.

* Removing map file

* Fix bug in reporting partition capactities

* Finding file and folders in diag cartridge

* Polishing output

* Storing writetest

* Moving folder

* Adding explanation to test

* Creating BOM/CPL for assembly service

* ReOptimizing instructions

* End of day commit

* Timeout and data errors

* Succesfully creating new file

* Polishing FAT32 routines

* Further polishing code

* Adding file pointer creation

* Writing to file

* Writing data to SD card

* Initial commit cassette dump cartridge

* Dumping cassette to SD-card

* Further polishing code for cassette dump

* Refactoring repo

* Polishing cassette dump utility

* Fixing bug reading invalid folder

* Adding casdump to GA

* Expanding README.md

* Adding csv files

* Adjusting image
  • Loading branch information
ifilot authored Jul 31, 2024
1 parent 6c5894b commit 22ce9f7
Show file tree
Hide file tree
Showing 58 changed files with 3,243 additions and 1,596 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,49 @@ jobs:
name: MONCRC16.PRG
path: MONCRC16.PRG

#-------------------------------------------------------------------------------

build-prg-casdump:
runs-on: ubuntu-latest
container:
image: z88dk/z88dk

steps:
- uses: actions/checkout@v3
- name: Build CRC16 PRG
run: |
cd programs/casdump
sed -i 's/node[[:digit:]]\+/node2000000/g' Makefile
make cassettedump-prg
ls -alh
- name: Upload CASDUMP.BIN
uses: actions/upload-artifact@v4
with:
name: CASDUMP-UNSIGNED.PRG
path: programs/casdump/CASDUMP.PRG

sign-prg-casdump:
runs-on: ubuntu-latest
needs: [build-prg-casdump]
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt install -y python3
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: CASDUMP-UNSIGNED.PRG
path: ./
- name: Sign binary
run: |
python3 scripts/signprg.py CASDUMP.PRG
- name: Upload CASDUMP.PRG
uses: actions/upload-artifact@v4
with:
name: CASDUMP.PRG
path: CASDUMP.PRG

#-------------------------------------------------------------------------------

packaging-programs:
Expand Down Expand Up @@ -752,4 +795,26 @@ jobs:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: PROGRAMS.zip
asset_name: PROGRAMS.zip
asset_content_type: application/octet-stream

deploy-casdump:
runs-on: ubuntu-latest
needs: [sign-prg-casdump, create-release]
permissions: write-all
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download CASDUMP.PRG
uses: actions/download-artifact@v4
with:
name: CASDUMP.PRG
path: ./
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: CASDUMP.PRG
asset_name: CASDUMP.PRG
asset_content_type: application/octet-stream
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ from said SD card and load them into memory.
* [PROGRAMS.ZIP](https://github.com/ifilot/p2000t-sdcard/releases/latest/download/PROGRAMS.ZIP)
* [MULTIROM-4x16k-0x40.BIN](https://github.com/ifilot/p2000t-sdcard/releases/latest/download/MULTIROM-4x16k-0x40.BIN) (W27C512 / 64 KiB)
* [MULTIROM-32x16k-0x40.BIN](https://github.com/ifilot/p2000t-sdcard/releases/latest/download/MULTIROM-32x16k-0x40.BIN) (SST39SF040 / 512 KiB)
* [CASDUMP.PRG](https://github.com/ifilot/p2000t-sdcard/releases/latest/download/CASDUMP.BIN) (only works for 0x40 version)

### 0x60 version

Expand Down Expand Up @@ -116,6 +117,18 @@ cd src
* [Launcher and Flasher programs](src/)
* [Custom programs](programs/)

## PCB assembly service

The folder [pcb/port2-sdcard-interface](pcb/port2-sdcard-interface) contains
`port2-sdcard-interface_bom_bot.csv` and `port2-sdcard-interface-bottom-pos.csv`
which can be used for the JLCPCB assembly service. An example of the part
placement can be found in the image below. At the time of writing, two
components were unavailable, being the memory chip `62128` and a 0 ohm resistor,
which is the reason that these two parts are missing. Note that all through-hole
parts, e.g. LEDs, oscillator and PLCC32 socket, have to be hand-soldered in.

![img PCB assembly](img/sdcard-pcb-part-placement.png)

## License

![License facts](img/oshw_facts.svg)
Expand Down
Binary file added img/sdcard-pcb-part-placement.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions pcb/port2-sdcard-interface/port2-sdcard-interface-bottom-pos.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Designator,MidX,MidY,Layer,Rotation
C1,76.435,-93.9875,bottom,90
C2,27.0105,-68.82,bottom,0
C3,49.3625,-19.925,bottom,180
C4,35.795,-63.5075,bottom,90
C5,35.795,-39.3775,bottom,90
C6,76.435,-83.8275,bottom,90
C7,34.525,-51.6965,bottom,90
C8,34.525,-74.9375,bottom,90
C9,51.035,-39.61,bottom,90
C10,51.035,-49.5375,bottom,90
C11,34.525,-91.4475,bottom,90
C12,76.435,-53.3475,bottom,90
C13,76.435,-63.5075,bottom,90
C14,26.9265,-52.945,bottom,0
C15,62.6975,-74.535,bottom,0
C16,49.765,-64.0155,bottom,90
C17,76.435,-73.5325,bottom,90
C18,95.7175,-58.66,bottom,0
C19,95.7175,-73.9,bottom,0
C20,38.5675,-56.755,bottom,180
C21,43.6475,-46.595,bottom,0
C22,77.959,-43.5255,bottom,90
C23,68.905,-30.73,bottom,180
J1,98.655,-27.180008,bottom,-90
J2,61.595,-112.776,bottom,0
R1,31.731,-35.562,bottom,-90
R2,29.572,-35.562,bottom,-90
R3,34.16,-56.755,bottom,0
R4,66.259,-52.564,bottom,0
R5,48.225,-46.595,bottom,0
R6,27.413,-35.562,bottom,90
R7,25.254,-35.562,bottom,90
R8,87.155,-21.73,bottom,90
R9,87.405,-30.73,bottom,90
R10,85.155,-30.73,bottom,-90
R11,82.905,-30.73,bottom,90
U1,61.83,-63.54,bottom,-90
U2,26.905,-75.17,bottom,180
U3,84.055,-43.612,bottom,-90
U4,42.145,-63.675,bottom,-90
U5,42.78,-39.61,bottom,-90
U6,83.42,-84.125,bottom,-90
U7,41.51,-51.74,bottom,-90
U8,42.78,-75.6,bottom,-90
U9,57.385,-39.675,bottom,-90
U10,57.385,-49.705,bottom,-90
U11,42.78,-91.68,bottom,-90
U12,83.42,-53.645,bottom,-90
U13,83.42,-63.805,bottom,-90
U14,26.84,-59.295,bottom,180
U15,61.195,-81.52,bottom,180
U16,68.655,-24.23,bottom,180
U17,83.42,-73.865,bottom,-90
U18,95.55,-65.01,bottom,180
U19,95.485,-80.25,bottom,180
U20,83.42,-94.155,bottom,-90
U21,81.0425,-24.43,bottom,180
X1,57.385,-31.99,bottom,180
28 changes: 23 additions & 5 deletions pcb/port2-sdcard-interface/port2-sdcard-interface.kicad_pro
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@
"idf": "",
"netlist": "",
"plot": "GERBERS/",
"pos_files": "",
"pos_files": "./",
"specctra_dsn": "port2-sdcard-interface.dsn",
"step": "port2-sdcard-interface.step",
"svg": "",
Expand Down Expand Up @@ -545,17 +545,35 @@
"show": true
},
{
"group_by": true,
"group_by": false,
"label": "DNP",
"name": "${DNP}",
"show": false
},
{
"group_by": false,
"label": "#",
"name": "${ITEM_NUMBER}",
"show": false
},
{
"group_by": false,
"label": "LCSC Part #",
"name": "LCSC Part #",
"show": true
},
{
"group_by": false,
"label": "Description",
"name": "Description",
"show": false
}
],
"filter_string": "",
"group_symbols": true,
"name": "Grouped By Value",
"sort_asc": true,
"sort_field": "Reference"
"name": "",
"sort_asc": false,
"sort_field": "LCSC Part #"
},
"connection_grid_size": 50.0,
"drawing": {
Expand Down
Loading

0 comments on commit 22ce9f7

Please sign in to comment.