Adapter for MAPLE (Release)
- s_d_a_i
- undertow
- Posts: 32
Re: Adapter for MAPLE (Release)
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.
- megavolt85
- Developer
- Posts: 2159
Re: Adapter for MAPLE (Release)
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
- s_d_a_i
- undertow
- Posts: 32
Re: Adapter for MAPLE (Release)
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: And this is one for the STM32: (Not the same time division, sorry)
And when the oscilloscope probe is connected to the Blue Pill (STM32 port A, DC on port D):
...I think it is an EMI/RFI issue then ¿is that possible?
Here is a pic from the original controller: And this is one for the STM32: (Not the same time division, sorry)
And when the oscilloscope probe is connected to the Blue Pill (STM32 port A, DC on port D):
...I think it is an EMI/RFI issue then ¿is that possible?
- megavolt85
- Developer
- Posts: 2159
Re: Adapter for MAPLE (Release)
I think yess_d_a_i wrote:...I think it is an EMI/RFI issue then ¿is that possible?
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
- s_d_a_i
- undertow
- Posts: 32
Re: Adapter for MAPLE (Release)
Ok, it may seem crazy, but a 10uF MLCC between 3.3v and GND solved the issue, it is now working!
- s_d_a_i
- undertow
- Posts: 32
Re: Adapter for MAPLE (Release)
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:
It seems there are 2 differences between the DC controller and the DC Arcade Stick:
- megavolt85
- Developer
- Posts: 2159
Re: Adapter for MAPLE (Release)
may be DOA don't support Arcade Stick?
need mode for emulate standart controller
it's work as Arcade Stick, not Controller
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
};
- s_d_a_i
- undertow
- Posts: 32
Re: Adapter for MAPLE (Release)
Debugging with the Logic Analyzer I get the following results
DC Petition GetCondition 09 command: The STM32 answers Data transfer 08 command: I don't know exactly the maple documentation so I'm not sure if this is right or not.
DC Petition GetCondition 09 command: The STM32 answers Data transfer 08 command: 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
-
- 8 Replies
- 8739 Views
-
Last post by Tails86
-
- 5 Replies
- 7982 Views
-
Last post by segalover08
-
- 797 Replies
- 220222 Views
-
Last post by al73r
-
- 3 Replies
- 3266 Views
-
Last post by Holsten
-
- 2 Replies
- 2426 Views
-
Last post by madmatt30