preenfm Forum

PreenFM => preenfm2 and preenfm3 => Topic started by: Eamoex on June 29, 2022, 02:21:32 AM

Title: [Solved] New VanDaal build, control board does nothing
Post by: Eamoex on June 29, 2022, 02:21:32 AM
Hi,

I've succesfully built a PreenFM2 a few years ago and I love it.

I've assembled an FM3 kit from VanDaal. I flashed it using DeFuse. It boots to the main screen but I can't do anything from there. It does the exact same thing with the control board removed.


I've checked continuity of the board to board headers and pins and it's all right.

Don't know where to search next, any help much appreciated.
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 29, 2022, 09:58:07 AM
I've whipped out the magnifier and noticed that two legs of the CPU are shorted. Is this normal?
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 29, 2022, 08:02:31 PM
Like this:

(http://www.emyamstein.ch/media/forums/IMG_1220.jpg)
Title: Re: New VanDaal build, control board does nothing
Post by: Xavier on June 29, 2022, 09:12:14 PM
Hi,

I don't see your screenshot, but there are actually 2 pins shorted on the CPU.
It's because they're both connected at the pin level. That's not nice, i should have connected them outside.
But it's normal.

The leds you describe are normal.

The important pins for the control board (buttons and encoders) are the 5 pins connector GND,VCC + 3 other pins.

Can you try to check also the 3.3v on the 4 74HC165.
VCC is pin 16, opposite pin to the number 1 (white circle).
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 29, 2022, 09:24:37 PM
Thanks for your reply. I get 5v everywhere, not 3.3v (interboard Vcc/Gnd pins, both sides, and all 4 74HC165 power pins). Why? Did I miss some jumper?

EDIT: Or is 5v OK?

EDIT2:
I don't see your screenshot
That is most probably because my domain is non-secure http. Sorry. The picture was nice, though.  :)
Title: Re: New VanDaal build, control board does nothing
Post by: Xavier on June 29, 2022, 10:29:52 PM
Oops, you're right it's 5v on the control board VCC and 74HC165.

I think if the problem came from GND you'll get random button click.

The problem seems likely to be on the 3 other pins of the 5 pins connector (Clk, Load, Data)
Here is the bottom left of the CPU, you can see those 3 pins Clk, load and Data.

First check from the connector 2 by 2 that there's no shortcut.

Then it's not easy but it's doable, put one probe of the multimetter to the CPU pins and the other one to the pin of the connection. And check all 3 connections are OK..

Can you post a picture of your control board ?
I verify them before shipping, but there were one some time ago with a shifted 74hc165 and the board did not work at all.

Xavier
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 30, 2022, 08:28:29 AM
Thank you for your instructions.

Tested for shorts on the 5 interboard pins, on all possible combinations of pairs, on the main board and control board. No short detected.

Tested continuity from the 3 pins to the CPU legs, from the main board connectors and from the control board connectors when assembled. Continuity OK in all situations on all pins.

Attached is a series of pictures. I can't see any problem with the HC chips.

Weird... did a chip die?
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 30, 2022, 08:29:13 AM
Attachment size limit exceeded, additional post.
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 30, 2022, 08:29:30 AM
Attachment size limit exceeded, additional post.
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 30, 2022, 08:29:48 AM
Attachment size limit exceeded, additional post.
Title: Re: New VanDaal build, control board does nothing
Post by: Xavier on June 30, 2022, 10:05:11 AM
Thanks for the pictures. I don't see obvious problems.

Other questions :

When in the main firmware screen, do you get sound or midi indicator on the screen if you send midi notes ?

Can you enter the bootloader by pressing MENU button when powering the preenfm ?


Weird... did a chip die?

Or a button ?
Can you check that there's not continuity between up and down pins of each button ?
There should be continuity when you press the button.

Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 30, 2022, 08:55:12 PM
I do get MIDI indicator AND sound output when the firmware screen is on and I send MIDI note messages.

I cannot enter the bootloader by pressing MENU when powering. I’ve tried with the Boot/DFU jumper on and off. The MENU keypress looks simply ignored. What is the bootloader supposed to look like?

Continuity/interruption of buttons is as expected.

New thing: since I’ve tried the MENU button thing, I get an « SD CARD ERROR » message at boot, which disappears after ~2 seconds, and then the firmware screens appears exactly like it’s done before, and I can play notes.

