Created Tue, 02 Aug 2011 18:47:13 +0000 by IanJ
Tue, 02 Aug 2011 18:47:13 +0000
Hi,
Had trouble installing the FTDI driver under Win7 64-bit but got there in the end via ftdichip VCP 64-bit driver and now I see COM3.
So, I selected the board and port and tried uploading a very small prog (toggling a simple DO only), however, all I get is UPLOADING TO I/O BOARD and it just sits there displaying the sketch size.....i.e. it compiles ok, just won't upload.
I've upload same sketch to an Arduino Mega 2560 without problem. Same port.
Any ideas..........?
Can I upload sketches using my USBTiny....?
Is the bootloader the same one as the 2560, can I try burning the bootloader via my USBTiny.....?
Ian.
Tue, 02 Aug 2011 18:59:42 +0000
Hi all,
Tried upload with a UNO32 and it went fine.......just wonder if I have a faulty MAX32..... :cry:
Ian.
Tue, 02 Aug 2011 19:14:50 +0000
I've upload same sketch to an Arduino Mega 2560 without problem. Same port.
On my system, the Max32 and Uno32 show up on different COM ports (so I'm wondering if your Max32 and Mega 2560 show up on different ports, as well?)... Are you sure you have the COM port right?
You might try using avrdude by hand to test the communication with your MAX32, like:
sh-4.1$ cd *mpide*
sh-4.1$ cd hardware/tools/avr/bin
sh-4.1$ ./avrdude -C ../etc/avrdude.conf -c stk500v2 -p pic32-360 -P COM17 -n
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude.exe: Device signature = 0x504943
avrdude.exe: current erase-rewrite cycle count is -1145324613 (if being tracked)
avrdude.exe: safemode: Fuses OK
avrdude.exe done. Thank you.
sh-4.1$
Avrdude is in the hardware/tools/avr/bin subdirectory of your mpide install directory. Obviously, you need your own COM port specified above.
Tue, 02 Aug 2011 19:21:49 +0000
On my system, the Max32 and Uno32 show up on different COM ports (so I'm wondering if your Max32 and Mega 2560 show up on different ports, as well?)... Are you sure you have the COM port right?
I wondered about that.......the Uno32 installs on COM4. But yes, the ONLY port available when the MAX32 is plugged in is COM3.
Update: Tried on another laptop, this time 32-bit Win7 and same problem. This time the FTDI drivers self-detected and installed themselves under COM9. So, tried updating the VCP drivers to the latest and re-booted. This time MAX32 detected as COM10, but still same problem, it compiles but won't upload.
Beginning to think the FTDI chip is okay but the CPU on the MAX32 is faulty.
Will try uploading bootloader to see if it takes.
Ian.
Tue, 02 Aug 2011 20:14:06 +0000
But yes, the ONLY port available when the MAX32 is plugged in is COM3.
And have you verified COM3 actually goes away when you unplug the Max32? That is important to note.
I have never had to install drivers from the FTDI site -- Windows should automatically download them from microsoft.com for you when you plug the Max32 in for the first time.
Can you try plugging the Max32 into a USB port you have never used for it before? Like the one going to your printer or something... That should get Windows to do a fresh install of drivers for that device instance -- you want to use the ones from the microsoft.com...
Tue, 02 Aug 2011 20:20:00 +0000
Yes COM3 disappears.
Only on 64-bit Win7 have I had to install FTDI drivers because the windows self-install fails, did that with standard Arduino boards also.
On the 32-bit Win7 laptop I just tried the drivers self installed fine so never needed the VCP drivers.
Have tried other USB ports, same problem.
PS. Just tried burning the bootloader via my USBTiny (which works fine with standard Arduino boards) and it fails at initialization. I had selected MAX32 as the board so assume it would choose the correct bootloader from it's own library.
Hmmmm, I just think the MAX32 Cpu isn't running or faulty.
Ian.
Tue, 02 Aug 2011 20:39:57 +0000
I just think the MAX32 Cpu isn't running or faulty.
Does the heartbeat LED blink when you power it on?
You would not happen to have a Pickit3 would you?
Wed, 03 Aug 2011 17:31:45 +0000
On power up I get the power LED LD3 on permanent, and the comms LED's LD1 & LD2 give a quick flash. Nothing else.
Here's the verbose output of an upload:-
Binary sketch size: 6576 bytes (of a 512000 byte maximum)
C:\Program Files (x86)\mpide-0022-chipkit-win-20110619\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\mpide-0022-chipkit-win-20110619\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -p32MX795F512L -cstk500v2 -P\\.\COM3 -b115200 -D -Uflash:w:C:\Users\IanJ\AppData\Local\Temp\build6747967524119432526.tmp\ChipKit_Max32_test.cpp.hex:i
avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, snip
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\mpide-0022-chipkit-win-20110619\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM3
Using Programmer : stk500v2
Overriding Baud Rate : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
Wed, 03 Aug 2011 20:38:18 +0000
Does LED LD4 (near expansion pin 38) blink at all on power-up? Just to be sure, are R34/R35 and Q2 next to it installed (someone else had an issue with that)?
If the LED is not blinking for 4 seconds or so on power-up, either the MCU is dead or the bootloader has not been programmed properly to it...
Unless you have a Pickit3 or something to try reprogramming the bootloader, I think you'll have to return the board...
(On your Uno32, I assume you see an LED blinking on power-up for those 4 seconds.)
Wed, 03 Aug 2011 22:26:52 +0000
Does LED LD4 (near expansion pin 38) blink at all on power-up? Just to be sure, are R34/R35 and Q2 next to it installed (someone else had an issue with that)? If the LED is not blinking for 4 seconds or so on power-up, either the MCU is dead or the bootloader has not been programmed properly to it... Unless you have a Pickit3 or something to try reprogramming the bootloader, I think you'll have to return the board... (On your Uno32, I assume you see an LED blinking on power-up for those 4 seconds.)
On the UNO LD4 blinks, but the MAX it's just dead from the start, and yes the transistor/resistors are fitted.
I've been have a good discussion with support and trying a few things, including trying my Pickit2 which recognizes the Uno but not the MAX.
The MAX is dead......so I'm getting an RMA.
I bought an UNO and MAX just to try out the technology as I use Arduino's a lot on my own personal projects........from home built Segway's, Quadcopters, RC Joysticks & even inside guitar amplifiers! I always wanted a faster board, although I have overclocked Arduino's before (16Mhz standard up to 28Mhz!).
My own speed testing of the UNO32 versus an Arduino Mega 2560 and simple repeat toggling a digital output revealed it is 9.2 times faster. That increase will of course vary depending on what instructions are used etc, but fun to see all the same.........
Thanks to all for the support I got here.
Ian.
Thu, 04 Aug 2011 08:45:36 +0000
I've been have a good discussion with support and trying a few things, including trying my Pickit2 which recognizes the Uno but not the MAX.
Unfortunately, I believe the MX7 is too new for the pickit2 -- I had to buy a pickit3 for it.
My own speed testing of the UNO32 versus an Arduino Mega 2560 and simple repeat toggling a digital output revealed it is 9.2 times faster.
Not sure what speeds you were getting, but we had some discussion on that here as well: [url]http://www.chipkit.org/forum/viewtopic.php?f=17&t=218[/url]
If you go to assembly code (or maybe get the optimizer turned on?), I'm pretty sure you can get >40MHz using the CPU... I'm pretty sure you should be able to get to 40MHz with the timer, too, but I could not immediately figure out the magic...
Sun, 11 Dec 2011 13:38:51 +0000
I have exactly the same problem, my chipkit max32 dont load any program and ld4 dont blink at startup.
I connect to other pc install drivers, try to download program with mpide, try to use avrdude and receive timeout.
I try to contact to customer service since last monday but they didnt response.
Sun, 11 Dec 2011 18:58:16 +0000
I have exactly the same problem, my chipkit max32 dont load any program and ld4 dont blink at startup. I connect to other pc install drivers, try to download program with mpide, try to use avrdude and receive timeout.
What operating system are you using?
When you plug in the Max32, have you verified that the FTDI driver is loaded and that the com port is seen on the OS?
What output do you get if you hold down shift when you try to upload?
Jacob
Mon, 12 Dec 2011 00:51:17 +0000
Im using windows XP, max32 is detected at com16 like USB Serial Port, and this is the output:
Binary sketch size: 6616 bytes (of a 520192 byte maximum)
C:\Documents and Settings\Administrator\Desktop\PIC\mpide-0022-windows-20110822\hardware/tools/avr/bin/avrdude -CC:\Documents and Settings\Administrator\Desktop\PIC\mpide-0022-windows-20110822\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -p32MX795F512L -cstk500v2 -P\\.\COM16 -b115200 -D -Uflash:w:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build2840117576738885698.tmp\Blink.cpp.hex:i
avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Documents and Settings\Administrator\Desktop\PIC\mpide-0022-windows-20110822\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM16
Using Programmer : stk500v2
Overriding Baud Rate : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
AVR Part : 32MX795F512L
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 4 0 no 2048 8 0 9000 9000 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 10 128 0 yes 524288 256 2048 4500 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Programmer Type : STK500V2
Description : Atmel STK500 Version 2.x firmware
Programmer Model: Unknown
avrdude: Send: . [1b] . [01] . [00] . [02] . [0e] . [03] . [90] . [85]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
Thanks in advance for your support.
Mon, 12 Dec 2011 02:28:34 +0000
Im using windows XP, max32 is detected at com16 like USB Serial Port, and this is the output:
Well, it looks like its defiantly talking to the serial port but there is no bootloader communicating with MPIDE. If you are sure that COM16 is tied to the Max32 my guess is that the bootloader is not flashed properly. Since the ld4 led is not on, I'm guessing that is the issue, but one more thing you can check:
You can verify the serial port by going to the control panel->system->hardware tab->device manager button. Once in the device manager look for COM & LPT ports. Click the + next to the ports and look for COM16 with the Max32 plugged in. Unplug the Max32 from the PC and make sure COM16 goes away. If it does not then the Max32 is not COM16. Plug the Max32 back in and make sure COM16 came back. If you get a different COM number then you may be talking to the wrong board.
Jacob
Mon, 12 Dec 2011 13:00:53 +0000
I confirm max32 port is gone when i unplugg the board, and i have disabled any firewall and any program that uses com port. I will call to microchip today.
Mon, 12 Dec 2011 15:54:35 +0000
Do you have any way to program a bootloader?
Mon, 12 Dec 2011 16:23:39 +0000
I dont have a programmer with support for pic32mx795, only programmer based on pickit2 without support for 3.3v devices. Is posible to get an RMA from Microchip?
Mon, 12 Dec 2011 16:28:22 +0000
I have no idea, did you buy it from Microchip or Digilent?
Mon, 12 Dec 2011 16:33:18 +0000
Microchipdirect, im student from mexico and get a discount price using my university email.