Difference: ReprogrammingMMC (1 vs. 13)

Revision 1320 May 2014 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
This page covers the steps to reprogram the MMC in the AMC13.
Line: 31 to 31
 

Erasing the EEProm and Memory Reset

After loading new MMC firmware onto a board, it is often a good idea to erase the EEProm and perform a memory reset. To do so you will need to connect to the board via PuTTy and perform these tasks using provided commands.
  1. Connect machine to microUSB (Console) port on AMC13.
Changed:
<
<
  1. Before we can connect to the AMC13, we need to the identify the board on our machine. To do this, you will need to open your computer's Device Manager (or your computer's equivalent) and read the identifying code. Look under Ports -> USB Serial Ports and read the code next to the USB Serial Port that corresponds to your board (e.g. COM10).
>
>
  1. Before we can connect to the AMC13, we need to the identify the board on our machine. To do this, you will need to open your computer's Device Manager (or your computer's equivalent; in Windows XP Control Panel -> Administrative Tools -> Computer Management) and read the identifying code. Look under Ports -> USB Serial Ports and read the code next to the USB Serial Port that corresponds to your board (e.g. COM10).
 
  1. Connect to the board via PuTTy:
    • Start PuTTy
    • Choose Serial under Connection type
Line: 44 to 44
  sensread all
    • NOTE that there is currently a bug in the how the command line interprets new line keystroke, which sometimes causes the user to have to press Enter twice before a command can be registered.
Added:
>
>
  1. To run a memory reset, the command:
                 mreset
                 
 
  1. To erase the EEProm, use the command and answer yes to the prompt:
                 eeperase
                 
Changed:
<
<
    • NOTE that if there new line bug which requires a double return is occurring, to answer the prompt, you will need to actually enter 'yes' before the prompt appears
>
>
    • NOTE that there is new line bug which requires a double return is occurring, to answer the prompt, you will need to actually enter 'yes' before the prompt appears. If you have done a mreset during this session, the new line bug should fix itself.
 
       eeperase  <ENTER>
       yes       <ENTER>  
       <prompt>  <ENTER>
       
Deleted:
<
<
  1. To run a memory reset, the command:
                 mreset
                 
 

-- DavidZou - 29 May 2013

Revision 1212 May 2014 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
Deleted:
<
<
(Under construction)
 This page covers the steps to reprogram the MMC in the AMC13.

Software Prerequisites

Line: 11 to 10
  Source code for MMC for reference is here: AMC13_v2.1.zip
Added:
>
>
 

Programming MMC into Flash

NOTE: The hex file linked below (AMC13_v2p1_Release.hex) is known to work with both AMC13v1 and AMC13XG. However, it seems that the blue LED does not function correctly on an AMC13v1.

Line: 27 to 27
 
  1. Once the correct Release hex file is selected, click the Program button. Typically this is done w/ the Erase Flash before programming and Verify Flash after programming options on.
  2. Once the Program Successful message appear, you are done with this portion. Typically, after programming the MMC, you will want to erase the EEP and perform a memory reset.
Added:
>
>
 

Erasing the EEProm and Memory Reset

After loading new MMC firmware onto a board, it is often a good idea to erase the EEProm and perform a memory reset. To do so you will need to connect to the board via PuTTy and perform these tasks using provided commands.
  1. Connect machine to microUSB (Console) port on AMC13.

Revision 1107 Apr 2014 - EricHazen

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.

Software Prerequisites

  1. AVR/Atmel Studio (newer versions of MMC may require the use of Atmel Studio 6.1 or higher)
Changed:
<
<
  1. PuTTY (Only necessary for step to erase EEProm and subsequent memory reset)
>
>
  1. SSH client (putty for windows or minicom for Linux)
 
Changed:
<
<

Preparation (Producing MMC Release hex file)