EDIT: it really behaves as though there’s no control board whatsoever. The only sign of life in this board is the blue flash at boot. Then nothing.
Title: Re: New VanDaal build, control board does nothing
Post by: Xavier on June 30, 2022, 10:57:26 PM
I just realized you wrote:  "I flashed it using DeFuse."
It was supposed to be flashed with the correct firmware version.

What firmware version did you flash ?
New PCB (1.6-100) only works with firmware 1.09 and newer.
As written in firmware 1.09 : "With these new PCBs, the knobs and butons won't respond with earlier firmware."

Please flash latest version :
https://github.com/Ixox/preenfm3/releases
https://github.com/Ixox/preenfm3/wiki/Upgrade-firmware-(Flash-bootloader)

The pfm3 bootloader won't recognize the controlboard neither.
You'll need to flash it too.




Misc info :

The led on the control baord uses a different pins from the button/encoders.

Boot/DFU jumper on boots to System (STM32) bootloader.
Pressing the menu buton enteres the preenfm3 bootloader (which looks different from the firmware). It's written boot loader at the top.

SDCard error is something different, connection to the SD Card is the 4 top pins of the display.
This cannot be link to the fact that you press the MENU button.
Make sure the SD card is formated, contais the pfm3/ folder and is well inserted.



Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on June 30, 2022, 11:40:57 PM
What firmware version did you flash ?

Can't tell for sure right now but pretty sure it wasn't the one you give here. I just used the link from VanDaal's instructions. :-[ So this must be the culprit. I'll let you know tomorrow night.

SDCard error is something different

I thought so but when you're groping in the dark, anything looks important...

Boot/DFU jumper on boots to System (STM32) bootloader.
Pressing the menu buton enteres the preenfm3 bootloader (which looks different from the firmware). It's written boot loader at the top.

Thanks for this and the rest of the extra info.
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on July 01, 2022, 10:04:36 AM
Having no joy.

Used webdfu on latest Chrome to flash:
I get this error (see image) when uploading both files. Tried with two cables.

Now the display remains black. No blue LED activity. Unsurprisingly, bootloader doesn't display when I press MENU on boot.  :(

NOTE: I had initially flashed 0.90 using the link in the DfuSe section of this page (https://github.com/Ixox/preenfm3/wiki/Upgrade-firmware-(Flash-bootloader)). Trying to flash it again to revert to the previous state (when display was turning on) gives the same error in webdfu and results in the same situation.

I hear this is unbrickable. Let's see how much it actually is, because it very much looks like a block of terra cotta right now. :)
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on July 01, 2022, 10:45:04 AM
Using DfuSe on my Win10 laptop (on which I've intalled the dreaded STM USB driver) does allow me to revert back to 0.90 and recover the initial failed state (everything works except control board).

Situation:

on the PC

on the Mac (10.15.7)
Title: Re: New VanDaal build, control board does nothing
Post by: Xavier on July 01, 2022, 04:29:16 PM
As DfuSe seems to work for you, i'll create a file for it with latest bootlader/firmware later today. That can be usefull.

If you want to give another try yourself, only flash the pfm3 bootloader (p3_boot_1_09.bin) at 0x08000000 with webdfu on your Mac.

Then you should be able to boot in the pfm3 bootloader by pressing MENU while turning on.
From the pfm3 bootloader, you can easily flash the firmware (p3_0_110) that must be copied on the SD Card. Just read the screen instruction.

P.S : I confirm you cannot brick your preenfm3 : Boot0/DFU jumper on, always boots to a system (STM32) bootloader that cannot be erased.
Title: Re: New VanDaal build, control board does nothing
Post by: Eamoex on July 01, 2022, 05:20:05 PM
As DfuSe seems to work for you, i'll create a file for it with latest bootlader/firmware later today. That can be usefull.

Great, thanks for that.

If you want to give another try yourself, only flash the pfm3 bootloader (p3_boot_1_09.bin) at 0x08000000 with webdfu on your Mac.

Then you should be able to boot in the pfm3 bootloader by pressing MENU while turning on.
From the pfm3 bootloader, you can easily flash the firmware (p3_0_110) that must be copied on the SD Card. Just read the screen instruction.

Well, what do you know... it worked! Using address 0x08000000 instead of the default one seems to have done the trick, although webdfu still returned an error message at the end of the flash. After that, I was able to enter the pfm3 bootloader with the MENU button and flash the 110 firmware onboard... phew!

Thanks a lot for your support. Can be tagged as [SOLVED].
Title: Re: New VanDaal build, control board does nothing
Post by: Xavier on July 02, 2022, 06:51:47 PM
Oh nice ! Thanks for the update.  :)