Jump to content

dipCoreF4 and dipBoardF4, a compact Core.


Antichambre
 Share

Recommended Posts

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
  • Like 2
Link to comment
Share on other sites

  • 2 months later...

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.

 

 

Link to comment
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
Link to comment
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
Link to comment
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.

Link to comment
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 ;)

Link to comment
Share on other sites

  • 1 year later...

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
  • Like 3
Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...