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

From lechacal
Jump to navigation Jump to search
Line 62: Line 62:
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 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]].
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.
*


=Write the new configuration=
=Write the new configuration=

Revision as of 18:47, 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

One can program the board 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.

Versions 2 & 3:

Version 5:


In Arduino IDE do the follwoing 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.

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