User Tools

Site Tools


internal:proddocs:3478

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
internal:proddocs:3478 [2021/06/22 14:55] chrissyinternal:proddocs:3478 [2023/07/12 14:33] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== 3478 Build instructions ====== ====== 3478 Build instructions ======
  
-<note warning>The 3478 PCB assembly contains components that are sensitive to electrostatic discharge (ESD) – please make sure you are wearing your wrist strap when handling.  +<note warning>The 3478 PCB assembly contains components that are sensitive to electrostatic discharge (ESD) – please make sure you are wearing your wrist strap when handling. </note> 
  
 **Last Modified on ~~LASTMOD~~** **Last Modified on ~~LASTMOD~~**
Line 26: Line 26:
 ===== Programming ===== ===== Programming =====
  
 +Connect unit to programming device.
  
-Setting the correct fuses for AVR ATmega64C1 device (Steps 1-5)+{{:internal:proddocs:3478conn.jpg?600|}}
  
-{{:internal:proddocs:3478-5.png?600}}+  * Select STM32CubeProgrammer 
 +  * Connect to Unit
  
-  - Connect the programming device (White ATMEL USB programmer) to ISP interface of the 3478 device (pin header to pin socket adaptor cable is needed) +{{:internal:proddocs:connect.jpg?600|}}
-  - Connect the NMEA2000 cable to the device, and ensure the power supply is on at 12V. +
-  - Connect the programming device to a PC with AVR Studio (currently version 6.2)  +
-  - In AVR Studio select “Tools” → “Device Programming”, select the Tool you are using, press “Apply” and check the “Target Voltage” by pressing the “Read” button next to it. If the target voltage is less than 4.7 V, turn the SPI connector to opposite position.    +
-  - Interface Setting – click on the slider, enter 64kHz and set.  +
-  - Select the “Fuses” menu from the left panel and set up the following values (see the figure below)a. BODLEVEL = 2V7 b. SPIEN = Checked c. BOOTSZ = 2048W_7800 d. BOOTRST = Checked e. CKDIV8 = Unchecked fSUT_CKSEL = EXTXOSC_8MHZ_XX_16KCK_14CK_64MS (last selection)  +
-  - Then press the “Program” button +
  
-{{:internal:proddocs:3478-6.png?600}}+  * Select Device programming  
  
-  - Select the main program by clicking on “Memories” menu on the left side.  +{{:internal:proddocs:inkedprogramming_tab.jpg?600|}}
-  - Push “…” button next to the path of the “Flash” file. Choose the hex file“S:\Code\Production\3478 Relay Output Module\3478_AVR_BL_vx.x.x.hex”  +
-  - Press the “Program” button.  +
-  - Check the blue light is flashing. +
-  - Remove the Atmel Programmer device+
  
 +  * Browse and select the S:/Code/Production/3478/3478Bootloader
  
-  - Connect 3478 device to NMEA2000 network with only power supply and PC with PCAN-USB Adaptor connected+{{:internal:proddocs:3478bootloaderlocation.png?600|}} 
-  - Hold magnet underneath the two rotary switches of the 3478 and toggle the power, the blue LED should now be constantly on, if it is notrepeat this step+   
-  Open Boot Loader (Flip) +    * Click Start Programming Making sure all the checked boxes are correct 
-  - Select “Settings” → “Communication”→ “CAN” → “PEAK” Select 3.5 device select Atmel64C1  + 
-  - Set “Bit Rate” to 250 Kbit/and press “Init” then press “Connect” – this may take a few attempts  +{{:internal:proddocs:3478progbootloadersuccess.png?600|}} 
-  - Select “File” → “Load HEX File…” and select the file to flash from “S:\Code\Production\3478 Replay Output Module\3478v2.0.1.hex  + 
-  - Then press “Run” (the button at bottom left) to programming the device.+You can now disconnect the unit, if programming unsucessfulerase the device memory and try again. 
 + 
 +  Open Monex and click 'Get Serial' and 'GetProdInfo', you should see the following 
 + 
 +{{:internal:proddocs:3478bootloaderprodid.png?600|}} 
 + 
 +  * Go to the Programming tab and match the device instance to the Target Select 
 + 
 +{{:internal:proddocs:targetprog.png?600|}} 
 + 
 +  * Click on 3478 and the Reprogram on the pop-up 
 +  * Select S:/Code/Production/3478/3478 
 + 
 +{{:internal:proddocs:3478progsoftware.png?600|}} 
 + 
 +  * The Device should start programming and should 'PASS', and Reboot to Application Code 
 + 
 +  * Go Back to Device Info Tab and check that Model ID now shows as Relay Output Module 8 
 + 
 +{{:internal:proddocs:3478softwareprodid.png?600|}}
  
 ===== Test procedure ===== ===== Test procedure =====
Line 61: Line 73:
 Device Info and Instance switch testing should still be completed.</note> Device Info and Instance switch testing should still be completed.</note>
  
-  - Close FlipAtmel Studio and Monex.+  - Close all programskeep Monex open
   - Open relay program at S:/Code/Published PC Programs/Relay Board Tester/x64/RelayBoardTester.exe   - Open relay program at S:/Code/Published PC Programs/Relay Board Tester/x64/RelayBoardTester.exe
   - Turn on all of the switches individually, check the green LEDs come in and you hear a switching noise.   - Turn on all of the switches individually, check the green LEDs come in and you hear a switching noise.
Line 127: Line 139:
 {{:internal:proddocs:3478-9.png?600}} {{:internal:proddocs:3478-9.png?600}}
  
 + --- //[[chrissy@osukl.com|Christine Walsh]] 23/09/2021 10.36//
internal/proddocs/3478.1624373752.txt.gz · Last modified: 2023/07/12 14:12 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki