New Python Firmware Uploading Script

That allows to upload the new firmware directly from the RaspberryPi

Re: New Python Firmware Uploading Script

Postby Pimaster » Wed Nov 12, 2014 3:21 pm

Hi,
The dual color LED should be RED, when boot loader is invoked, and should remain as long the boot loader is waiting for the communication initiation. As far the first byte if firmware is received, it changes color to GREEN, and remain as long the uploading is running. After successful firmware upload, the UPiS proceed automatically with reset. So, the dual color LED changes, and blink for 2 seconds. The user must proceed after that with @factory command in order to setup all internal variables and internal EEPROM setting. This procedure is the same if you are uploading new firmware with USB or Python.

Therefore my question is, when (in witch conditions) it changes to GREEN.

Please answer in order to support you

Thank you and Kind Regards
PiMaster
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1596
Joined: Fri Sep 14, 2012 7:50 am

Re: New Python Firmware Uploading Script

Postby Doragan » Wed Nov 12, 2014 3:24 pm

I figured it out. I hadn't set up the serial port on the Pi.
Doragan
 
Posts: 2
Joined: Wed Nov 12, 2014 12:42 pm

Re: New Python Firmware Uploading Script

Postby Pimaster » Wed Nov 12, 2014 4:59 pm

Hi,
OK
BR PiM
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1596
Joined: Fri Sep 14, 2012 7:50 am

Re: New Python Firmware Uploading Script

Postby vtcs2k01 » Mon Jan 12, 2015 8:22 pm

Great script for loading the firmware! It's nice not to have to use windows.

I did find an issue running the script. While it would start sending the file over, it would usually fail after a few lines. I guess it timed out waiting for a response from the upis.

I first tried inserting a 1 second sleep after sending each line, but that was going to take a very long time.

I found that if I changed the value of the rcnt variable from 100 to 500 that the timeout issue was fixed, and the firmware loaded quickly.

Has anyone else had this issue? If so, a quick change to the script appears to fix it.
vtcs2k01
 
Posts: 2
Joined: Mon Jan 12, 2015 7:55 pm

Re: New Python Firmware Uploading Script

Postby Ramila » Fri Jan 22, 2016 12:17 pm

how use @factory Command?
I tested sudo i2cset -y 1 @factory but not work :(
Ramila
 
Posts: 3
Joined: Fri Jan 22, 2016 12:07 pm

New Python Firmware Uploading Script

Postby Mikako » Wed Mar 02, 2016 6:55 am

Hi,

Is it possible to set the log file from the Python API -- an equivalent to setting it in Tools -> Preferences -> General -> Processing Log?

Thanks,
Francesco
User avatar
Mikako
 
Posts: 1
Joined: Tue Mar 01, 2016 1:23 am
Location: Russia

Re: New Python Firmware Uploading Script

Postby Pimaster » Wed Mar 02, 2016 9:50 am

Ramila wrote:how use @factory Command?
I tested sudo i2cset -y 1 @factory but not work :(



@factory must be executed from the minicom or other terminal program that is "talking" with PIco via serial port

i2cset is another commands interface, you mixed it, please read the manual

BR PiM
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1596
Joined: Fri Sep 14, 2012 7:50 am

Previous

Return to New Python Firmware Uploading Script

Who is online

Users browsing this forum: No registered users and 1 guest

cron