Quick question on OS X support -- I notice that the version of FM for OS X is somewhat behind Windows. I was hoping to be able to use it to program an LPC810 which is OK on the Windows version but not yet supported on OS X. Unfortunately (for me) lpc21isp doesn't work for LPC8xx parts either.
Is there a plan to update the OS X version or is that it now?
Thanks in advance,
Pete
There are some issues with the current development approach. We are investigated an alternative that looks promising and hopefully we can make something available in the next week or so.
Andy
That's tremendous, thanks very much for the reply.
Pete
Please give this *experimental* version a try (Flash Magic 7.50):
http://www.flashmagictool.com/download.html&d=FlashMagic.app.dmg
Notes:
To install double-click on the DMG file then drag the Flash Magic icon to Launchpad or Applications.
We have tested this with a genuine FTDI USB to RS232 cable. Any other cable type is untested.
The command line interface is not supported.
When started Flash Magic will automatically assign Mac serial ports to "COM Port" numbers. This is in a strict order. Open a terminal window and enter:
ls -l /dev/cu.* /dev/tty.*
This will show a list of serial ports available. The first port will be assigned to COM4, the second to COM5, etc. down the list.
On Macs each serial port is listed twice. First as "cu" and then as "tty". We have tested with "cu" and it worked for us. If it doesn't work for you then try the "tty" version.
Please let us know of any issues.
Andy
That's great. I am off on holiday today ;D for a week so I won't be able to test it straight away. I will report how it went once I'm back.
Pete
Hi there, I had the same problem (no LPC810 support) and was very delighted to see there is a new version. I did some testing but did not get it working. I have the lpc800-mini-kit.
Here is what I found:
ls -l /dev/cu.* /dev/tty.*
crw-rw-rw- 1 root wheel 18, 3 30 jun 00:11 /dev/cu.Bluetooth-Modem
crw-rw-rw- 1 root wheel 18, 1 30 jun 00:11 /dev/cu.Bluetooth-PDA-Sync
crw-rw-rw- 1 root wheel 18, 9 6 jul 10:05 /dev/cu.usbserial-A600K1PQ
crw-rw-rw- 1 root wheel 18, 2 30 jun 00:11 /dev/tty.Bluetooth-Modem
crw-rw-rw- 1 root wheel 18, 0 30 jun 00:11 /dev/tty.Bluetooth-PDA-Sync
crw-rw-rw- 1 root wheel 18, 8 6 jul 10:05 /dev/tty.usbserial-A600K1PQ
My serial device (usbserial-A600K1PQ) should be COM 6.
But when I try to connect (tools > terminal) with this port I get "Unable to communicate. (in use) Ensure no other...."
I have tried COM ports 1 to 8 and got the same result.
The connection is good when I connect to the serial device with bash command "screen"
screen /dev/tty.usbserial-A600K1PQ
After a reset on the lpc800 i get: Hello World!
I use OS X version 10.7.5.
Please try COM9 and report back.
Andy
I tried them all (1 to 32) ... no luck :'(
Hubert
Please open a terminal window and switch to the folder containing FlashMagic.app, then give us the output of the following commands:
ls -l FlashMagic.app/Contents/Resources/dosdevices
./FlashMagic.app/Contents/Resources/WineSkinStartupScript
Thanks, Andy
Hi Andy, here is the info you requested:
ls -l FlashMagic.app/Contents/Resources/dosdevices
total 104
lrwxrwxrwx 1 hhoef admin 23 5 jul 14:25 COM4 -> /dev/cu.Bluetooth-Modem
lrwxrwxrwx 1 hhoef admin 26 5 jul 14:25 COM5 -> /dev/cu.Bluetooth-PDA-Sync
lrwxrwxrwx 1 hhoef admin 26 5 jul 14:25 COM6 -> /dev/cu.usbserial-FTFK21HZ
lrwxrwxrwx 1 hhoef admin 24 5 jul 14:25 COM7 -> /dev/tty.Bluetooth-Modem
lrwxrwxrwx 1 hhoef admin 27 5 jul 14:25 COM8 -> /dev/tty.Bluetooth-PDA-Sync
lrwxrwxrwx 1 hhoef admin 27 5 jul 14:25 COM9 -> /dev/tty.usbserial-FTFK21HZ
lrwxrwxrwx 1 hhoef admin 10 5 jul 14:25 c: -> ../drive_c
lrwxrwxrwx 1 hhoef admin 13 5 jul 14:25 d:: -> /dev/rdisk2s1
lrwxrwxrwx 1 hhoef admin 21 5 jul 14:25 e: -> /Volumes/FlashMagic 2
lrwxrwxrwx 1 hhoef admin 13 5 jul 14:25 e:: -> /dev/rdisk1s1
lrwxrwxrwx 1 hhoef admin 13 5 jul 14:25 f:: -> /dev/rdisk1s2
lrwxrwxrwx 1 hhoef admin 11 5 jul 21:32 g:: -> /dev/rdisk2
lrwxrwxrwx 1 hhoef admin 1 5 jul 14:25 z: -> /
./FlashMagic.app/Contents/Resources/WineskinStartupScript
ln: /Applications/FlashMagic.app/Contents/Resources/dosdevices/COM4: File exists
ln: /Applications/FlashMagic.app/Contents/Resources/dosdevices/COM5: File exists
ln: /Applications/FlashMagic.app/Contents/Resources/dosdevices/COM6: File exists
ln: /Applications/FlashMagic.app/Contents/Resources/dosdevices/COM7: File exists
ln: /Applications/FlashMagic.app/Contents/Resources/dosdevices/COM8: File exists
ln: /Applications/FlashMagic.app/Contents/Resources/dosdevices/COM9: File exists
Hubert
That matches what I have. Please send output of:
rm ./FlashMagic.app/Contents/Resources/dosdevices/COM*
./FlashMagic.app/Contents/Resources/WineskinStartupScript
ls -l ./FlashMagic.app/Contents/Resources/dosdevices
Andy
Hi Andy,
Here is the result:
mac-mini:~ hhoef$ cd /Applications/
mac-mini:Applications hhoef$ rm ./FlashMagic.app/Contents/Resources/dosdevices/COM*
mac-mini:Applications hhoef$ ./FlashMagic.app/Contents/Resources/WineskinStartupScript
mac-mini:Applications hhoef$ ls -l ./FlashMagic.app/Contents/Resources/dosdevices
total 104
lrwxr-xr-x 1 hhoef admin 23 11 jul 22:48 COM4 -> /dev/cu.Bluetooth-Modem
lrwxr-xr-x 1 hhoef admin 26 11 jul 22:48 COM5 -> /dev/cu.Bluetooth-PDA-Sync
lrwxr-xr-x 1 hhoef admin 26 11 jul 22:48 COM6 -> /dev/cu.usbserial-A600K1PQ
lrwxr-xr-x 1 hhoef admin 24 11 jul 22:48 COM7 -> /dev/tty.Bluetooth-Modem
lrwxr-xr-x 1 hhoef admin 27 11 jul 22:48 COM8 -> /dev/tty.Bluetooth-PDA-Sync
lrwxr-xr-x 1 hhoef admin 27 11 jul 22:48 COM9 -> /dev/tty.usbserial-A600K1PQ
lrwxrwxrwx 1 hhoef admin 10 5 jul 14:25 c: -> ../drive_c
lrwxrwxrwx 1 hhoef admin 13 5 jul 14:25 d:: -> /dev/rdisk2s1
lrwxrwxrwx 1 hhoef admin 21 5 jul 14:25 e: -> /Volumes/FlashMagic 2
lrwxrwxrwx 1 hhoef admin 13 5 jul 14:25 e:: -> /dev/rdisk1s1
lrwxrwxrwx 1 hhoef admin 13 5 jul 14:25 f:: -> /dev/rdisk1s2
lrwxrwxrwx 1 hhoef admin 11 5 jul 21:32 g:: -> /dev/rdisk2
lrwxrwxrwx 1 hhoef admin 1 5 jul 14:25 z: -> /
I tested the connection and it worked fine with:
mac-mini:Applications hhoef$ cd FlashMagic.app/Contents/Resources/dosdevices/
mac-mini:dosdevices hhoef$ screen COM6
Hubert
This matches exactly how my Mac is set up. What version of OS X are you using? We have tested with 10.7 only.
Andy
I use OS X version 10.7.5.
Are the file permissions also the same?
Hubert
Actually there is a difference. My account is a member of the "staff" group and all the links to the COM ports belong to the staff group. Try this:
chmod 777 ./FlashMagic.app/Contents/Resources/dosdevices/COM*
ls -l ./FlashMagic.app/Contents/Resources/dosdevices
Then try using Flash Magic with COM6 and COM9.
Andy
Hi Andy,
I got it!
This is my directory list (/Applications/FlashMagic.app/Contents/Resources/dosdevices):
lrwxr-xr-x 1 admin admin 27 Jul 16 00:25 COM10 -> /dev/tty.Bluetooth-PDA-Sync
lrwxr-xr-x 1 admin admin 32 Jul 16 00:25 COM11 -> /dev/tty.DiegoAntunessiPhone-Wir
lrwxr-xr-x 1 admin admin 32 Jul 16 00:25 COM12 -> /dev/tty.DiegoAntunessiPhone4-Wi
lrwxr-xr-x 1 admin admin 18 Jul 16 00:25 COM13 -> /dev/tty.usbserial
lrwxr-xr-x 1 admin admin 23 Jul 16 00:25 COM4 -> /dev/cu.Bluetooth-Modem
lrwxr-xr-x 1 admin admin 26 Jul 16 00:25 COM5 -> /dev/cu.Bluetooth-PDA-Sync
lrwxr-xr-x 1 admin admin 31 Jul 16 00:25 COM6 -> /dev/cu.DiegoAntunessiPhone-Wir
lrwxr-xr-x 1 admin admin 31 Jul 16 00:25 COM7 -> /dev/cu.DiegoAntunessiPhone4-Wi
lrwxr-xr-x 1 admin admin 17 Jul 16 00:25 COM8 -> /dev/cu.usbserial
lrwxr-xr-x 1 admin admin 24 Jul 16 00:25 COM9 -> /dev/tty.Bluetooth-Modem
lrwxr-xr-x 1 admin admin 10 Jul 5 09:25 c: -> ../drive_c
lrwxr-xr-x 1 admin admin 21 Jul 5 09:25 d: -> /Volumes/FlashMagic 1
lrwxr-xr-x 1 admin admin 13 Jul 5 09:25 d:: -> /dev/rdisk2s1
lrwxr-xr-x 1 admin admin 21 Jul 5 09:25 e: -> /Volumes/FlashMagic 2
lrwxr-xr-x 1 admin admin 13 Jul 5 09:25 e:: -> /dev/rdisk1s1
lrwxr-xr-x 1 admin admin 13 Jul 5 09:25 f:: -> /dev/rdisk1s2
lrwxr-xr-x 1 admin admin 1 Jul 5 09:25 z: -> /
I used COM13 to program the device, this is a prolific USB->Serial converter plugged on a MAX3222
that connects to the lpc800 mini-kit.
Regards, Diego
It seems to work OK so far for me. I have not actually programmed the flash but I can get the CPU id and open up a terminal so I believe it will be fine. I'll report back when I've done the programming.
My set-up: LPC800 mini board with LPC810, OS X 10.8.4, SILABS CP2102-based USB-serial converter. The com ports are set up like this
lrwxr-xr-x 1 peterhull admin 23 15 Jul 21:58 COM4 -> /dev/cu.Bluetooth-Modem
lrwxr-xr-x 1 peterhull admin 26 15 Jul 21:58 COM5 -> /dev/cu.Bluetooth-PDA-Sync
lrwxr-xr-x 1 peterhull admin 22 15 Jul 21:58 COM6 -> /dev/cu.SLAB_USBtoUART
lrwxr-xr-x 1 peterhull admin 24 15 Jul 21:58 COM7 -> /dev/tty.Bluetooth-Modem
lrwxr-xr-x 1 peterhull admin 27 15 Jul 21:58 COM8 -> /dev/tty.Bluetooth-PDA-Sync
lrwxr-xr-x 1 peterhull admin 23 15 Jul 21:58 COM9 -> /dev/tty.SLAB_USBtoUART
and I used COM9 to connect at 115000 baud.
Using Wine is not ideal I suppose but it does work and beggars can't be choosers!
Pete
Thanks for posting feedback! Yes, using Wine is not ideal but it saves a huge amount of development effort for us and makes regular updates possible.
Andy
Sorry for the late response.
Changing permissions did not help for me (home system), but...
I tested it at my work Mac and there it worked perfectly. I will investigate if there is a driver difference between the two systems.
Hubert
If you could report back on what you find that would be greatly appreciated!
Same version of OS X on both Macs?
Andy
Work Mac (flashmagic works fine):
OS version 10.8.4
USB info:
FT232R USB UART:
Product ID: 0x6001
Vendor ID: 0x0403 (Future Technology Devices International Limited)
Version: 6.00
Serial Number: A600K1PQ
Speed: Up to 12 Mb/sec
Manufacturer: FTDI
Location ID: 0xfa123000 / 5
Current Available (mA): 500
Current Required (mA): 90
ls -la /dev/*A600*
crw-rw-rw- 1 root wheel 18, 9 17 jul 17:57 /dev/cu.usbserial-A600K1PQ
crw-rw-rw- 1 root wheel 18, 8 17 jul 17:57 /dev/tty.usbserial-A600K1PQ
ls -la COM*
lrwxr-xr-x 1 hubert admin 24 17 jul 17:58 COM10 -> /dev/tty.PL2303-004012FA
lrwxr-xr-x 1 hubert admin 27 17 jul 17:58 COM11 -> /dev/tty.usbserial-A600K1PQ
lrwxr-xr-x 1 hubert admin 23 17 jul 17:58 COM4 -> /dev/cu.Bluetooth-Modem
lrwxr-xr-x 1 hubert admin 26 17 jul 17:58 COM5 -> /dev/cu.Bluetooth-PDA-Sync
lrwxr-xr-x 1 hubert admin 23 17 jul 17:58 COM6 -> /dev/cu.PL2303-004012FA
lrwxr-xr-x 1 hubert admin 26 17 jul 17:58 COM7 -> /dev/cu.usbserial-A600K1PQ
lrwxr-xr-x 1 hubert admin 24 17 jul 17:58 COM8 -> /dev/tty.Bluetooth-Modem
lrwxr-xr-x 1 hubert admin 27 17 jul 17:58 COM9 -> /dev/tty.Bluetooth-PDA-Sync
Home Mac (flashmagic does not works):
OS version 10.7.5
USB info:
FT232R USB UART:
Product ID: 0x6001
Vendor ID: 0x0403 (Future Technology Devices International Limited)
Version: 6.00
Serial Number: A600K1PQ
Speed: Up to 12 Mb/sec
Manufacturer: FTDI
Location ID: 0xfd630000 / 3
Current Available (mA): 500
Current Required (mA): 90
ls -la /dev/*A600*
crw-rw-rw- 1 root wheel 17, 13 16 jul 22:41 /dev/cu.usbserial-A600K1PQ
crw-rw-rw- 1 root wheel 17, 12 16 jul 22:41 /dev/tty.usbserial-A600K1PQ
ls -la COM*
lrwxrwxrwx 1 hhoef admin 23 13 jul 15:39 COM4 -> /dev/cu.Bluetooth-Modem
lrwxrwxrwx 1 hhoef admin 26 13 jul 15:39 COM5 -> /dev/cu.Bluetooth-PDA-Sync
lrwxrwxrwx 1 hhoef admin 17 13 jul 15:39 COM6 -> /dev/cu.usbserial
lrwxrwxrwx 1 hhoef admin 26 13 jul 15:39 COM7 -> /dev/cu.usbserial-A600K1PQ
lrwxrwxrwx 1 hhoef admin 24 13 jul 15:39 COM8 -> /dev/tty.Bluetooth-Modem
lrwxrwxrwx 1 hhoef admin 27 13 jul 15:39 COM9 -> /dev/tty.Bluetooth-PDA-Sync
lrwxrwxrwx 1 hhoef admin 18 13 jul 15:39 COM10 -> /dev/tty.usbserial
lrwxrwxrwx 1 hhoef admin 27 13 jul 15:39 COM11 -> /dev/tty.usbserial-A600K1PQ
Hubert
You could try changing the permissions of the symbolic links to match, although it probably won't help.
chmod 755 COM*
Andy
Hello,
I have strange problem at work of terminal in version 7.5 on Mac OS 10.8.5. After run terminal, it's receiving data from device only around 5 second and stops working. Transmit data to device is posible at all times.
ISP programing works OK.
Daniel
I recommend you use a different terminal rather that the one that is built in.
Andy
Hi Pete,
2014-10-14: At this time I knew that this is not a solution for your problem. Reason why is in the Reply #25 & #26.
Very sorry. Using COMn as a FM's default is a best way.
Yutaro
------( 2014-10-13 posted message below )-----
Now it works fine. But it's too late ?
I gave it up last year because I met with a problem same as you.
For these past several days, I searched for the websites and challenged it again, but the result was no use.
However, I had solution by the problems this time.
The big difference is a thing with the following items.
a. 9600 [bps]
b. Enable (check mark) the "Use my timeouts for ISP operations" of "Timeouts" of
"Advanced Options..." in menu bar.
Next time you might have a same problem we had been, the solution is do the symbolic link again with ln command.
My environment:
- MacBook Air 2012 Mid model
- Mac OS X Version 10.9.5
- Silicon Lab CP210x Driver for Mac (Mac_OSX_VCP_Driver.zip)
- FlashMagic Version 8.16 ( use FM as abbr. )
- LPXpresso Version 7.4.0 ( 2014-09-16 )
- Target MCU named MARY MB with SiLab CP2104 USB chip
( NXP LPC1114LV/301, Oscillator: 12 [MHz], so NO Xtal ==> slow [bps] )
- USB cable : A to mini-B
1. Turn on the FlashMagic.app.
2. Open Terminal window.
$ cd /Applications/FlashMagic.app/Contents/Resources/dosdevices
$ ls ; <--- check the current info if COM3 disappeared.
; Next time, the COM3 will disappeared if FlashMagic abort.
3. Connect the target MCU via USB cable.
- Target program will running if programmed.
4. Go back to the Terminal window.
$ ls /dev/cu*
/dev/cu.Bluetooth-Incoming-Port /dev/cu.SLAB_USBtoUART
/dev/cu.Bluetooth-Modem
$ ls
if symbolic link COM3 is not exist then type the following command
$ ln -s /dev/cu.SLAB_USBtoUART COM3
If some settings are wrong or not fit for FM and/or TargetMCU then
FlashMagic for Mac (v8.16) will often abort with no messages or hang up on START push.
I suppose it caused COM3 disappeared.
Flash Magic Settings:
Step 1:
COM Port: COM3
Baud Rate: 9600 ; NOT 115200
Interface: None (ISP)
Oscillator [MHz]: 12
Step 2:
"Erase blocks used by Hex File" <-- Enable
Step 3:
Step 4:
"Fill unused flash" <-- Enable
Advanced Options:
Hardware Config:
"Use DTR and RTS to control RTS and ISP pin" <-- Enable
Timeouts:
"Use my timeouts for ISP operations" <-- Enable
, and then push the "OK" button.
After pushing the "Start" button, if you have this dialogue message below,
but the way left here is merely choose one "Yes".
Warning Message from FlashMagic :
The device signature does not match the expected values, Accessing a
device using the wrong protocol could the render the device unusable.
Do you want to continue ?
Yes or No
Yutaro
So the root cause is the symbolic link to COM3 disappearing or missing?
On startup FM deletes all symbolic links and recreates them. Please try doing the following and letting us know the result (the following is in a bash script):
rm -rf /Applications/FlashMagic.app/Contents/Resources/dosdevices/COM*
portnum=4
for f in /dev/cu.*
do
echo "$f - COM$portnum"
ln -s "$f" "/Applications/FlashMagic.app/Contents/Resources/dosdevices/COM$portnum"
(( portnum += 1 ))
done
Also could be that you are running FM without enough permissions to create the symbolic links?
Andy
Hi Andy ( & Pete ),
I may have to apologize for former comment (Reply #24) I posted that is NOT a solution for Pete's problem.
I have written wrong comment by the matter that I overlooked.
In Andy's Reply #25:>
On startup FM deletes all symbolic links and recreates them. ...
I just knew the function of the initial movement of FM in what Andy pointed out above.
I connected the target, and then checked the symbolic links on startup FM.
$ cd /Applications/FlashMagic.app/Contents/Resources/dosdevices
$ ls -l COM*
lrwxr-xr-x 1 yutaro admin 31 Oct 14 22:24 COM4 -> /dev/cu.Bluetooth-Incoming-Port
lrwxr-xr-x 1 yutaro admin 23 Oct 14 22:24 COM5 -> /dev/cu.Bluetooth-Modem
lrwxr-xr-x 1 yutaro admin 22 Oct 14 22:24 COM6 -> /dev/cu.SLAB_USBtoUART
lrwxr-xr-x 1 yutaro admin 32 Oct 14 22:24 COM7 -> /dev/tty.Bluetooth-Incoming-Port
lrwxr-xr-x 1 yutaro admin 24 Oct 14 22:24 COM8 -> /dev/tty.Bluetooth-Modem
lrwxr-xr-x 1 yutaro admin 23 Oct 14 22:24 COM9 -> /dev/tty.SLAB_USBtoUART
COM6 (that I overlooked) is appeared as a correct symbolic link for my target MCU.
FM's settings:
Step 1:
Baud Rate: 115200 [bps] ;
Advanced Options:
Hardware Config:
"Use DTR and RTS to control RTS and ISP pin" <-- Enable
Timeouts:
"Use my timeouts for ISP operations" <--- No check
By using COM6, my problem has gone away, and it works VERY FINE very fast.
Thank you, Andy.
So I think for now it should remove the last post (Reply #24).
Yutaro
Very useful topic, helps me as well