Post by Arduino Enigma on Sept 4, 2016 0:51:35 GMT
Surfacing for a quick update:
The Arduino Enigma sketch has always been pushing close to 32KB, the maximum program size for an Arduino Uno. For the longest time I have been developing on 1.5.5r2. Once before I tried upgrading to the latest version and compiling the Arduino Enigma sketch. The resulting program was smaller, but when I tried setting up the machine, it let me select a fake rotor in an empty space. I tried fiddling with the optimization settings to no avail and ended up returning to 1.55r2.
I recently installed the latest Arduino.cc IDE v1.6.11 and now the program went from 30516 to 27791 bytes. Most importantly, the program appears to work fine. I now have 4465 bytes to add new features.
I also read an interesting tip on how to increase the size of the serial port buffer.
Edit \Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.h
find the following lines at the beginning of the file:
#ifndef HardwareSerial_h
#define HardwareSerial_h
and add the following lines
#define SERIAL_TX_BUFFER_SIZE 256
#define SERIAL_RX_BUFFER_SIZE 256
This modification will affect all sketches from this point on. Ram usage will increase. There are ways to copy the arduino core files to a separate profile to be used when needed.
folk.uio.no/jeanra/Microelectronics/CustomSizeArduinoBuffer.html
Now I can send more characters to encode at the same time. It will reliably encode around 200 characters at one time.
This will be version 1.7, it uses the fast TFT library, serial communication is improved, the Greek wheels can be a different color, the screen can be flipped vertically. It will be available on the customer download site at the end of the month.
[EWCG2016]
NEW AVR
NYAJP YVUFY QTCCJ KRJTP GHKBX AESRK VEVAV CENBP VGTVI AXLRO IDPCK ODBYQ PURPS KCJOW MDBBE SGWCK SABCS
Diving...
The Arduino Enigma sketch has always been pushing close to 32KB, the maximum program size for an Arduino Uno. For the longest time I have been developing on 1.5.5r2. Once before I tried upgrading to the latest version and compiling the Arduino Enigma sketch. The resulting program was smaller, but when I tried setting up the machine, it let me select a fake rotor in an empty space. I tried fiddling with the optimization settings to no avail and ended up returning to 1.55r2.
I recently installed the latest Arduino.cc IDE v1.6.11 and now the program went from 30516 to 27791 bytes. Most importantly, the program appears to work fine. I now have 4465 bytes to add new features.
I also read an interesting tip on how to increase the size of the serial port buffer.
Edit \Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.h
find the following lines at the beginning of the file:
#ifndef HardwareSerial_h
#define HardwareSerial_h
and add the following lines
#define SERIAL_TX_BUFFER_SIZE 256
#define SERIAL_RX_BUFFER_SIZE 256
This modification will affect all sketches from this point on. Ram usage will increase. There are ways to copy the arduino core files to a separate profile to be used when needed.
folk.uio.no/jeanra/Microelectronics/CustomSizeArduinoBuffer.html
Now I can send more characters to encode at the same time. It will reliably encode around 200 characters at one time.
This will be version 1.7, it uses the fast TFT library, serial communication is improved, the Greek wheels can be a different color, the screen can be flipped vertically. It will be available on the customer download site at the end of the month.
[EWCG2016]
NEW AVR
NYAJP YVUFY QTCCJ KRJTP GHKBX AESRK VEVAV CENBP VGTVI AXLRO IDPCK ODBYQ PURPS KCJOW MDBBE SGWCK SABCS
Diving...