Adapter for MAPLE (Release)

Place for discussing homebrew games, development, new releases and emulation.

Moderators: VasiliyRS, deluxux

User avatar
s_d_a_i
undertow
Posts: 32

Re: Adapter for MAPLE (Release)

Post#51 » Sat Oct 10, 2020 4:27 am

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: 1009

Re: Adapter for MAPLE (Release)

Post#52 » Sat Oct 10, 2020 4:57 am

remove SPI memory and check

User avatar
s_d_a_i
undertow
Posts: 32

Re: Adapter for MAPLE (Release)

Post#53 » Sat Oct 10, 2020 5:22 am

This was tested with and without the spi memory.

User avatar
megavolt85
Developer
Posts: 1009

Re: Adapter for MAPLE (Release)

Post#54 » Sun Oct 11, 2020 10:08 am

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#55 » Sun Oct 11, 2020 10:59 am

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: 1009

Re: Adapter for MAPLE (Release)

Post#56 » Sun Oct 11, 2020 11:38 am

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#57 » Sun Oct 11, 2020 12:01 pm

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#58 » Sun Oct 11, 2020 1:35 pm

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: 1009

Re: Adapter for MAPLE (Release)

Post#59 » Sun Oct 11, 2020 2:07 pm

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#60 » Sun Oct 11, 2020 4:48 pm

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

Return to “New Releases/Homebrew/Emulation”

Who is online

Users browsing this forum: Google [Bot]