Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pinguino 18F2550 and bootloader v4.8 : run led ?
18-04-2013, 10:38 AM,
#11
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
(18-04-2013, 09:23 AM)regis Wrote: Hi,
I made some tests yesterday evening and I found only one bug in pin.h
As USERLED (RA4) was defined as pin 18 instead of pin 29, I was unable to blink the built-in led of my Pinguino. That's why I thought I had the same issue as you.
I tried some examples (CDC, LCD, I2C, ...) and everything works.
Please try with last x.4 revision (765) and tell me.

Thanks Régis I will try ... after spending 1h trying to install svn version on W8, because on my OSX it still doesn't upload (and in r765 sdcpp is missing) ... I was using windows easy package, so now i had to install python and dependencies ... open source (in general) has a price ... time instead of money (that's my opinion) !
Reply
18-04-2013, 12:06 PM,
#12
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
(18-04-2013, 10:38 AM)dadwarf Wrote: because on my OSX it still doesn't upload (and in r765 sdcpp is missing) ...

Just to clarify: OS X 8 bit sdcpp is not missing - it is not used and so was removed.
Reply
18-04-2013, 02:23 PM, (This post was last modified: 18-04-2013, 05:10 PM by dadwarf.)
#13
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
(18-04-2013, 12:06 PM)Pinguino Wrote:
(18-04-2013, 10:38 AM)dadwarf Wrote: because on my OSX it still doesn't upload (and in r765 sdcpp is missing) ...

Just to clarify: OS X 8 bit sdcpp is not missing - it is not used and so was removed.

Probably but It won't compile if it is not present !

Quote:OSX :

/Users/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic16/main.c:670 setting interrupt vector addresses 0xc00
sh: sdcpp: command not found
at 1: warning 190: ISO C forbids an empty source file
Processor: 18f2550
sdcc: Calling preprocessor...
sdcc: Generating code...

Windows (sdcpp.exe is present but i need to add bin path to $PATH):

'sdcpp' n'est pas reconnu en tant que commande interne
ou externe, un programme ex‚cutable ou un fichier de commandes.
Processor: 18f2550
sdcc: Calling preprocessor...
sdcc: Generating code...
/dvpt/sdcc/sources/sdcc/src/pic16/main.c:686 setting interrupt vector addresses 0xc00
at 1: warning 190: ISO C forbids an empty source file

About OSX I have a question : when i connect my Pinguino 18F2550 v4.8 to a Windows (8) or a Linux (squeeze), if it is in bootloader mode the run led (user led) blinks. But when I connect it to my OSX (10.8 Mountain Lion) it didn't blink ! that's probably why I can't upload : do I need to install a drivers ? The Pinguino is in listed in the system report. But IDE acts like there is nothing connected !

Quote:Pinguino:
Product ID: 0xfeaa
Vendor ID: 0x04d8 (Microchip Technology Inc.)
Version: 4,08
Speed: Up to 12 Mb/sec
Manufacturer: R.Blanchot
Reply
18-04-2013, 05:08 PM,
#14
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
(18-04-2013, 09:23 AM)regis Wrote: Hi,
I made some tests yesterday evening and I found only one bug in pin.h
As USERLED (RA4) was defined as pin 18 instead of pin 29, I was unable to blink the built-in led of my Pinguino. That's why I thought I had the same issue as you.
I tried some examples (CDC, LCD, I2C, ...) and everything works.
Please try with last x.4 revision (765) and tell me.

Perfect ! Thanks again it works well with r765 and bootloader v4.8
Reply
18-04-2013, 05:30 PM,
#15
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
Smile

(18-04-2013, 05:08 PM)dadwarf Wrote: Perfect ! Thanks again it works well with r765 and bootloader v4.8
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
19-04-2013, 12:32 AM,
#16
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
(18-04-2013, 02:23 PM)dadwarf Wrote: [quote='Pinguino' pid='7017' dateline='1366279608']
Just to clarify: OS X 8 bit sdcpp is not missing - it is not used and so was removed.


Quote:Probably but It won't compile if it is not present !

OSX :

/Users/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic16/main.c:670 setting interrupt vector addresses 0xc00
sh: sdcpp: command not found
at 1: warning 190: ISO C forbids an empty source file
Processor: 18f2550
sdcc: Calling preprocessor...
sdcc: Generating code...

Sorry, my fault. You are correct. Everything I read said that 8-bit used C not C++ and despite that I did test compiling without it to be sure. Looks like the flaw in my logic was that I had renamed the file instead of deleting it and possibly had not restarted the IDE, and so it still compiled successfully. rev766 has the binary restored.

Regis: Pinguino startup does not check for the C++ binary but obviously it should:

Code:
Pinguino started at Fri Apr 19 08:05:52 2013

Python version is OK (>=2.5)
System host is Mac OS X
8-bit compiler OK.
32-bit compiler OK.
wx.python successfully loaded

(18-04-2013, 02:23 PM)dadwarf Wrote: About OSX I have a question : when i connect my Pinguino 18F2550 v4.8 to a Windows (8) or a Linux (squeeze), if it is in bootloader mode the run led (user led) blinks. But when I connect it to my OSX (10.8 Mountain Lion) it didn't blink ! that's probably why I can't upload : do I need to install a drivers ? The Pinguino is in listed in the system report. But IDE acts like there is nothing connected !

Did you install libusb? If not, see the Wiki instruction I wrote at http://wiki.pinguino.cc/index.php/Mac_OS_X which cover Snow Leopard and Mountain Lion. As a matter of interest, which version of OS X are you running?
Reply
19-04-2013, 08:39 AM,
#17
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
SDCPP is not a C++ compiler but the C pre-processor of SDCC.
Anyway, I don't understand what the problem is. For example, it seems someone else have the same kind of problem here under Windows :

'sdcpp' is not recognized as an internal or external command,
operable program or batch file.
at 1: warning 190: ISO C forbids an empty source file


But sdcpp is well present.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
19-04-2013, 09:30 AM, (This post was last modified: 19-04-2013, 10:07 AM by dadwarf.)
#18
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
Quote:Did you install libusb? If not, see the Wiki instruction I wrote at http://wiki.pinguino.cc/index.php/Mac_OS_X which cover Snow Leopard and Mountain Lion. As a matter of interest, which version of OS X are you running?

OSX 10.8.3, ofcourse I install libusb... but the one that comming from MacPort. but there is a problem of arch (wx is 32bits only and libusb 32-64bits) and the link from wiki.pinguino.cc is dead (http://shadow.sentry.org/~trev/pinguino/...pkg.tar.gz).

EDIT : found the same pkg/version here : http://www.ellert.se/PKGS/libusb-2012-10...pkg.tar.gz

EDIT 2 : Youpi, it works ! The problem was the libusb from MacPort ! Thanks Pinguino & Régis for your help.
Reply
20-04-2013, 12:27 AM, (This post was last modified: 20-04-2013, 12:31 AM by Pinguino.)
#19
RE: Pinguino 18F2550 and bootloader v4.8 : run led ?
Excellent news!

(I fixed the dead link, thanks for finding :-)

@Regis: cpp - c++ - c pre processor ... oops!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)