Update RPICT firmware (CT7V1/CT4V3/CT8): Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Overview=


==Download Sketch==
'''THIS PAGE IS FOR USE WITH THE PROGRAMMER. THE STANDARD WAY TO UPDATE THE FIRMWARE IS NOW FROM THE RASPBERRYPI. SEE THE GUIDE BELOW.'''<br>
[[Upload Arduino sketch from Raspberrypi to RPICT]]


Download the sketch from the dedicated page for the board.
This page provide information to update the firmware in boards RPICT7V1 RPICT4V3 and RPICT8.


==Erasing EEPROM==
Hardware required is either a [[NanoProg_v1 | Nanoprog]] or an Arduino UNO.


If upgrading from a major version change (e.g. 2.4 to 2.5) then an EEPROM erase will be required.
Note that you do not need to perform this on a brand new purchased unit. This is only for firmware upgrade or custom application.


To do this upload the sketch below in the mcu. Then let it run once.
=Download Sketch=
 
Download the sketch from the dedicated page for the board.<br>
'''Versions 2 & 3'''<br>
[[RPICT7V1_v2.0#Files]]<br>
[[RPICT4V3_v2.0#Files]]<br>
[[RPICT8#Files]]<br>
 
'''Versions 5'''<br>
[[RPICT7V1_Version_5#Files]]<br>
[[RPICT4V3_Version_5#Files]]<br>
[[RPICT8_Version_5#Files]]<br>
 
=Erasing EEPROM=
[OPTIONAL]
 
If upgrading from a major version change (e.g. 2.4 to 2.5) then an EEPROM erase might be required.
 
To do this upload the sketch below in the mcu. Let the mcu run once.


[http://lechacal.com/RPICT/tools/eeprom_erase_v1_0.ino eeprom_erase_v1_0.ino]
[http://lechacal.com/RPICT/tools/eeprom_erase_v1_0.ino eeprom_erase_v1_0.ino]


==Sketch Upload==
=Sketch Upload=
===Using Nanoprog===
==Using Nanoprog==


One can program the board using the [[NanoProg_v1 | Nanoprog]] programmer with a 6pin SPI connector.<br>
The board is programmed using the [[NanoProg_v1 | Nanoprog]] programmer with a 6pin SPI connector.<br>
In Arduino IDE select board as '''Arduino Uno'''. Upload sketch using '''File | Upload Using Programmer'''.


Remove the RPICT board from the Raspberrypi. Connect the NanoProg to the RPICT unit making sure that Vcc and Gnd are interconnected on both units.
In doubt just match which the picture below.
'''Versions 2 & 3''':<br>
[[File:IMG_1150_small.png | 200px]][[File:IMG_1149_small.png | 200px]][[File:IMG_1148_small.png | 200px]]
[[File:IMG_1150_small.png | 200px]][[File:IMG_1149_small.png | 200px]][[File:IMG_1148_small.png | 200px]]


===Using an ArduinoUNO===
'''Version 5''':<br>
An Arduino UNO board can be used to program the chip. The micontroller should be removed from the RPICT7V1 board and fitted on the Uno to allow programming.
[[File:IMG_0618_small.png | 200px]][[File:P1000253.JPG_small.png | 200px]]
 
 
In Arduino IDE do the following setup<br>
'''Tools''' -> '''Port''' -> Select the serial port the Nanoprog is connected to.<br>
'''Tools''' ->  '''Board''' -> '''Arduino Uno'''<br>
'''Tools''' -> '''Programmer''' -> '''Arduino as ISP'''<br>
 
 
Then to upload the sketch do<br>
'''Sketch''' -> '''Upload Using Programmer'''.<br>
 
==Using an ArduinoUNO - versions 3 and lower only==
An Arduino UNO board can be used to program the chip. The micontroller should be removed from the RPICT board and fitted on the Uno to allow programming.
 
=Burning Bootloader=
 
Burning the bootloader should not be required. If you are using an Arduino UNO to upload the sketch and it fails then they are chances the mcu needs a new bootloader burn.
Burning the bootloader can be done using the [[NanoProg_v1 | Nanoprog]].
 
* First connect the Nanoprog to the RPICT card like shown on the pictures above.
* '''Tools''' -> '''Port''' -> Select the serial port the Nanoprog is connected to.<br>
* '''Tools''' ->  '''Board''' -> '''Arduino Uno'''<br>
* '''Tools''' -> '''Programmer''' -> '''Arduino as ISP'''<br>
 
Then to burn the bootloader do<br>
'''Tools''' -> '''Burn Bootloader'''.<br>
 
=Write the new configuration=
 
Once the sketch has been uploaded you should now write the new configuration. We recommend using the default configuration to test the board first.
Default config can be obtained following this page.
[[Over_Serial_Configuration_-_Sketch 2.8#Restore_Default_Config]]

Latest revision as of 18:52, 27 September 2022

Overview

THIS PAGE IS FOR USE WITH THE PROGRAMMER. THE STANDARD WAY TO UPDATE THE FIRMWARE IS NOW FROM THE RASPBERRYPI. SEE THE GUIDE BELOW.
Upload Arduino sketch from Raspberrypi to RPICT

This page provide information to update the firmware in boards RPICT7V1 RPICT4V3 and RPICT8.

Hardware required is either a Nanoprog or an Arduino UNO.

Note that you do not need to perform this on a brand new purchased unit. This is only for firmware upgrade or custom application.

Download Sketch

Download the sketch from the dedicated page for the board.
Versions 2 & 3
RPICT7V1_v2.0#Files
RPICT4V3_v2.0#Files
RPICT8#Files

Versions 5
RPICT7V1_Version_5#Files
RPICT4V3_Version_5#Files
RPICT8_Version_5#Files

Erasing EEPROM

[OPTIONAL]

If upgrading from a major version change (e.g. 2.4 to 2.5) then an EEPROM erase might be required.

To do this upload the sketch below in the mcu. Let the mcu run once.

eeprom_erase_v1_0.ino

Sketch Upload

Using Nanoprog

The board is programmed using the Nanoprog programmer with a 6pin SPI connector.

Remove the RPICT board from the Raspberrypi. Connect the NanoProg to the RPICT unit making sure that Vcc and Gnd are interconnected on both units.

In doubt just match which the picture below.

Versions 2 & 3:

Version 5:


In Arduino IDE do the following setup
Tools -> Port -> Select the serial port the Nanoprog is connected to.
Tools -> Board -> Arduino Uno
Tools -> Programmer -> Arduino as ISP


Then to upload the sketch do
Sketch -> Upload Using Programmer.

Using an ArduinoUNO - versions 3 and lower only

An Arduino UNO board can be used to program the chip. The micontroller should be removed from the RPICT board and fitted on the Uno to allow programming.

Burning Bootloader

Burning the bootloader should not be required. If you are using an Arduino UNO to upload the sketch and it fails then they are chances the mcu needs a new bootloader burn. Burning the bootloader can be done using the Nanoprog.

  • First connect the Nanoprog to the RPICT card like shown on the pictures above.
  • Tools -> Port -> Select the serial port the Nanoprog is connected to.
  • Tools -> Board -> Arduino Uno
  • Tools -> Programmer -> Arduino as ISP

Then to burn the bootloader do
Tools -> Burn Bootloader.

Write the new configuration

Once the sketch has been uploaded you should now write the new configuration. We recommend using the default configuration to test the board first. Default config can be obtained following this page. Over_Serial_Configuration_-_Sketch 2.8#Restore_Default_Config