Jump to content

SeqV4 Stm32 IIC MIDI problems?


Hawkeye

Recommended Posts

Hola,

 

me is extending my old Core32 SEQV4 for moaaar MIDI ports... :smile:

 

Are there any known issues with the old IIC MIDI modules (MIDI out only) in conjunction with an old Core32/STM32 SeqV4 (running @ latest firmware, compiled with old toolchain, not newlib-nano enabled)?

 

I installed four IIC MIDI modules, jumpered them to different IIC addresses and the SEQ only recognizes the first one, sporadically also recognizes the second one (in about one out of ten boot times). The 5V voltages seem ok (stabilized 2A 5V PSU, got around 4.75V at the MIDI IIC modules).

 

I swapped through the IIC MIDI modules (installed every one as single first IIC1 module), and they all work individually.

The IIC bus is also wired correctly, imho... Has anyone got any idea?

 

It is not really important, I managed to get IN3/OUT3 and IIC1 running and thus already have two more out ports, am just curious, what is going on :smile:.

 

Thanks and many greets!

Peter

Edited by Hawkeye
Link to comment
Share on other sites

Hola Altitude!

 

Thanks for your answer - yes, the bootloader is up to date.

 

It is really not important, please don´t pull your hair :) - will upgrade to the new STM32F4 based core and check IIC MIDI again, when it is available - 192KB of RAM will allow for more SEQ goodness, maybe even 1024 step patterns as a Christmas present? :-)

 

Many greets!

Peter

Link to comment
Share on other sites

Thanks for your feedback, ilmenator!

 

It is good to know, that it should work, maybe it is because of my adaptations to get the VFDs running which required some (probably improperly done :)) driver hacking or the long SRIO chains I am using, or the old compiler toolchain i am using (did not manage to update yet, am compiling on FreeBSD, which complicates things :))...

 

But no worries for now - will wait for the new core and then update everything properly :-). Am really looking forward to the STM32F4, awesome specs, cheap price :)

 

Many greets,

Peter

Link to comment
Share on other sites

Last saturday I checked a Quad-IIC board with the new compiler on a STM32F1, STM32F4 and LPC17 - still works.

 

What happens at your side if only the second, third or fourth uC is stuffed, and all other PICs are removed?

 

Btw.: the fastest way to check the availability of the IIC slaves is to enter the "system" command in MIOS Terminal.

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Hi Thorsten,

 

thanks for your time and your thoughts! I have four separate (old) MIDI IIC modules from SmashTV, all jumpered to different IIC addresses.

 

When I install two modules on the IIC bus and power the SEQ up, normally only one (IIC1) gets detected. I can successfully output MIDI over it. When I remove this module from the IIC bus (and don´t change the jumper setting on the other module, its IIC address is not 0x10), the other module gets detected anyways and appears as IIC1 module.

 

Now here comes the mystery: when the SEQ has been powered off for a prolonged time (say at least one minute), sometimes two IIC modules will be detected, but only, if there are only two modules on the IIC chain. If I have all four installed, only one will get detected (and is usable). If I do quick power offs/ons (less than 10 seconds of waiting), always only one module will be detected. Strange, isn´t it?

 

Please don´t waste energy on that matter, it is not important, I just thought maybe someone has a clue and says... of course, you have to do this and that and it will work :smile:

 

Thanks & many greets!

Peter

Edited by Hawkeye
Link to comment
Share on other sites

Peter - you reported this, we have to solve this! ;-)

 

It sounds like a power issue, which could be caused by a loose connection or bad solder joint.

Check also, that no part is missing. I noticed some time ago, that especially the 100 nF bypass caps are crucial for the PIC16F88

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Hi Thorsten,

 

yes, you´re right, perfection or nothing :).

 

Just checked the IIC modules, everything seems to be present, capacitors C1-C4 with the right values are there...

 

As a further test, I just connected the MIDI IIC modules on my spare LPC17 core, which is now running the same version of SEQV4 (compiled with the same toolchain but with LPC17 target). The LPC17 core is USB bus powered and has nothing else (no frontpanel or displays) attached.

Result: exact same behaviour - it sometimes detects both IIC 1 and 2,  most often only IIC 1 (checked via terminal). I used the same IIC bus cabling (same wires and connectors).

 

Then I uploaded a default build of SEQ V4 (and the newest bootloader just to be sure) downloaded directly from ucapps.de - no change....


It is getting late, thanks for your help, while testing I discovered that MIDI port rescan "Newbie Mode" easter egg in MIOS Studio, that made my day, thanks! :).

 

Will report back with new findings, at the moment i would say something with my IIC cabling seems really messed up :)

 

Many greets and have a nice evening!

Peter

Link to comment
Share on other sites

Hi Thorsten,

 

a) Wow! Thanks for your help, please tell me, whenever I can bring another crate of beer (and we play a bit of music)! :-D

 

b) Just found the problem, thanks to your tool - all MIDI IIC modules thought they were module "0".

Reason: because i just followed the "out only" schem here: http://www.ucapps.de/mbhp/mbhp_iic_midi_out_only.pdf

without thinking... i soldered in the jumper headers for the selection, but without the necessary resistors R4 and R5 as seen in the "full" schem:

http://www.ucapps.de/mbhp/mbhp_iic_midi_out_only.pdf

 

After quickly soldering them in, it all works fine now, many thanks again! :-D

 

Bye and many greets,

Peter

Link to comment
Share on other sites

Ha! Somehow I knew that something could be incomplete at my side when you are not able to get these modules running! :)

 

I added the jumpers to the out_only schematic. The original "out_only" module was only intended as a workaround for a UART bug in the PIC18F4620, but today the module is mainly used in conjunction with MIOS32, and people prefer to use more than one...

 

Best Regards, Thorsten.

 

P.S.: music session: let's plan this for mid december once I've vacation :)

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...
×
×
  • Create New...