Pooyan

Members
  • Content count

    9
  • Joined

  • Last visited

Everything posted by Pooyan

  1. Hi, I'm working on a project to get a C64 emulator running on the Papilio DUO. I have a working setup using uno2iec program to emulate the disk drive, but this still requires a laptop connected to the board. I found a project named sd2iec, that uses the SD card to load disk images of, but the compiled program is too big to fit on the ATMega32U4 together with a bootloader. So I need a way to program the AVR directly. I Googled for documentation on how to use the bootloader program routine to upload my software as well, but couldn't find any. Is there a way to program the AVR on the Papilio DUO without bootloader via USB using for example avrdude? Kind regards, Paul
  2. I found the answer myself : In the IDE : File -> Upload using programmer Or use the Papilio_DUO_ArduinoISP.bit to turn the FPGA into a programmer, and interface with avrdude # papilio-prog -f <path to bit file>/Papilio_DUO_ArduinoISP.bit # avrdude -C <path to avrdude config>/avrdude.conf -v -patmega32u4 -cstk500v1 -P/dev/ttyUSB1 -b57600 <Other arguments> WARNING: please make sure what you are doing, if you change the fuse bits to the wrong settings, it can make your atmega32u4 totally useless, and the chip will have to be replaced.
  3. Pooyan

    Papilio DUO Gameduino sketches not compiling

    Hi, sorry for the late reply I did get it to work in the end. Selecting the AVR board instead of the FPGA did make a difference, since the source won't compile for the soft cpu.
  4. Hi, I'm new here so I hope I'm not breaking any rules by just writing a post to ask a beginner question. Wat I'm trying to do is build the Gameduino examples delivered with Designerstudio 1.0.8 (I tried 1.0.7 and 1.0.5 too), the FPGA circuit runs fine, but the C code won't compile. The errors I get are pasted below : I'm running Designer lab on Mint linux 18.2 Kind regards, Paul ###################################################################################################################33 Arduino: 1.0.8 (Linux), Board: "Papilio DUO - AVR - No USB - ISP" In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:17:0: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:50:39: error: 'prog_uchar' has not been declared static void copy(unsigned int addr, prog_uchar *src, int count); ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:61:25: error: 'prog_uchar' has not been declared static void microcode(prog_uchar *src, int count); ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.h:62:45: error: 'prog_uchar' has not been declared static void uncompress(unsigned int addr, prog_uchar *src); ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:129:47: error: 'prog_uchar' has not been declared void GDClass::copy(unsigned int addr, PROGMEM prog_uchar *src, int count) ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:33: error: variable or field 'microcode' declared void void GDClass::microcode(PROGMEM prog_uchar *src, int count) ^ In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0, from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:25: error: expected primary-expression before '__attribute__' void GDClass::microcode(PROGMEM prog_uchar *src, int count) ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:151:50: error: expected primary-expression before 'int' void GDClass::microcode(PROGMEM prog_uchar *src, int count) ^ In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:242:0: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/font8x8.h:1:16: error: 'prog_uchar' does not name a type static PROGMEM prog_uchar font8x8[] = { ^ In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0, from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In static member function 'static void GDClass::ascii()': /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:258:28: error: 'font8x8' was not declared in this scope byte b = pgm_read_byte(font8x8 + i); ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: At global scope: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:346:14: error: 'prog_uchar' has not been declared void begin(prog_uchar *s) { ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:368:3: error: 'prog_uchar' does not name a type prog_uchar *src; ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In member function 'void GDflashbits::begin(int*)': /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:347:5: error: 'src' was not declared in this scope src = s; ^ In file included from /home/paul/work/fpga/papilio/DesignLab-1.0.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0, from /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:14: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: In member function 'byte GDflashbits::get1()': /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:351:34: error: 'src' was not declared in this scope byte r = (pgm_read_byte_near(src) & mask) != 0; ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:355:7: error: 'src' was not declared in this scope src++; ^ /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp: At global scope: /home/paul/work/fpga/papilio/DesignLab-1.0.8/libraries/Gameduino/GD.cpp:374:45: error: 'prog_uchar' has not been declared void GDClass::uncompress(unsigned int addr, prog_uchar *src) ^ Error compiling. This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.
  5. Hi, I have a working screenbuffer at 50Hz, so I decided to send a bit file that contains a working version of the fpga64 emulator. The zip file includes a readme to explain how to get the C64 diskdrive emulation working. Kind regards, Paul Honig fpga64_papilioduo.zip
  6. Hi Jack, I took the SID implementation of the 1541 ultimate, and added that to the project, that implementation has filters. But I would like to have a look at the implementation that Alvie created to compare the two. The implementation is indeed targeted to the Papilio DUO 512K and the Classic Computing Shield, and some Atari style joysticks I had lying around since the 80's. When I finish the frame buffer that converts 50Hz pal the 60Hz VGA I'll create a bit file, and a version of Uno2IEC (1541 emulater) that is pre-configured to work on the board so you can test the setup yourself. Kind regards, Paul
  7. Hi, I ported the FPGA64 project originally intended for the C-one to the Papilio Duo 512kb. To load games i use the uno2iec project, which works as long as games don't use a turbo loader. Working : both joysticks, ps/2 keyboard (but not completely stable), SID (without filters for now), video (My display only shows 60 Hz). Not working: Some games crash Some playable titles: Giana Sisters, Boulderdash, Bubble Bobble Since the license on the FPGA64 prohibits me from sharing the source, I can't release it now, I'm trying to get permission from the original author. If people are interested, I can post the bit file without breaking the license I believe. Kind regards, Paul
  8. Pooyan

    Papilio DUO Gameduino sketches not compiling

    Although putting the 'new' Gameduino library in, this results in graphics not being rendered correctly. (black sprites, characters instead of graphics).
  9. Pooyan

    Papilio DUO Gameduino sketches not compiling

    Hi, I did some more testing, and when I downloaded the newest version of the Gameduino library and set the board type correctly to 'AVR - No USB', I did get the source to compile. Could it be that an old version of the Gameduino library has been included with Designlab 1.0.8 ? Kind regards, Paul