Antichambre

dipCoreF4 and dipBoardF4, a compact Core.

96 posts in this topic

Ahah :) You did a module from this machine, good idea, this gear is a 'must have' for an electronic music studio.
I've got a Psycho SY-1M, that I suppose you know :cheers:

Share this post


Link to post
Share on other sites

Well done, that is a real Midibox milestone.

Share this post


Link to post
Share on other sites

I made a short video for dipCoreF4 new second USB Host port.

I made a dirty MIDI class which will deserve to be cleaned and integrated better in MIOS32 but it works.
I tried to use the OTG_HS dedicated DMA but it's maybe a bit complicated for me, I will need help for that part. (edit) maybe DMA don't work with BULK transfer type !?

So here first regular USB(OTG_FS) is connected to my laptop and MIOS Studio. Then I'm connecting 2 different MIDI devices to the second USB(OTG_HS in FS and Host mode), a waldorf streichfett and a Korg PadKontrol. Then I try Mouse and Keyboard for HID demonstration.
 


Hope you like this new feature cause USB is a tricky thing to code!:cry:

 

Edited by Antichambre
2 people like this

Share this post


Link to post
Share on other sites

Hello

This compact modular core is so attractive...

Nice work !

Best

Zam

Share this post


Link to post
Share on other sites

@Antichambre I'd like to integrate such feature onto my mainboard. Are you willing to share the schematics and if necessary the code? 

Any feedback is very appreciated. Thanks!
Chris

Share this post


Link to post
Share on other sites

Hello Chris,

Which feature do you need?

Best
Bruno

Share this post


Link to post
Share on other sites

Hey Bruno,

I'd like to connect another USB device (mouse or midi controller) to my core. :-) Like in your video...

Share this post


Link to post
Share on other sites

You want two USB with HID support. Which uC you use on your 'mainboard'?
I implemented the second OTG HS for the STM32F405RG, coded in MIOS32 with/for the DipCoreF4 pinout.
fetch.php?media=antichambre:pinout_compa

I just put an STMPS2141STR as protection, the same as Disco one.
https://www.st.com/content/ccc/resource/technical/document/user_manual/70/fe/4a/3f/e7/e1/4f/7d/DM00039084.pdf/files/DM00039084.pdf/jcr:content/translations/en.DM00039084.pdf

On 15/09/2018 at 4:48 PM, Antichambre said:


=> Then like I said I will make some changes on the STM32F405 pins and on MIOS32 side. Add pins for DP/DM and Over-current/VBUS Drive GPIO of the second USB on the dip40(other extra pins).

Host%20Only.png?raw=1

And modify the dipBoardF4 for that purpose of course.

 

 

Share this post


Link to post
Share on other sites

My mainboard uses the 407.

Hm... there is still something I do not get.

The discovery-boards use the micro-USB-connector for USB-Host-Mode. That means, when connecting a device (mouse or MIDI controller) to the discovery-board via this board it's not possible to connect to the core itself through USB (because the USB-port (PA12 & PA13) is blocked through the device). But in your video I see that you still have your core connected through USB to the computer. How did you do that?? :-) 

Edited by FantomXR

Share this post


Link to post
Share on other sites
3 hours ago, FantomXR said:

That means, when connecting a device (mouse or MIDI controller) to the discovery-board via this board it's not possible to connect to the core itself through USB (because the USB-port (PA12 & PA13) is blocked through the device)

Yes the disco is designed like that. Only the OTG FS (USB#1) is available. but the stm32f4has two OTG, the FS and the HS, this last is made to use a high speed phy but can work at full speed without.
check the chart I share above, you will see that there's pinout for the FS and the HS on dipcore columns.
 

3 hours ago, FantomXR said:

But in your video I see that you still have your core connected through USB to the computer. How did you do that?? :-) 


In MIOS32 the problem with the 407 is that the pin for the second USB(OTG_HS) are used for SPI2 which is your J8/9 Spi port.
Then on the dipCore I moved the SPI function to other pins . AND I implement it in MIOS32 ONLY for the DipCooreF4.
In MIOS32 the DipCore has is own pinout and functions.

 

Edited by Antichambre

Share this post


Link to post
Share on other sites

In this extended chart you can see the functions available for each pin, (It's from stm32f4 documentation.)
fetch.php?cache=&media=antichambre:pinou

Share this post


Link to post
Share on other sites

Got you... but changing the pins for SPI2 in MIOS32 firmware shouldn't be that hard. So I could move those functions to other pins. But I don't have a clue how to implement that second USB port in the firmware... and I assume you don't want to share this informations which I can totally understand.

Share this post


Link to post
Share on other sites
10 minutes ago, FantomXR said:

but changing the pins for SPI2 in MIOS32 firmware shouldn't be that hard. So I could move those functions to other pins.

Yeah but you have to be sure you don't loose on other function on the new pin or they are not used somewhere else in MIOS32.

11 minutes ago, FantomXR said:

and I assume you don't want to share this informations which I can totally understand

No no there's no problem for that, this is just a bit dirty in code for the moment, and I have to complete it, I didn't write any callback installer for the HID for example, this is toDo.
I can share, I already shared it with my dipCoreF4 beta testers ;)

Share this post


Link to post
Share on other sites
17 minutes ago, Antichambre said:

Yeah but you have to be sure you don't loose on other function on the new pin or they are not used somewhere else in MIOS32.

33 minutes ago, FantomXR said:

I'll look into it ;-) You don't have any suggestions which pins I can use? :-)

Share this post


Link to post
Share on other sites
1 hour ago, FantomXR said:

I'll look into it ;-) You don't have any suggestions which pins I can use? :-)

No I can't, it depends on the functions you need on your 'mainboard' and the ones you already mapped.

Best
Bruno
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now