「programming」カテゴリーアーカイブ

pointer to 2-d array

  1. Suppose: float buff[10][20];
  2. float (*m_ptr)[10][20] = &buff;
  3. Can access: (*m_ptr)[0][1]= …; w=(*m_ptr)[0][1];
  4. My practice:
  • in global.h
  • firbuftk[2][3]; unsigned firbuftk_index; float (*m_ptr)[2][3] = &firbuftk;
  • firbuftk_index is not necessarily needed.

AVR Dragon on Kiyoshi(xp)

  1.  Connect AVR Dragon (Parallel wiring intact, ISP 2pin 5V wired): big Red, small Green lit.  AVR Dragon is on the device manager: Jungo section.  Yet cannot open usb connection on Flip3.3.4.
  2.  AVR studio4: debugplatform:AVR Dragon, Device ATmega164P:finish;
  3. Tools->Program AVR->(Select AVR programmer)AVR Dragon, usb: ->connect
  4.  (source file should be selected):window(AVR Dragon in PP/HVSP mode with ATmega164P) will popup.
  5.  Click necessary action, checking the messages OK!.