Skip to content

Latest commit

 

History

History
199 lines (139 loc) · 4.31 KB

note.org

File metadata and controls

199 lines (139 loc) · 4.31 KB

amforth note

shell

  • uno
    • sudo minicom -D /dev/ttyACM0 -b 38400
    • sudo screen /dev/ttyACM0 38400
  • duemilanove
    • sudo minicom -D /dev/ttyUSB0 -b 38400
    • sudo screen /dev/ttyUSB0 38400

make

  • appl/arduino/

  1. Assemble the whole flash and eemprom files make uno.hex
  2. Backup the current flash & eeprom values make uno.bak
  3. Erase the whole MCU Flash make uno.era
  4. Upload the new firmware using the hex file generated make uno
  5. Set the appropiate MCU fuses make uno.fuse
  6. Clear files (except backup) make uno.clr

><

sudo make uno.era sudo make uno sudo make uno.fuse

atomman

amforth 的文件

amforth-5.9/lib/forth2012/core-ext/marker.frt amforth-5.9/lib/builds.frt amforth-5.9/lib/bitnames.frt amforth-5.9/lib/forth2012/tools/synonym.frt amforth-5.9/appl/arduino/blocks/ports-standard.frt amforth-5.9/lib/forth2012/facility/ms.frt 但最后两行要注释掉 (analog.6 analog.7 在 arduino2009 上是没有的) http://amforth.sourceforge.net/TG/recipes/Values.html

好像还要一个叫 value 的 word

可能的文件 amforth-5.9/lib/forth2012/core/values.frt

amforth-5.9/avr8/lib/forth2012/core/avr-values.frt 定义了 Evalue i2c 需要它

cvalue 定义一个 byte 的变量,在 RAM 中。

eeprom-buffer.frt 包含 words of Ebuffer:

步骤:

  1. u0 marker.frt
  2. u0 builds.frt
  3. u0 bitnames.frt
  4. u0 synonym.frt
  5. u0 ms.frt
  6. u0 motor_shield.frt

对于 ada-shield v2

  • 先安装 forth 环境 /home/atommann/forth/amforth-5.9/appl/arduino
  • u0 builds.frt u0 avr-values.frt # for Evalue u0 i2c-twi.frt # for i2c u0 i2c.frt u0 eeprom-buffer.frt u0 ada-shield.frt
  • 今天在 往 funduion 上传数据时 居然区分大小写?

    ==================================== pwm_a digital.3 \ PWM pin for motor_a OC2B PD3 pwm_b digital.11 \ PWM pin for motor_b OC2A PB3

    pin_dir_a digital.12 \ forward == 1, reverse == 0 PB4 pin_dir_b digital.13 \ forward == 1, reverse == 0 PB5 ====================================

Evalue