Author Topic: OS X support  (Read 17508 times)

peterhull90

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
OS X support
« on: June 16, 2013, 01:46:51 pm »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: OS X support
« Reply #1 on: June 18, 2013, 04:56:29 am »
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

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: OS X support
« Reply #2 on: June 18, 2013, 06:02:23 am »
That's tremendous, thanks very much for the reply.
Pete

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: OS X support
« Reply #3 on: July 05, 2013, 06:18:08 am »
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
« Last Edit: December 11, 2013, 12:48:09 am by Andy Ayre »
Embedded Systems Academy, Inc.
support at esacademy dot com

peterhull90

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: OS X support
« Reply #4 on: July 05, 2013, 06:27:50 am »
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

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: OS X support
« Reply #5 on: July 06, 2013, 02:31:29 am »
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.
« Last Edit: July 06, 2013, 03:44:08 am by hubert »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: OS X support
« Reply #6 on: July 06, 2013, 07:55:56 am »
Please try COM9 and report back.

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

hubert

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: OS X support
« Reply #7 on: July 06, 2013, 11:33:06 am »
I tried them all (1 to 32) ... no luck  :'(

Hubert
« Last Edit: July 06, 2013, 01:25:08 pm by hubert »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: OS X support
« Reply #8 on: July 08, 2013, 02:17:49 am »
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

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: OS X support
« Reply #9 on: July 08, 2013, 01:19:06 pm »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: OS X support
« Reply #10 on: July 10, 2013, 02:40:28 am »
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

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: OS X support
« Reply #11 on: July 11, 2013, 01:57:58 pm »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: OS X support
« Reply #12 on: July 12, 2013, 01:56:20 am »
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

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: OS X support
« Reply #13 on: July 12, 2013, 02:04:43 am »
I use OS X version 10.7.5.

Are the file permissions also the same?

Hubert

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: OS X support
« Reply #14 on: July 12, 2013, 02:46:42 am »
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