In the io module it combines them in theory with:
joystick1 <= docking_joystick1 and ("1" & c64_joystick1);
joystick2 <= docking_joystick2 and ("1" & c64_joystick2);
joystick3 <= docking_joystick3 and ("1" & c64_joystick3);
joystick4 <= docking_joystick4 and ("1" & c64_joystick4);
I wonder if my 1MHz clock needs to be more precise...
Regarding SD cards - I made my failing card init 'first time' using init,
read sector 1 (fails), wait 100us, init! So I'll see which parts of that I
can improve:-)
On 19 July 2014 14:54, fierman fierman-***@public.gmane.org [chameleon_64] <
chameleon_64-***@public.gmane.org> wrote:
>
>
> Enabled 4player in atari800core_chameleon, to no avail. I do somehow have
> the idea there are no references to the c64 joysticks, joystick1/4 are only
> referred to docking_joystick in there. Adding c64 entries did not help much.
> But like said before: i have not that much vhdl experience, so it's a
> hit&miss debugging for me really:)
>
> Also, regarding the sd card: the zx spectrum cores fail _always_ on sd
> card on cold boot. The user has to manually reset the sd line there to get
> it working.
>
>
> On Sat, Jul 19, 2014 at 2:00 PM, Mark Watson scrameta-gM/Ye1E23mwN+***@public.gmane.org
> [chameleon_64] <chameleon_64-***@public.gmane.org> wrote:
>
>>
>>
>> There must be a better way of resetting it. I think I'll add a check if
>> it failed, wait 100us then retry. It works manually with a 5 second wait so
>> should work I hope!
>>
>> You need to change it in atari800core_chameleon where I do generic map,
>> not in the chameleon io file. That is just the default value. Try enabling
>> the 4 player mode too and see if it works.
>>
>> Mark
>>
>>
>>
>> On 19 July 2014 13:43, fierman fierman-***@public.gmane.org [chameleon_64] <
>> chameleon_64-***@public.gmane.org> wrote:
>>
>>>
>>>
>>> There have been issues reported in the past regarding sd card
>>> compatibility, unavoidable I guess. Not your fault:)
>>>
>>> Regarding native c64 joysticks: looks like you not only disabled the
>>> 4-player adapter (which was not enabled in the minimig core either, so not
>>> needed), but the c64 itself as well.
>>> line 121 in chameleon_io :
>>> enable_c64_joykeyb : boolean := false;
>>>
>>> Just built a new core (thanks for the build script, useful!) , which
>>> started fine, but still no joy support.
>>>
>>> No rush I guess:)
>>>
>>>
>>>
>>>
>>>
>>> On Sat, Jul 19, 2014 at 1:32 PM, Mark Watson scrameta-gM/Ye1E23mwN+***@public.gmane.org
>>> [chameleon_64] <chameleon_64-***@public.gmane.org> wrote:
>>>
>>>>
>>>>
>>>> On 19 July 2014 12:23, Mark Watson <scrameta-gM/Ye1E23mwN+***@public.gmane.org> wrote:
>>>>
>>>>> On 18 July 2014 23:15, fierman fierman-***@public.gmane.org [chameleon_64] <
>>>>> chameleon_64-***@public.gmane.org> wrote:
>>>>>
>>>>>> Thank you for the build.
>>>>>> Contrary to your problems , the core starts fine from the menu here.
>>>>>> Also when connected to the c64. (flashed the .rbf in slot 14 )
>>>>>>
>>>>>> Sadly the joystick does not appear to work though.. (neither in port
>>>>>> 1, neither in port2), and since the a8 core menu needs joystick, I can't
>>>>>> tell whether the c64 joyports are completely disfunctional, or just in the
>>>>>> menu.
>>>>>>
>>>>>
>>>>> Weird it starts for you from the menu. I've tried several things and
>>>>> had no luck:
>>>>> i) Change reset logic to match minimig core
>>>>> ii) Added a delay before I start using spi (1 second!)
>>>>> iii) Initialize the mmc and extra time.
>>>>> No luck with any of them:-(
>>>>>
>>>>> I guess I need to connect up the logic analzyer to the sd card pins to
>>>>> see what is going on...
>>>>>
>>>>> As for the c64 joystick. This chameleon_io is supposed to send me the
>>>>> c64 joystick or docking station joystick as appropriate. I can't see
>>>>> anything I've connected up wrong. I have the '4 port' support disabled,
>>>>> perhaps that breaks it. Hmmm. Anyway Paul has kindly found me a C64 so I'll
>>>>> be able to test it in a week or two.
>>>>>
>>>>
>>>> Well I captured the traces and there is nothing obvious, except the SD
>>>> card communication itself does not progress as I'd expect. Gets stuck where
>>>> it normally starts with the data transfers. However the signals to the card
>>>> prior to that look fine. I need to take this logic analyser capture and
>>>> decode/figure it out...
>>>>
>>>> Anyway... I switched SD card and a different one works first time, from
>>>> the menu etc.
>>>>
>>>> So it seems that my init code does not work for some sd cards, when
>>>> they are in the state left in by the Chameleon menu. Hmmm.
>>>>
>>>>
>>>
>>
>
>