Difference between revisions of "Category:PROG"

From ElectroDragon
Jump to navigation Jump to search
(Created page with "== Interface == {| class="wikitable sortable" |- ! Type !! Interface !! Pins !! Software Tools !! Hardware Tools |- | STM8 || SWM || RST, SWIM, 3.3V, GND || ST Visual Programm...")
 
(Interface)
(Tag: Replaced)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Interface ==
 
{| class="wikitable sortable"
 
|-
 
! Type !! Interface !! Pins !! Software Tools !! Hardware Tools
 
|-
 
| STM8 || SWM || RST, SWIM, 3.3V, GND || ST Visual Programmer (STVP)
 
|-
 
| STM8L || UART || 3.3V, GND, RXD, TXD || Flasher-STM8(STMFlashDownloader) ||
 
|-
 
| STM32 || SWD || SWCLK, SWDIO, GND, 3.3V || STM32 ST-Link Utility
 
|-
 
| STM32 || USB || USB || DFUSEdemo
 
|-
 
| STM32 || UART || || Flasher-STM32, flyMCU, SSCOM5.13 ||
 
|-
 
| AVR || ISP6 || MISO|VCC, SCK|MOSI, RST|GND ||
 
|-
 
| UART || UART || 3.3V, GND, RXD, TXD ||
 
|-
 
| Nuvoton || ICP || || NUmicroICP || NU-LINK
 
|-
 
| Nuvoton || UART || || ||
 
|-
 
| PIC || PICKITC Interface || || X IPE || PICKIT
 
|}
 
== Raspberry Pi ==
 
=== AVR ===
 
[[File:2019-06-04 141936.png|thumb]]
 
* Install avrdude by: sudo apt-get install avrdude
 
* reference https://www.monocilindro.com/2017/03/20/flashing-arduino-using-raspberry-pi-shell/
 
* Download the avrdude.conf from our bitbucket.
 
* Use the following commands
 
env.sh configure chip type
 
probe.sh detect the chip and connections
 
flash_dump.sh read flash 
 
flash_write.sh flash flash 
 
==== Modify avrdude.conf for RPI ====
 
# Linux GPIO configuration for avrdude.
 
# Change the lines below to the GPIO pins connected to the AVR.
 
<source lang="c">
 
programmer
 
  id    = "linuxgpio";
 
  desc  = "Use the Linux sysfs interface to bitbang GPIO lines";
 
  type  = "linuxgpio";
 
  reset = 12;
 
  sck  = 24;
 
  mosi  = 23;
 
  miso  = 18;
 
;
 
</source>
 
  
=== OPENOCD ===
 
==== STM32 ====
 
* env.sh Configure the platform to which the chip belongs, such as stm32f1x, stm32f2x, etc. When calling other scripts, you need to execute source ./env.sh first to initialize the environment variables, the same below.
 
* probe.sh is used to detect the existence of the chip
 
* attach.sh attach to the chip, then another window can call $telnet localhost 4444 for single step debugging
 
* flash_dump.sh dumps the flash data from the chip
 
* flash_erase.sh erase flash data in the chip
 
* flash_write.sh Flash inside the chip
 
* lock.sh stm32 series chip provides flash write protection. After the write protection is turned on, the chip cannot be debugged. The flash data is read. The product commercial recommendation is to open the write protection function.
 
* unlock.sh cancels write protection.
 
=== Flash ===
 
* probe.sh detect the flash type
 
* flash_dump.sh read flash   
 
* flash_write.sh write flash 
 
=== EEPROM ===
 
* env.sh Configure the chip model, you can call avrdude -p ? to view the currently supported chips.
 
* probe.sh probes the i2c bus
 
* flash_dump.sh read flash
 
* flash_write.sh flashing flash
 
  
 
[[category: SDK]]
 
[[category: SDK]]

Latest revision as of 01:07, 30 April 2021

Subcategories

This category has the following 4 subcategories, out of 4 total.

Pages in category "PROG"

The following 5 pages are in this category, out of 5 total.