Before you can program the MMC, you will need access to MMC Release hex file (e.g. AMC13_v2p1_Release.hex). For newer versions of the MMC, you may need to obtain this by decompressing the AMC13 zip file (e.g. AMC13_v2.1.zip ) using the latest version of AVR (Atmel) Studio. Relevant documents available in AMC13RelatedDocuments. The steps below give an example of how to obtain AMC13_v2p1_Release.hex from AMC13_v2.1.zip using Atmel Studio. If you already have the desired Release hex file, continue onto the next section.
>
>

Preparation

 
Changed:
<
<
  1. (Add instructions decompressing w/ Atmel Studio 6.1)
>
>
Source code for MMC for reference is here: AMC13_v2.1.zip
 

Programming MMC into Flash

Revision 1012 Feb 2014 - EricHazen

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.
Line: 13 to 13
 
  1. (Add instructions decompressing w/ Atmel Studio 6.1)

Programming MMC into Flash

Added:
>
>
NOTE: The hex file linked below (AMC13_v2p1_Release.hex) is known to work with both AMC13v1 and AMC13XG. However, it seems that the blue LED does not function correctly on an AMC13v1.
 
  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this section, I will assume the use of AMC13_v2.1.zip and that you have access to the necessary release hex file (e.g. AMC13_v2p1_Release.hex). If you do not have the necessary hex files, please follow the instruction on how to produce one from the MMC zip file.
  2. Connect AVR device into USB port on computer and into MMC port on AMC13.
  3. Start the AVR Studio program (e.g. AVR Studio 5.1)

Revision 906 Aug 2013 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.
Line: 21 to 21
 
  1. Some other menu and button should now become active. Under Device ID, click Read. If everything is set up and connected properly, the prompt at the bottom should read: Reading device ID ... OK.
  2. In the menus on the left, select Memories
  3. In the Memories tab, you should have options to program the flash.
Changed:
<
<
  1. Select the Release hex file corresponding to the desire MMC version either through the drop down menu or by clicking the ... button to find the file on the machine.
>
>
  1. Select the Release hex file corresponding to the desire MMC version either through the drop down menu or by clicking the [...] button to find the file on the machine.
 
  1. Once the correct Release hex file is selected, click the Program button. Typically this is done w/ the Erase Flash before programming and Verify Flash after programming options on.
  2. Once the Program Successful message appear, you are done with this portion. Typically, after programming the MMC, you will want to erase the EEP and perform a memory reset.

Revision 820 Jun 2013 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.
Line: 10 to 10
 

Preparation (Producing MMC Release hex file)

Before you can program the MMC, you will need access to MMC Release hex file (e.g. AMC13_v2p1_Release.hex). For newer versions of the MMC, you may need to obtain this by decompressing the AMC13 zip file (e.g. AMC13_v2.1.zip ) using the latest version of AVR (Atmel) Studio. Relevant documents available in AMC13RelatedDocuments. The steps below give an example of how to obtain AMC13_v2p1_Release.hex from AMC13_v2.1.zip using Atmel Studio. If you already have the desired Release hex file, continue onto the next section.
Changed:
<
<
  1. Open Atmel Studios
>
>
  1. (Add instructions decompressing w/ Atmel Studio 6.1)
 

Programming MMC into Flash

  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this section, I will assume the use of AMC13_v2.1.zip and that you have access to the necessary release hex file (e.g. AMC13_v2p1_Release.hex). If you do not have the necessary hex files, please follow the instruction on how to produce one from the MMC zip file.

Revision 720 Jun 2013 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.
Line: 8 to 8
 
  1. PuTTY (Only necessary for step to erase EEProm and subsequent memory reset)

Preparation (Producing MMC Release hex file)

Added:
>
>
Before you can program the MMC, you will need access to MMC Release hex file (e.g. AMC13_v2p1_Release.hex). For newer versions of the MMC, you may need to obtain this by decompressing the AMC13 zip file (e.g. AMC13_v2.1.zip ) using the latest version of AVR (Atmel) Studio. Relevant documents available in AMC13RelatedDocuments. The steps below give an example of how to obtain AMC13_v2p1_Release.hex from AMC13_v2.1.zip using Atmel Studio. If you already have the desired Release hex file, continue onto the next section.

  1. Open Atmel Studios
 

