Main Menu

OS X support

Started by peterhull90, June 16, 2013, 01:46:51 PM

Previous topic - Next topic

peterhull90

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

Andy Ayre

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
Embedded Systems Academy, Inc.
support at esacademy dot com

peterhull90

That's tremendous, thanks very much for the reply.
Pete

Andy Ayre

#3
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
Embedded Systems Academy, Inc.
support at esacademy dot com

peterhull90

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

hubert

#5
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.

Andy Ayre

Please try COM9 and report back.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

hubert

#7
I tried them all (1 to 32) ... no luck  :'(

Hubert

Andy Ayre

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
Embedded Systems Academy, Inc.
support at esacademy dot com

hubert

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

Andy Ayre

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
Embedded Systems Academy, Inc.
support at esacademy dot com

hubert

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

Andy Ayre

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
Embedded Systems Academy, Inc.
support at esacademy dot com

hubert

I use OS X version 10.7.5.

Are the file permissions also the same?

Hubert

Andy Ayre

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
Embedded Systems Academy, Inc.
support at esacademy dot com