Jump to content

Antichambre

Programmer
  • Posts

    1,291
  • Joined

  • Last visited

  • Days Won

    101

Posts posted by Antichambre

  1. for J16 which is a SPI port

      MIOS32_DONT_USE_SDCARD
      MIOS32_DONT_USE_SPI0

    Init

    // common
    GPIO_InitTypeDef GPIO_InitStructure;
    GPIO_StructInit(&GPIO_InitStructure);
    GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
    GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
    GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
    // J16.RC2 as GPIO (PA4)
    GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4;
    GPIO_Init(GPIOA, &GPIO_InitStructure);
    // J16.RC1 as GPIO (PC4)
    GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4;
    GPIO_Init(GPIOC, &GPIO_InitStructure);

    then to set or clear the pins you can use the macro:

    // MIOS32_SYS_STM_PINSET(port, pin_mask, value)
    // e.g.
    MIOS32_SYS_STM_PINSET(GPIOA, GPIO_Pin_4, 0)
    MIOS32_SYS_STM_PINSET(GPIOC, GPIO_Pin_4, 1)


     

    • Like 1
  2. Hi!
    It's not the subject here, but I can explain a few quickly. Phatline is right, the M16 is a 16x16 midi I/O interface, the plan is to build a expandable router using the MCAN bus to interconnect multiple couple of Core32+M16. Nx(16x16) I/O, 16x16, 32x32, 48x48 etc...

    The project is called "BANDMASTER", The two prototypes I've made are working... I will come back on this project once the HAARP is finished.

     

    Fichier%2002-12-2018%2020%2032%2043.jpeg

    • Like 2
  3. Sorry not the good lib!
    This one is fine:

    dipcore_usb.png?raw=1

    USB1(old) FS, Device/Host, this is the one you have to use, ID is floating for Device Mode, ID to GND for HOST
    41 - USB1.ID = ID pin for USB1
    46 - VBUS = VBUS for USB1
    43 - USB1.DP = USB1 D+
    48 - USB1.DM = USB1 D-

    USB2(new) HS in FS Mode, Host only.
    44 - USB2.DM = USB2 D-
    45 - USB2.DP = USB2 D+
    49 - USB2.OC = Input for external overcurrent sensor.
    50 - USB2.EN = Ouput for external power switcher

    dipCoreF4_v2c.lbr

  4. Here the schematic you are talking about: http://www.ucapps.de/mbhp/mbhp_ainser64_interconnections.pdf
    Connecting multiple AINSER64 is not a problem, you just need multiple CS lines. And will not increase the scanning time.
    Any 32bits Core will do the job.
    Here an example to add a CS line for AINSER8 , it's the same methods for the AINSER64.

    Best regards
    Bruno
     

  5. If I remember well, the pins I crossed on the first proto were J16.SI and J16.SO. J8/9 seems good on your schematic but pin 40 and 39 are still reversed!!!
    39 ->J16.SO
    40 ->J16.SI

    More than that I added the USB Host, it doesn't appear on your pinout.
    Note: USB HOST supports:

    • USB MIDI Device.
    • USB HID Keyboard and Mouse.


    attached the eagle lib.

    dipCoreF4_v2b.lib

     

  6. Hi,

    I risk being scolded because it's not exactly the subject, but it has a relation anyway ;)
    At the beginning I destroyed a lot of micromatch by wanting to crimp them with a vice or an unsuitable pliers.
    The official crimping pliers, probably solid gold, is extremely expensive, so I made adapters for the classic 10€ IDC crimping plier.

    Zhaolan-Tools Pince à sertir Outils de sertissage de réseau de Main pour Le  sertissage de câble d'ordinateur, Outil de connecteur d'IDC Outil de  sertissage: Amazon.fr: Cuisine & Maison
    IMG_2494.JPG?raw=1IMG_2493.JPG?raw=1

    there's a ribbon guide, a male and a female adapter. It works for all type and pin number.

    IMG_2489.JPG?raw=1IMG_2490.JPG?raw=1

    result is very clean!

    IMG_2491.JPG?raw=1


    Here the drawing, it requires a small CNC to fab it.

    Peter, Andy, it's a very good idea, It would be perfect if your tester could also make the MIDI cables and Jack 3.5. :)
    Very good cause it tests continuity and short-cut, Great!

    Have a good WE! Best regards
    Bruno

     

  7. Like I said before, it's not something easy.
    SD Card can be shifted to any predefined SPI port J16(default) J8/9(SRIO) and J19. They are unfortunately not defined over your requested pins.
    Moving the SPI to your desired pins is something deeper, and the functions defined on this pins will have to be moved somewhere else then move another somewhere else again.
    It's not in one unique file, it's multiple header files you have to modify in MIOS32.
    There's no quick answer for your request, it needs study and time.

    Best regards
    Bruno

     

  8. Hi,

    All pin of the STM32F4 are General purpose I/O(GPIO) but they have limited alternative functions.

    The pins for this SD Card are used for other ports/peripherals.

    PC10 is used for the onboard DAC(Disco)
    PC11 is the LCD Read/Write
    PD2 is the UART5 RX(MIDI)
    PC12 is the UART5 TX(MIDI)
    Etc...

    So you will have to remap more than this pins, cause the functions you remove has to move on an other pins, to get all MIOS32 ports available and avoid conflict.

    I strongly suggest to follow the regular pinout and add an external SD Card Socket

    ...Or you can download the datasheet, open a blank excel sheet and start a long adventure... ;)

    Note: your CPU must be a STM32F407xx for MIOS32 to work properly.

    Best regards
    Bruno

     

×
×
  • Create New...