Programming MMC into Flash

Changed:
<
<
  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this section, I will assume the use of AMC13_v2.1.zip and that you have access to the necessary release hex file (e.g. AMC13_v2p1_Release.hex). If you do not have the necessary hex files, please follow the instruction on how to produce one from the MMC zip file.
>
>
  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this section, I will assume the use of AMC13_v2.1.zip and that you have access to the necessary release hex file (e.g. AMC13_v2p1_Release.hex). If you do not have the necessary hex files, please follow the instruction on how to produce one from the MMC zip file.
 
  1. Connect AVR device into USB port on computer and into MMC port on AMC13.
  2. Start the AVR Studio program (e.g. AVR Studio 5.1)
  3. Open the AVR Programming dialog box by going to Tools -> AVR Programming or by clicking the lightning bolt icon in the shortcut bar.
Line: 23 to 27
 
  1. Once the Program Successful message appear, you are done with this portion. Typically, after programming the MMC, you will want to erase the EEP and perform a memory reset.

Erasing the EEProm and Memory Reset

Added:
>
>
After loading new MMC firmware onto a board, it is often a good idea to erase the EEProm and perform a memory reset. To do so you will need to connect to the board via PuTTy and perform these tasks using provided commands.
 
  1. Connect machine to microUSB (Console) port on AMC13.
Changed:
<
<
  1. Before we can connect to the AMC13, we need to the identify the board on our machine. To do this, you will need to open your computer's Device Manager (or your computer's equivalent) and read the identifying code. Look under Ports -> USB Serial Ports and read the code next to the USB Serial Port that corresponds to your board (e.g. COM10).
>
>
  1. Before we can connect to the AMC13, we need to the identify the board on our machine. To do this, you will need to open your computer's Device Manager (or your computer's equivalent) and read the identifying code. Look under Ports -> USB Serial Ports and read the code next to the USB Serial Port that corresponds to your board (e.g. COM10).
  2. Connect to the board via PuTTy:
    • Start PuTTy
    • Choose Serial under Connection type
    • Enter the corresponding host name for the board (e.g. COM10)
    • Enter the corresponding speed (for the AMC13, this is typically 19200)
    • Click Open. This should open a new window with a command line.
  3. You can check to make sure the correct board is connected, by power cycling the board by handle reset. This should cause the command line to output message related to the power off or power on of the board.
    • A useful command to check the state of the board you may use to check the sensor readings is the command:
             sensread all
             
    • NOTE that there is currently a bug in the how the command line interprets new line keystroke, which sometimes causes the user to have to press Enter twice before a command can be registered.
  4. To erase the EEProm, use the command and answer yes to the prompt:
                 eeperase
                 
    • NOTE that if there new line bug which requires a double return is occurring, to answer the prompt, you will need to actually enter 'yes' before the prompt appears
             eeperase  <ENTER>
             yes       <ENTER>  
             <prompt>  <ENTER>
             
  5. To run a memory reset, the command:
                 mreset
                 
 

-- DavidZou - 29 May 2013

Revision 618 Jun 2013 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.

Software Prerequisites

