REMINDER - Stay logged in for at least 2 hours a week to get whitelisted.
Also it helps build a picture where our "good traffic" is coming from for detection scripts.
:o)
Also it helps build a picture where our "good traffic" is coming from for detection scripts.
:o)
TF CD32 Riser Revision 2 Design Complete
Moderators: terriblefire, Terriblefire Moderator
-
arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: 19 Jun 2019 07:36
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
Ok. I have setup to carry on working on firmware.
It is not my CD32. I am not sure if my CD32 is flaky, or Riser actually messes up with my CD32. As sync is lost ocasionally and keyboard just sometimes work. Every 3rd or something keyboard press. (On diagrom)
I hooked up Riser to my Amiga 500 keyboard port, and responsivness is perfect. Clock pulse tolerance is enormous as well.
It is not my CD32. I am not sure if my CD32 is flaky, or Riser actually messes up with my CD32. As sync is lost ocasionally and keyboard just sometimes work. Every 3rd or something keyboard press. (On diagrom)
I hooked up Riser to my Amiga 500 keyboard port, and responsivness is perfect. Clock pulse tolerance is enormous as well.
You do not have the required permissions to view the files attached to this post.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: 19 Jun 2019 07:36
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
Wow. Current ST usb library implementation for keyboard is very very buggy, if I press more than 4 buttons, they change value to 1 .... This messes up with depressing buttons.
I will revert library to f105 version and see if this helps.
I will revert library to f105 version and see if this helps.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: 19 Jun 2019 07:36
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I did find some issues with keybaord behaviour. Issue is that if multiple buttons (more than 4 or 5) are pressed then weird values appear on reading report. It may be overflow, but each time values are the same.
I will poke this more, I just hope I will not have to implement keyboard report parser, and still will be allowed to use keyboard in boot mode.
I pushed changes to repository. Current implementation may not be ideal, but should be pretty much usable.
I will poke this more, I just hope I will not have to implement keyboard report parser, and still will be allowed to use keyboard in boot mode.
I pushed changes to repository. Current implementation may not be ideal, but should be pretty much usable.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
terriblefire
- Admin sponsor

- Posts: 5687
- Joined: 28 Aug 2017 22:56
- Location: Glasgow, UK
Re: TF CD32 Riser Revision 2 Design Complete
Thanks i'll try that out tomorrow along with a TF330 rev 3 that @supaduper sent me.arkadiusz.makarenko wrote: 11 May 2020 23:12 I did find some issues with keybaord behaviour. Issue is that if multiple buttons (more than 4 or 5) are pressed then weird values appear on reading report. It may be overflow, but each time values are the same.
I will poke this more, I just hope I will not have to implement keyboard report parser, and still will be allowed to use keyboard in boot mode.
I pushed changes to repository. Current implementation may not be ideal, but should be pretty much usable.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
-
arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: 19 Jun 2019 07:36
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I spent some time trying to understand how usb keyboards send data. Hid report is 8 bytes, and it seems that it can record up to 4 main keys at the same time (I assume special keys like shift, alt etc are recorded separately). Above this report records all keys as 01.
Now I have a bug which doesn't register depressed buttons correctly. It may be simple as not clearing one of variables correctly. And I need to think how to handle "overflow" of keys pressed on usb keyboard.
Now I have a bug which doesn't register depressed buttons correctly. It may be simple as not clearing one of variables correctly. And I need to think how to handle "overflow" of keys pressed on usb keyboard.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
terriblefire
- Admin sponsor

- Posts: 5687
- Joined: 28 Aug 2017 22:56
- Location: Glasgow, UK
Re: TF CD32 Riser Revision 2 Design Complete
Apologies.. ive not had a chance to test. Couple of things i've found..arkadiusz.makarenko wrote: 13 May 2020 22:44 I spent some time trying to understand how usb keyboards send data. Hid report is 8 bytes, and it seems that it can record up to 4 main keys at the same time (I assume special keys like shift, alt etc are recorded separately). Above this report records all keys as 01.
Now I have a bug which doesn't register depressed buttons correctly. It may be simple as not clearing one of variables correctly. And I need to think how to handle "overflow" of keys pressed on usb keyboard.
My ATX PSU is low voltaging out at 4.2v ... annoying.
I've been debugging the CD32 ITX Clone.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
-
arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: 19 Jun 2019 07:36
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I don't think it is worth testing yet. Need to solve this missed depressed buttons issue first.terriblefire wrote: 14 May 2020 01:26Apologies.. ive not had a chance to test. Couple of things i've found..arkadiusz.makarenko wrote: 13 May 2020 22:44 I spent some time trying to understand how usb keyboards send data. Hid report is 8 bytes, and it seems that it can record up to 4 main keys at the same time (I assume special keys like shift, alt etc are recorded separately). Above this report records all keys as 01.
Now I have a bug which doesn't register depressed buttons correctly. It may be simple as not clearing one of variables correctly. And I need to think how to handle "overflow" of keys pressed on usb keyboard.
My ATX PSU is low voltaging out at 4.2v ... annoying.
I've been debugging the CD32 ITX Clone.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
Homer79
- Posts: 44
- Joined: 05 Dec 2018 20:03
Re: TF CD32 Riser Revision 2 Design Complete
I knew I was an article about this a while ago, I was sure it was 6 buttons for usb keyboards
http://xahlee.info/kbd/keyboard_n-key_r ... sting.html
http://xahlee.info/kbd/keyboard_n-key_r ... sting.html
-
arkadiusz.makarenko
- Moderator Team

- Posts: 1371
- Joined: 19 Jun 2019 07:36
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I will have a look at this. Thank you.Homer79 wrote: 14 May 2020 18:54 I knew I was an article about this a while ago, I was sure it was 6 buttons for usb keyboards
http://xahlee.info/kbd/keyboard_n-key_r ... sting.html
Question is if it is any key. I will need to desypher HID report itself (it is painful). It may be 4 allocated for general keys and additional 2 for special keys like shift, ale enter etc?
Report has 8 bytes, which first byte is most likekly ReportID.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
terriblefire
- Admin sponsor

- Posts: 5687
- Joined: 28 Aug 2017 22:56
- Location: Glasgow, UK
Re: TF CD32 Riser Revision 2 Design Complete
Honestly cant think of any situation where more than 4 keys are needed at the same time.arkadiusz.makarenko wrote: 14 May 2020 19:08I will have a look at this. Thank you.Homer79 wrote: 14 May 2020 18:54 I knew I was an article about this a while ago, I was sure it was 6 buttons for usb keyboards
http://xahlee.info/kbd/keyboard_n-key_r ... sting.html
Question is if it is any key. I will need to desypher HID report itself (it is painful). It may be 4 allocated for general keys and additional 2 for special keys like shift, ale enter etc?
Report has 8 bytes, which first byte is most likekly ReportID.
S
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
Who is online
Users browsing this forum: ClaudeBot, Google [Bot], Perplexity [Bot] and 5 guests