Hallo Besucher, der Thread wurde 5,8k mal aufgerufen und enthält 8 Antworten

letzter Beitrag von DuncanTwain am

Shadowolf auf lochraster (Antabaka)

  • Hallo,


    First of all, my German is not what it used to be, but I'll give it a try ;)


    Ich habe auf die seite von Antabaka '7. Lochraster No.2 - Für Shadowolf Firmware' nach gebaut und mit dem bootloader 2008-01-05 flashed. Das rote LED get an und bleibt an. Nichts anderes passiert. Die SD karte (1GB Kingston) wird moglicherwiese niet erkannt, order brauch ich ersten die ganse sd2iec.hex zu flashen?


    Wie kann mir helfen?


    Thanks alot!


    Duncan Twain

  • Hi Shadowolf,


    Thanks for the quick reply! I forgot to mention that I already had placed the sd2iec.bin on the SD card. The red light light turns on and stays on, green doesn't do anything. I've read all the other postings on this forum I could find in relation to building home-made mmc2iec/sd2iec boards. I've traced all my wires multiple times, flashed the bootloader as described on the C64 wiki page, but to no avail.


    What might obviously be related is that I don't know for sure what to do with 'sd card_detect' so I connected it to ground. I need to find out whether the card is connected properly and recognised or I could flash the full version and make sure that my board is okay.
    But to flash the full version of the software, avrdude needs a .hex file instead of .bin. Next I would need to have the correct commandline arguments for avrdude such as described for the bootloader; lot of the sites talk about ponyprog which doesn't work with my USBasp.


    Hope you can help,
    Duncan Twain

  • Thanks for the quick reply! I forgot to mention that I already had placed the sd2iec.bin on the SD card. The red light light turns on and stays on, green doesn't do anything. I've read all the other postings on this forum I could find in relation to building home-made mmc2iec/sd2iec boards. I've traced all my wires multiple times, flashed the bootloader as described on the C64 wiki page, but to no avail.


    We are just starting to collect more data: http://www.c64-wiki.com/index.php/SD2IEC
    There is always the possibility that the bootloader just does not work with your card.
    The code for the cards is the same for the M32 and M644 bootloaders.


    Zitat


    What might obviously be related is that I don't know for sure what to do with 'sd card_detect' so I connected it to ground. I need to find out whether the card is connected properly and recognised or I could flash the full version and make sure that my board is okay.


    The bootloader does not care for card-detect or write-protect.
    It is however important that you do not make the lines too long, we already had one case with a breadboard-unit where shortening the lines did the trick.
    Well below 10cm as a rule of thumb I would say.


    Zitat


    But to flash the full version of the software, avrdude needs a .hex file instead of .bin. Next I would need to have the correct commandline arguments for avrdude such as described for the bootloader; lot of the sites talk about ponyprog which doesn't work with my USBasp.


    I can't help with AVRDude, never got it to work and so I just use AVRDragon.exe with, well, my Dragon.
    You can however grab the source and compile it yourself and therefore create your own .hex.


    Fuses are rather simple.
    Since the firmware disables the JTAG-interface in software already it should be sufficent to switch to 8 MHz clock and be done.
    Or well in your case, just leave out BOOTRST -> BOOTRST = 1 -> Bootloader disabled.

  • What might obviously be related is that I don't know for sure what to do with 'sd card_detect' so I connected it to ground.

    Check the SD-Card socket for the corresponding pin. The socket should have 11 contacts, 1-9 for data lines etc, one for write protect and one for card detect.

  • What might obviously be related is that I don't know for sure what to do with 'sd card_detect' so I connected it to ground.


    It's the line that is used to detect if a card is inserted - if your SD slot doesn't have a switch for that connecting it to ground is the correct solution.


    Zitat

    But to flash the full version of the software, avrdude needs a .hex file instead of .bin.


    avrdude can flash .bin files too, it auto-detects the type based on the file extension. If you do flash the main software directly please remember that avrdude erases the whole chip before programming, so the bootloader will be gone.


    Zitat

    Next I would need to have the correct commandline arguments for avrdude such as described for the bootloader; lot of the sites talk about ponyprog which doesn't work with my USBasp.


    Use the same arguments you used when programming the boot loader, but use sd2iec.bin instead of the bootloader hex file.


    One other thing you may want to check again: The pads of an SD card are numbered in an unusual way, 9-1-2-3-4-5-6-7-8. Pad 9 is the one that is moved a bit inwards, 8 is the slightly narrower one.

  • Hello again,


    Compiling the code myself to a sw1 version of sd2iec did the trick! Green Led flashes and the thing seems in operation, except that I now get an 'File not found error'. But this should'n be too difficult to fix(hopefully).


    Thanks again,
    Duncan Twain..