2016-12-18 06:11 AM
Hello all! How's this for my very first question
I purchased a 3d Printer on clearance with a tag that says Does not Start up. No warranty. I was ok with that. As I'm a developer and a hardware hacker I knew I was buying a project not a printer. I have experience with Atmel, wrote my own firmware for a Cricut cutting machine, so I'm comfortable here.
The situation I believe is that the store had upgraded the firmware on this machine but used the wrong firmware. There is much discussion about this situation on the internet from this particular brand of printers. Overall, the quality of the printer is great. So now the problem.
The images show that the MCU is an STM32F407ZTG6. I can see clearly that it has SWD header yay. So I connected the STLink board from my Nucleo to it, removing the jumpers so that I can use it to program an external device, connected the 3.3v power pad on the 3D Printer's board to the 3v3 header on the Nucleo, and I can tell the board has power. However, STLink does not see the target. Anyone have some ideas to help revive this guy?
2016-12-19 09:22 AM
One part of me suspected the disabling of the SWD interface, but the other says why would they put a header on the board clearly marked as SWD if they disabled it...
Here is what I have thus far:
Connected STLink board from the NucleoF411 to the printer's motherboard.
VDD, SWCLK, SWIO, GND > STM32F407 pins. Remove jumpers on STLink to indicate external target.
There is a pad labeled 3v3 on the target board. Connected that to 3v3 out from nucleo.
Powered STLink board from USB port
Attempt connection from STLINK, no go. At this point STLink goes legs up and have to remove USB and reconnect. Attempted connect under reset , same result.
I ordered a new chip from Mouser. Looks like USPS ate it. Have to get another
:(
I'm seriously considering just getting the ST 3d printer board Since this printer is all closed source anyway..
2016-12-19 09:28 AM
You shouldn't need to connect VDD, especially if they differ (ie 3V vs 3.3V), the stand-alone ST-LINK pod needs a Target Voltage for it's buffers, the one on the NUCLEO/DISCO board lacks those, and connects directly to the CPU.
Other thoughts would be to see if the chip is alive, and if the System Loader works. Pulling BOOT0 high might permit connectivity via the DFU mode (comes up on the PC as an STM32 DFU device), or connectivity via USART1, or perhaps USART3, where an 0x7F byte sent at 9600 8E1 (Even Parity) should respond with an 0x79 byte. On the power side one could look at the state of the NRST pin and for 1.25V on the VCAP1/VCAP2 pins.
2016-12-19 09:45 AM
Well the developers tend to like debugging on complete/functional hardware, and production could use it for boundary scan and programming. Locking the chip down makes sense for a lot of commercial reasons, and is something the firmware can enable.
Per RM0090
• Level 2: debug/chip read protection disabled
The read protection Level 2 is activated by writing 0xCC to the RDP option byte. Whenthe read protection Level 2 is set:– All protections provided by Level 1 are active.– Booting from RAM or system memory bootloader is no more allowed.– JTAG, SWV (single-wire viewer), ETM, and boundary scan are disabled.– User option bytes can no longer be changed.– When booting from Flash memory, accesses (read, erase and program) to Flashmemory and backup SRAM from user code are allowed.Memory read protection Level 2 is an irreversible operation. When Level 2 is activated,
the level of protection cannot be decreased to Level 0 or Level 1.2016-12-19 11:09 AM
Yes if the word 'production' has any REAL meaning behind it, most real production shops would know these safeguards and employ them. And then standing behind the 'developer' - there's the 'bean counter' that makes you take off all the unnecessary *hardware* to save a penny per unit. But here IS a CONNECTOR! THIS subject- I suspect maybe the 3D printer here is pretty wet behind the ears and 'Production' might have been a first run of JUST enough run to call - 'PRODUCTION' Kind of why I said- - Just cut it off. :-).
Not that I approve but, some of my production runs start with - ' Oh look that worked.... SHIP IT! '
Oh how nice it would be to have time to play.
2016-12-19 12:14 PM
A bit like the Fuse bits in Atmel 8 bit mcus.
2016-12-19 12:24 PM
Quite probably, protection fuses and OTP (one time programmable) memories are quite common.
Also application software can also reconfigure the pins quite early, but you can usually work around such things by using 'connect under reset' or BOOT0 High methods.
2016-12-19 02:21 PM
Mark,
I did the exact same thing as you. I mean the *exact* same thing. I bought the same printer as an 'open box, no warranty, no return' item for about half price. The difference is that my printer booted up but had a runaway extruder heater circuit. I swapped out the shorted MOSFET and everything was good to go.
I'm actually printing out a case for my STM32F072-Discovery board right now, or I'd flip the printer on its end and have a go at it. I traced the SWCLK/SWDIO pins to the the external connector board, but didn't even notice the 3 pin connector right by the chip. Thanks for pointing that one out to me!
Do you get any joy at all when you power on the printer? Does the LCD light up? Does it play the little song? Anything?
Another thing that might prove useful: The 'built-in' SD card has a subdirectory called 'sys' that contains a file called 'dreamer.bin'. It does *not* look like a proper binary image to me (first vector does not look like a stack pointer address, etc.) so it might be encrypted in some manner. I can send you mine if you think it might help. I have not even thought about 'upgrading' the firmware on this printer. This is no Arduino.
:)
Good luck with your resurrection. The printer is worth fixing. Even if you have to buy a new main-board (~$80-$90, depending on source).
2016-12-19 05:22 PM
All the led's come on the board and the driver board But no chirp from windows. What's your revision code on the mainboard?
2016-12-19 05:29 PM
It appears to be the same as yours FlashForge CoreBoard REV J. See attached photo.
2017-03-17 06:30 AM
'connect under reset' saved our lifes! Thanks!!