Closed youenchene closed 1 year ago
Hi, voltage levels are way too high. Check your power supply, try a different one. Maybe best is to take +5V from the Amigas floppy drive port pin 12.
Take the latest spisd.device from link below, also you can try with the main.hex from there but it doesn't have the activity LED blinking but should work.
https://github.com/niklasekstrom/amiga-par-to-spi-adapter/releases
Also don't forget to remove the jumper after having flashed the firmware to the ATmega328P.
Update on voltage : I change the battery fo my voltmeter. It's the right voltage now.
Ok, I did the test 3 times to be sure :
Hi, probably it has to do with your compilation then because the code is identical to Niklas' repo except for driving the LED:
You can try and build using the script and the avr-gcc from Arduino IDE, like I did:
https://github.com/jbilander/SDBox-v2/blob/main/images/SDBox-v2_flashing_Nano_pic4.jpg
Why do you not just share the compiled .hex in a release?
(And also for testing purpose, would be better to have known working .hex)
Le dim. 21 mai 2023 à 11:33, Jorgen Bilander @.***> a écrit :
Hi, probably it has to do with your compilation then because the code is identical to Niklas' repo except for driving the LED:
You can try and build using the script and the avrdude from Arduino IDE, like I did:
https://github.com/jbilander/SDBox-v2/blob/main/images/SDBox-v2_flashing_Nano_pic4.jpg
— Reply to this email directly, view it on GitHub https://github.com/jbilander/SDBox-Mini/issues/4#issuecomment-1556130854, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMIMTFOJOQE5KEINDZ52Q3XHHOORANCNFSM6AAAAAAYIS3CKY . You are receiving this because you authored the thread.Message ID: @.***>
Because in order to flash the device you need the avr-toolchain (with avrdude) installed anyway and it's just one script to run to generate the file before flashing, pretty simple. And people expect everything to be served on a silver platter, well this is a DIY-project.
Well I am a software developer too (more high level language).
I know it’s DIY.
I am just a « little » stubborn when there is a bug.
Here it can be :
If I can eliminate on the hypothesis (compilation tool chain) it can be great!
Le dim. 21 mai 2023 à 13:20, Jorgen Bilander @.***> a écrit :
Because in order to flash the device you need the avr-toolchain (with avrdude) installed anyway and it's just one script to run to generate the file before flashing, pretty simple. And people expect everything to be served on a silver platter, well this is a DIY-project.
— Reply to this email directly, view it on GitHub https://github.com/jbilander/SDBox-Mini/issues/4#issuecomment-1556153070, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMIMTFYPE4DJEB33XXUIGDXHH3AZANCNFSM6AAAAAAYIS3CKY . You are receiving this because you authored the thread.Message ID: @.***>
I tried building with the latest and it generated the same hex (attached)
Back,
This main.hex is working but no blinking.
We agree that the + of the LED on the bottom on the led hole? (parallel port on the top).
Le dim. 21 mai 2023 à 14:09, Jorgen Bilander @.***> a écrit :
I tried building with the latest and it generated the same hex (attached)
[image: build] https://user-images.githubusercontent.com/1673918/239739590-41ee01ac-80da-498d-8309-cb0bf68c848a.jpg main.zip https://github.com/jbilander/SDBox-Mini/files/11524517/main.zip
— Reply to this email directly, view it on GitHub https://github.com/jbilander/SDBox-Mini/issues/4#issuecomment-1556163779, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMIMTHBA4ZJJP73JPSERZ3XHIAX5ANCNFSM6AAAAAAYIS3CKY . You are receiving this because you authored the thread.Message ID: @.***>
Hi, you can look in the KiCAD...it is open source, perhaps you have accidentally put the LED with wrong orientation or the resistor is missing or too high value? Should be a 200 Ohm resistor or thereabout.
150 ohm resistor and LED in the right direction (and working). I'll reinvestigate on the second one. (got 5 minimum pcb from pcbway you know.)
It's a silver version, it should work 😉
Hi, try it without the shell on, it might be that the shell touches something (the LED leg) and shorts it out. I think those silver shells conducts electricity and since it grips the DB25-connector it gets grounded. Just to rule it out.
I tested it before the shell.
The shell is just plastic.
Le dim. 21 mai 2023 à 19:29, Jorgen Bilander @.***> a écrit :
Hi, try it without the shell on, it might be that the shell touches something (the LED leg) and shorts it out. I think those silver shells conducts electricity and since it holds the DB23-connector it gets grounded. Just to rule it out.
— Reply to this email directly, view it on GitHub https://github.com/jbilander/SDBox-Mini/issues/4#issuecomment-1556233722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMIMTFY3673GVQANSYXI4LXHJGH3ANCNFSM6AAAAAAYIS3CKY . You are receiving this because you authored the thread.Message ID: @.***>
Hi, go time to get back to the issue, now fully working with yourf firmware with the orange led blinking on sdcard activity.
The issue was ... a bad/broken 250 ohm resistor.
Hi,
Tx a lot for your work.
I just solder my first SDBox Mini and trying to make it work. (rev2b)
I compiled the firmware from this source : https://github.com/jbilander/amiga-par-to-spi-adapter/blob/master/avr/main.c
I compiled it from my mac using vscode using platformio extension :
Converted to hex :
And flashed the firmware :
Used the amiga.zip from there https://github.com/jbilander/SDBox-Mini/releases/download/v2a/Amiga.zip
(workbench 3.2.2)
And got the "Bad Number" error :
I checked the voltage from your documentation and they are not the same (extra power supply ):
I rechecked all soldering and resistors.
Any idea to dig in?