0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

STM8でふたたび、遊ぶ(遅いダメっ子)(理系フリマ12/17入手)

Last updated at Posted at 2023-12-17

目的
スリム化しすぎて、おそおその子で遊ぶ。
秋葉原の若松で入手可能?
3億個ぐらい売ったらしいが最近、ですこん(製造中止)

機能は、モスの6502でほぼ「ファミコン」!!
ハードワイヤー(らしい)で68000より回路規模が大きいらいし。
マイクロコードらしいAVR(6000,7000トランジスター?)より遅い。
マイクロコード万歳、万歳。
直アドレスのリード、ライトは、1サイクルだけど、
よく使うインデックスリード、ライトは、4サイクル。
遅い、遅い、遅すぎる。
メモリーのリード、ライトが遅すぎてどうするの、でも好き。(変態)

ジャンパの半田を取ってらいたーとマイコンを切り離す
ライターのふあーむがふるいのでごもごもする
ごもごもの仕方を完全に忘れていて焦る。
古いのを発掘する
リセットはずすなんかしらんよ
8オンリーが動いた
V2-1でせつてい
hintoはMaking ST-Link V2.1

o_cop858.jpg

o_cop860.jpg

o_cop861.jpg

o_cop862.jpg

o_cop864.jpg

てすとプログラム



/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(200);                       // wait for a second
}


書き込み結果



C:\Users\g500\Documents\ArduinoData\packages\sduino\tools\sdcc\build.11242/bin/sdcc sketch\Blink.ino.cpp preproc\ctags_target_for_gcc_minus_e.cpp re12 -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S105 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_STM8S_DISCOVERY -DARDUINO_ARCH_STM8 -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0\cores\sduino -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0\variants\stm8sdisco -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc -IC:\Users\g500\Documents\ArduinoData\packages\sduino\tools\sdcc\build.11242/include
Mark re12:C:\Users\g500\Documents\ArduinoData\packages\sduino\tools\sdcc\build.11242/bin/sdcc -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S105 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_STM8S_DISCOVERY -DARDUINO_ARCH_STM8 -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0\cores\sduino -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0\variants\stm8sdisco -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc -IC:\Users\g500\Documents\ArduinoData\packages\sduino\tools\sdcc\build.11242/include sketch\Blink.ino.cpp -o preproc\ctags_target_for_gcc_minus_e.cpp
cpp gefunden
C:\Users\g500\Documents\ArduinoData\packages\sduino\tools\sdcc\build.11242/bin/sdcc sketch\Blink.ino.cpp sketch\Blink.ino.cpp.o re2 -MMD -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ --less-pedantic -mstm8 -DSTM8S105 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_STM8S_DISCOVERY -DARDUINO_ARCH_STM8 -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0\cores\sduino -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0\variants\stm8sdisco -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc -IC:\Users\g500\Documents\ArduinoData\packages\sduino\tools\sdcc\build.11242/include
Mark re2:C:\Users\g500\Documents\ArduinoData\packages\sduino\tools\sdcc\build.11242/bin/sdcc -MMD -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ --less-pedantic -mstm8 -DSTM8S105 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_STM8S_DISCOVERY -DARDUINO_ARCH_STM8 -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0\cores\sduino -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0\variants\stm8sdisco -IC:\Users\g500\Documents\ArduinoData\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc -IC:\Users\g500\Documents\ArduinoData\packages\sduino\tools\sdcc\build.11242/include sketch\Blink.ino.cpp -o sketch\Blink.ino.cpp.o
cpp gefunden
最大32768バイトのフラッシュメモリのうち、スケッチが1832バイト(5%)を使っています。
最大2048バイトのRAMのうち、グローバル変数が72バイト(3%)を使っていて、ローカル変数で1976バイト使うことができます。
Determine FLASH area

libusb: info [cache_config_descriptors] could not access configuration descriptor (dummy) for '\\.\USB#VID_04F2&PID_B3BD#6&920BE49&0&4': [31] �V�X�e���ɐڑ����ꂽ�f�o�C�X���@�\���Ă��܂���B
Due to its file extension (or lack thereof), "C:\Users\g500\AppData\Local\Temp\arduino_build_593459/Blink.ino.hex" is considered as INTEL HEX format!
2038 bytes at 0x8000... OK
Bytes written: 2038



へへー これ、安い

o_cop865.jpg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?