Jennic Wireless Microcontrollers

Buy Online divider divider Register divider Login divider Site Map divider Contact divider Home

Forum: Toolchain

Login to subscribe to this thread via email
 
re: Linux Flash Programmer Source -- where is "FlashLoaderSource1_4_0.zip"

Dear Sirs,

I am also interested in the Flash Programmer to flash JN 5139 nodes under Linux.

I use Ubuntu 8.10 on a 64-bit machine (Mac Pro).

I tried to log in the Jennic FTP server mentioned in some thread elsewhere, but without success (wrong user/passwd ?)

Thanks,


  Sergio Ruocco

 

> I have seen references to a python based Linux flash programmer for the Jennic; however, the ftp links that the posts reference > seem to be no longer valid.

> Where can I download the python source to the flash programmer?

>Thanks,

>Jeff


Posted by: Sergio Ruocco Thursday 26th March, 2009 at 4:39pm
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- where is

Hi,

I have done a python based programmer which works under linux, get it from http://www.teco.edu/~scholl/jenprog-1.0.tar.gz


Posted by: scholl Thursday 2nd April, 2009 at 10:17pm
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- error using the Linux Python tool on Ubuntu 8.10

Thanks Scholl!

I downloaded and installed it. I also installed the serial module.

However, I keep getting this error below: can you help me with that?

   Sergio

[sergio 19:45 ~]$ jenprog -s
Traceback (most recent call last):
  File "/usr/bin/jenprog", line 32, in <module>
    bl = con_serial.SerialBootloader(options.target)
  File "/usr/lib/python2.5/site-packages/con_serial.py", line 14, in __init__
    JennicProtocol.__init__(self)
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 10, in __init__
    self.select_flash()
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 13, in select_flash
    self.identify_flash()
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 20, in identify_flash
    self.flash_status       = flash[0]
IndexError: list index out of range

[sergio 19:45 ~]$ sudo jenprog -s
Traceback (most recent call last):
  File "/usr/bin/jenprog", line 32, in <module>
    bl = con_serial.SerialBootloader(options.target)
  File "/usr/lib/python2.5/site-packages/con_serial.py", line 14, in __init__
    JennicProtocol.__init__(self)
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 10, in __init__
    self.select_flash()
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 13, in select_flash
    self.identify_flash()
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 20, in identify_flash
    self.flash_status       = flash[0]
IndexError: list index out of range

[sergio 19:48 ~]$ jenprog -s -t /dev/ttyUSB0
Traceback (most recent call last):
  File "/usr/bin/jenprog", line 32, in <module>
    bl = con_serial.SerialBootloader(options.target)
  File "/usr/lib/python2.5/site-packages/con_serial.py", line 14, in __init__
    JennicProtocol.__init__(self)
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 10, in __init__
    self.select_flash()
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 13, in select_flash
    self.identify_flash()
  File "/usr/lib/python2.5/site-packages/flashutils.py", line 20, in identify_flash
    self.flash_status       = flash[0]

------------------

My system: Ubuntu 8.10 on x86_64 (Mac Pro):

[sergio 19:47 ~]$ uname -a
Linux balongo 2.6.27-11-generic #1 SMP Wed Apr 1 20:53:41 UTC 2009 x86_64 GNU/Linux

[sergio 19:45 ~]$ python
Python 2.5.2 (r252:60911, Oct  5 2008, 19:29:17)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.


 


Posted by: Sergio Ruocco Thursday 9th April, 2009 at 6:52pm
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- error using the Linux Python tool on Ubuntu 8.10
Did you put the device into programming mode?
Posted by: scholl Thursday 9th April, 2009 at 8:45pm
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- error using the Linux Python tool on Ubuntu 8.10

 Can you enlighten a newbie as to how to put the 5148 into programming mode? I have the 5148 on an ngw100. Any assistance you can offer would be appreciated.

 

Thanks


Posted by: shnuser Friday 7th May, 2010 at 8:22pm
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- error using the Linux Python tool on Ubuntu 8.10

Its the same method as for the 5139 - pull MISO low and reset the device (then release MISO).

Colin (http://www.LN-Systems.com)


Posted by: ColinH Monday 10th May, 2010 at 8:43am
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- where is

> I have done a python based programmer which works under linux, get it from http://www.teco.edu/~scholl/jenprog-1.0.tar.gz

 I tried to download this but the link appears to be broken .... is this still available ??

Thanks,

Stuart


Posted by: bseng Sunday 10th May, 2009 at 5:42pm
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- where is
Its back again.
Posted by: scholl Monday 11th May, 2009 at 5:32am
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- where is

Here it is the patch to make JenProg support Jennic JN-5148.

The full package is available here.


Posted by: Paolo Scaffardi Friday 16th October, 2009 at 4:25pm
jenprog-1.0_jn-5148.patch
Reply To this Message Quote this Message
re: Linux Flash Programmer Source -- where is

Reading MAC & license works, but trying to flash a JN-5184 with your updated program, I get:

Traceback (most recent call last):
  File "/usr/local/bin/jenprog", line 93, in <module>
    bl.erase_flash()
  File "/usr/local/lib/python2.6/dist-packages/flashutils.py", line 85, in erase_flash
    assert self.talk( 0x07, 0x08 )[0] == 0, "erasing did not work"
  File "/usr/local/lib/python2.6/dist-packages/con_serial.py", line 41, in talk
    n,ans = ord(self.ser.read(1)), ""
TypeError: ord() expected a character, but string of length 0 found

Please help!


Posted by: Edgar Holleis Friday 9th July, 2010 at 5:44pm
Reply To this Message Quote this Message

TopicPost TopicAdd a Post TopicQuote post as a basis for post Topic6 posts to this Forum since Tuesday, 27th July 2010

There are currently 228 people using the Forum out of a total of 2916 registered users