Antichambre

dipCoreF4 and dipBoardF4, a compact Core.

100 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

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

Posted (edited)

Hello some update were made on the dokuwiki ;)

dipCoreF4

fetch.php?w=400&tok=a9746a&media=anticha
A reduced Core for your MIDIbox App, an STM32F405RG in a DIP40 format.
fetch.php?w=600&tok=df1ade&media=anticha

 

Features

  • MIOS32 uses same processor family and drivers(no deep change).
  • Same internal hardware as Disco or wCore (speed, memory, peripherals, etc…) .
  • Board pinout and package compatible with a MIOS8 PIC 8-)
  • USB connector onboard. 2 OTG are available, second(new) USB is Host only.
  • 5V power input and led.
  • 3.3V regulator and led on board.
  • 74HCT541 on board for the 5V output ports.
  • User and Reset buttons.
  • 2 user leds.
  • 12 extra pins for USB, buttons and leds.
  • Your favorite Core is now a current component easy to integrate.

All commons MIOS32 ports are available except:

  • General purpose J10x ports were removed.
  • LCD port was reduced to a serial one, no more pins J15.D0-D7 , no back-light power supply.
  • 2 UART only(2 MIDI In/2Out).
  • 2 AIN channels only(e.g. pedal inputs).
  • SPI slave only supported by J19(SPI3).

Check the dipBoardF4 for more details :-P
 


Download

dipCoreF4 eagle lib for easy integration in your design. dipcoref4_v2a.zip
 


 

Pinout

The dipCoreF4 and the legacy MIOS32 ports.

fetch.php?w=600&tok=ab8434&media=anticha

Check dipBoardF4 for more details about the connectors.

BOM

Due to the small SMD, which is sometime a difficulty to solder, the board is already assembled by manufacturer, except the connectors.
The mini-USB is optional.

Qty Value Package Parts Mouser Reichelt Conrad LCSC Notes
Headers
3 1*20 male   437-3501012000006101     No Adapted to sockets
Mill-Max 0552-1-15-01-11-27-10-0
or 0553-1-15-15-11-27-10-0
Connnector
1 mini-USB THT USB 571-1734510-1     no! for other ref take care about restricted area!

Edited by Antichambre
3 people like this

Share this post


Link to post
Share on other sites

Hello Bruno

Look great !

If only I got this 4 years ago, my midibox design would have the core directly on the main board...

Bravo

Zam

 

Share this post


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

Hello Bruno

Look great !

If only I got this 4 years ago, my midibox design would have the core directly on the main board...

Bravo

Zam

 

Maybe time to update your design ;)

Merci!

Bruno

Share this post


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

Maybe time to update your design ;)

Unfortunately not enough interest for my "highend", costly, and complex automation to justify another hundreds hours of "R&D", despite I still have in mind a "simplified" version...but still in standby for the moment.

Best

Zam

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