Adapter for MAPLE (Release)

Place for discussing homebrew games, development, new releases and emulation.
User avatar
s_d_a_i
undertow
Posts: 32

Re: Adapter for MAPLE (Release)

Post by s_d_a_i »

Downloaded and tested, now the second led (green led or red on clones) is always on, the controller doesn't show on the system menu but I noticed if I unplug it and plug it on other port sometimes it appears on the DC just a couple of frames.

User avatar
megavolt85
Developer
Posts: 2159

Re: Adapter for MAPLE (Release)

Post by megavolt85 »

remove SPI memory and check

User avatar
s_d_a_i
undertow
Posts: 32

Re: Adapter for MAPLE (Release)

Post by s_d_a_i »

This was tested with and without the spi memory.

User avatar
megavolt85
Developer
Posts: 2159

Re: Adapter for MAPLE (Release)

Post by megavolt85 »

I tested the firmware with two boards, one is the original STM, the second is a clone with broken markings, and both are detected in the BIOS

User avatar
s_d_a_i
undertow
Posts: 32

Re: Adapter for MAPLE (Release)

Post by s_d_a_i »

Ok, I was capturing some pics from the oscilloscope when I found that it is working with the oscilloscope probe ground connected to the stm32 gnd, when I disconnect the probe it doesn't work ¿?

Here is a pic from the original controller:
dc_controller1.jpg
And this is one for the STM32:
stm32_controller2.jpg
(Not the same time division, sorry)

And when the oscilloscope probe is connected to the Blue Pill (STM32 port A, DC on port D):
stm32_a_dc_d.jpg

...I think it is an EMI/RFI issue then ¿is that possible?

User avatar
megavolt85
Developer
Posts: 2159

Re: Adapter for MAPLE (Release)

Post by megavolt85 »

s_d_a_i wrote:...I think it is an EMI/RFI issue then ¿is that possible?
I think yes
you need to look at the noise on the + 5V and + 3.3V lines on the STM board
most likely additional capacitors will solve the problem

User avatar
s_d_a_i
undertow
Posts: 32

Re: Adapter for MAPLE (Release)

Post by s_d_a_i »

Ok, it may seem crazy, but a 10uF MLCC between 3.3v and GND solved the issue, it is now working!
10uF_3.3_gnd.jpg

User avatar
s_d_a_i
undertow
Posts: 32

Re: Adapter for MAPLE (Release)

Post by s_d_a_i »

Ok megavolt85, now it is working, the DC detects it as a controller, not a joystick so in Virtua Tennis and DOA for instance it seems it is sending an analog up or down as the menu keeps scrolling forever no matter if you press up or down. The buttons work fine, no problem on that. But you can't move on DOA.

It seems there are 2 differences between the DC controller and the DC Arcade Stick:
read_format.png
fixed_device_status.png

User avatar
megavolt85
Developer
Posts: 2159

Re: Adapter for MAPLE (Release)

Post by megavolt85 »

may be DOA don't support Arcade Stick?
need mode for emulate standart controller

Code: Select all

static volatile maple_devinfo_t dev_info_cont =
{
	{ 5, 0x00, 0x20, 0x1C },
	MAPLE_FUNC_CONTROLLER,
	{ 0xFF070000, 0, 0 },
	0xFF,
	0x00,
	{
		'A','r','c','a','d','e',' ','S','t','i',
		'c','k',' ',' ',' ',' ',' ',' ',' ',' ',
		' ',' ',' ',' ',' ',' ',' ',' ',' ',' '
	},
	{
		'P','r','o','d','u','c','e','d',' ','B','y',' ','o','r',' ',
		'U','n','d','e','r',' ','L','i','c','e','n','s','e',' ','F',
		'r','o','m',' ','S','E','G','A',' ','E','N','T','E','R','P',
		'R','I','S','E','S',',','L','T','D','.',' ',' ',' ',' ',' '
	},
	0x12C,
	0x190,
	"Version 1.000,2020/10/07,STM32F103C8T6, ",
	"Custom Arcade Stick                     "
};

Code: Select all

static volatile cont_response_t cont_resp =
{
	{ 8, 0x00, 0x20, 0x03 },
	MAPLE_FUNC_CONTROLLER,
	0xFFFF,
	0x00,
	0x00,
	0x80,
	0x80,
	0x80,
	0x80
};
it's work as Arcade Stick, not Controller

User avatar
s_d_a_i
undertow
Posts: 32

Re: Adapter for MAPLE (Release)

Post by s_d_a_i »

Debugging with the Logic Analyzer I get the following results

DC Petition GetCondition 09 command:
get_cond.png
The STM32 answers Data transfer 08 command:
data_transfer.png
I don't know exactly the maple documentation so I'm not sure if this is right or not.

  • Similar Topics
    Replies
    Views
    Last post