Search found 136 matches

by BennehBoy
Tue Apr 20, 2021 9:06 pm
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

Re: USB Host, what solution?

Luckily I always buy these in multiples, so have another board up and running now. Unfortunately the DWT code also results in no USB processing. It doesn't matter how short the delay is. The debugger seems to show the MC stuck in the while loop of the delay function. I'll double check my implementat...
by BennehBoy
Tue Apr 20, 2021 7:24 pm
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

Re: USB Host, what solution?

I'm not so sure the timer was the problem now, I've just worked backwards and can no longer get my code to display the mouse input - something is amiss.... I must've done something stupid somewhere. Programmed blinky on with CDC, connecting to USB port on computer, there's no life from the board - s...
by BennehBoy
Tue Apr 20, 2021 4:51 pm
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

Re: USB Host, what solution?

Thanks, I'll give that a try.
by BennehBoy
Tue Apr 20, 2021 2:32 pm
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

Re: USB Host, what solution?

Hi yeah, there is no micros in cube, that's an Arduino thing, which is why I'm using the timer - I would much have preferred to use a state machine approach as it's non blocking unlike the current code which just waits for a timer to hit 150. Code link here -> https://github.com/BennehBoy/F401_AMIGA...
by BennehBoy
Tue Apr 20, 2021 6:50 am
Forum: General discussion
Topic: Arduino DLO138 / DSO138 compiles with 100reds of errors...
Replies: 4
Views: 5701

Re: Arduino DLO138 / DSO138 compiles with 100reds of errors...

I think you've used the wrong core, your screenshot shows that you are using the official STM core, but this project appears to use the libmaple based core by Roger Clarke ->https://github.com/rogerclarkmelbourne/Arduino_STM32 The instructions on the page you linked are quite clear that it requires ...
by BennehBoy
Mon Apr 19, 2021 9:00 pm
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

Re: USB Host, what solution?

Well, I've got the code flushed out and it functions, BUT... To get the quadrature signal output to emulate the amiga mouse requires a 150us duration for each pulse, I've tried to implement this with a timer (internal using a prescaler matching the clock, so for the 401 with 84mz clock, I'm using 84...
by BennehBoy
Mon Apr 19, 2021 3:20 pm
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

Re: USB Host, what solution?

Well I have a 401 pill set up and working as USB HOST in OTG mode and can decode and send the HID mouse reports to serial :D Just have to integrate the amiga quadrature encoding and send that out to GPIO & some level shifters now :geek: So ~ $6 and a little bit of learning. The hardest part was ...
by BennehBoy
Mon Apr 19, 2021 9:31 am
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

Re: USB Host, what solution?

Currently no USB host is supported by the core. A PR introduced this for Mass storage but always a WIP and doesn't not covered HID but a least USB host library is now accessible. https://github.com/stm32duino/Arduino_Core_STM32/pull/1088 Yup I was aware of this and that it didn't cover what I wante...
by BennehBoy
Mon Apr 19, 2021 9:30 am
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

Re: USB Host, what solution?

I would use a F4x1 pill and some apps already available on the net, like this: https://damogranlabs.com/2018/02/stm32-usb-hid-mouse-keyboard/ g**gle is your friend 8-) Google is my friend :D You've linked a page that shows how to set up a USB client as a HIB mouse & keyboard. I want to set up a...
by BennehBoy
Sun Apr 18, 2021 3:08 pm
Forum: General discussion
Topic: USB Host, what solution?
Replies: 24
Views: 13567

USB Host, what solution?

I'd like to build a small adapter using an STM32 (although I'm open to suggestions) which will translate HID mouse signals to legacy 5 volt 16 bit computers. As an example, to use USB mice on legacy Amiga/or Atari computers. There are adapters based on PIC's that will do this for a _very_ specific s...

Go to advanced search