Changed:
<
<
  1. AVR/Atmel Studio (newer MMC's may require the use of Atmel Studio 6.1 or higher)
  2. PuTTY
>
>
  1. AVR/Atmel Studio (newer versions of MMC may require the use of Atmel Studio 6.1 or higher)
  2. PuTTY (Only necessary for step to erase EEProm and subsequent memory reset)
 

Preparation (Producing MMC Release hex file)

Revision 517 Jun 2013 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.
Line: 7 to 7
 
  1. AVR/Atmel Studio (newer MMC's may require the use of Atmel Studio 6.1 or higher)
  2. PuTTY
Changed:
<
<

Procedure

>
>

Preparation (Producing MMC Release hex file)

Programming MMC into Flash

 
  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this section, I will assume the use of AMC13_v2.1.zip and that you have access to the necessary release hex file (e.g. AMC13_v2p1_Release.hex). If you do not have the necessary hex files, please follow the instruction on how to produce one from the MMC zip file.
  2. Connect AVR device into USB port on computer and into MMC port on AMC13.
  3. Start the AVR Studio program (e.g. AVR Studio 5.1)
Line: 20 to 22
 
  1. Once the correct Release hex file is selected, click the Program button. Typically this is done w/ the Erase Flash before programming and Verify Flash after programming options on.
  2. Once the Program Successful message appear, you are done with this portion. Typically, after programming the MMC, you will want to erase the EEP and perform a memory reset.
Added:
>
>

Erasing the EEProm and Memory Reset

  1. Connect machine to microUSB (Console) port on AMC13.
  2. Before we can connect to the AMC13, we need to the identify the board on our machine. To do this, you will need to open your computer's Device Manager (or your computer's equivalent) and read the identifying code. Look under Ports -> USB Serial Ports and read the code next to the USB Serial Port that corresponds to your board (e.g. COM10).
 

-- DavidZou - 29 May 2013

Revision 413 Jun 2013 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.

Revision 312 Jun 2013 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
(Under construction) This page covers the steps to reprogram the MMC in the AMC13.
Line: 8 to 8
 
  1. PuTTY

Procedure

Changed:
<
<
  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this page, I will assume the use of AMC13_v2.1.zip.
>
>
  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this section, I will assume the use of AMC13_v2.1.zip and that you have access to the necessary release hex file (e.g. AMC13_v2p1_Release.hex). If you do not have the necessary hex files, please follow the instruction on how to produce one from the MMC zip file.
 
  1. Connect AVR device into USB port on computer and into MMC port on AMC13.
Changed:
<
<
>
>
  1. Start the AVR Studio program (e.g. AVR Studio 5.1)
  2. Open the AVR Programming dialog box by going to Tools -> AVR Programming or by clicking the lightning bolt icon in the shortcut bar.
  3. In the dialog box, you will see drop down menu options for Tool, Device, and Interface. Select the correct options (most likely the default one e.g. Tool = JTAGICE3, Device = AT32UC3A1512, and Interface = JTAG. Then click Apply
  4. Some other menu and button should now become active. Under Device ID, click Read. If everything is set up and connected properly, the prompt at the bottom should read: Reading device ID ... OK.
  5. In the menus on the left, select Memories
  6. In the Memories tab, you should have options to program the flash.
  7. Select the Release hex file corresponding to the desire MMC version either through the drop down menu or by clicking the ... button to find the file on the machine.
  8. Once the correct Release hex file is selected, click the Program button. Typically this is done w/ the Erase Flash before programming and Verify Flash after programming options on.
  9. Once the Program Successful message appear, you are done with this portion. Typically, after programming the MMC, you will want to erase the EEP and perform a memory reset.
 

Revision 229 May 2013 - DavidZou

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
Added:
>
>
(Under construction)
 This page covers the steps to reprogram the MMC in the AMC13.

Software Prerequisites

Line: 8 to 9
 

Procedure

  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this page, I will assume the use of AMC13_v2.1.zip.
Added:
>
>
  1. Connect AVR device into USB port on computer and into MMC port on AMC13.
 

Revision 129 May 2013 - DavidZou

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="HcalDTC"
This page covers the steps to reprogram the MMC in the AMC13.

Software Prerequisites

  1. AVR/Atmel Studio (newer MMC's may require the use of Atmel Studio 6.1 or higher)
  2. PuTTY

Procedure

  1. Make sure you have the most recent firmware for the MMC, which can be found in the AMC13 Related Documents link on the main page (this link location susceptible to change). For the purpose of examples, for the remainder of this page, I will assume the use of AMC13_v2.1.zip.

-- DavidZou - 29 May 2013

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback