jackrubin
Veteran Member
I got my boards yesterday though I mutilated the mass storage media that was provided. I'll just have to fall back to using SD cards rather than punch cards.
Thanks,
Jack
Thanks,
Jack
.
.DIR
SYS VOLUME-- 1
SYS:=RX8E
OS/8 SYSTEM VERSION 3Q
BUILD .SV 33 HELP .SV 8 BASIC .UF 4
ABSLDR.SV 5 PAL8 .SV 19 BCOMP .SV 17
BITMAP.SV 5 PIP .SV 11 BLOAD .SV 8
BOOT .SV 5 PT8E .BN 1 BRTS .SV 15
CCL .SV 18 RESORC.SV 10 EABRTS.BN 24
CREF .SV 13 RXCOPY.SV 6 RESEQ .BA 6
DIRECT.SV 7 SABR .SV 24 ECHO .SV 2
EDIT .SV 10 TECO .SV 22 RKLFMT.SV 9
EPIC .SV 14 BASIC .AF 4 SET .SV 14
FBOOT .SV 2 BASIC .FF 4 BATCH .SV 10
FOTP .SV 8 BASIC .SF 4 FUTIL .SV 26
HELP .HL 55 BASIC .SV 9 IDS .SV 5
36 FILES IN 437 BLOCKS - 1 FREE BLOCKS
.RESORC
SYS,DSK,PTP,PTR,RXA0,RXA1,RKA0,RKB0,RKA1,RKB1,TTY,LPT
.
.DIR
LIB8 .RL 29 FLOAT .RL 5 POWERS.RL 3
INTEGR.RL 2 IPOWRS.RL 2 SQRT .RL 2
TRIG .RL 2 ATAN .RL 2 RWTAPE.RL 2
IOPEN .RL 2 GENIOX.RL 3 DIRECT.SV 7
RXCOPY.SV 9 CREF .SV 13 SRCCOM.SV 5
MCPIP .SV 13 PIP10 .SV 17 PAL8 .SV 19
BITMAP.SV 5 CAMP .SV 13 EPIC .SV 14
ABSLDR.SV 6 BUILD .SV 37 BOOT .SV 5
FOTP .SV 8 PIP .SV 11 RESORC.SV 14
CCL .SV 31 LOADER.SV 12 SABR .SV 24
FORT .SV 25 LIBSET.SV 5 IOH .RL 7
UTILTY.RL 3 BRTS .SV 15 BASIC .SV 9
BCOMP .SV 17 BLOAD .SV 8 BASIC .AF 4
BASIC .SF 4 BASIC .FF 4 BASIC .UF 4
RESEQ .BA 6 SET .SV 14 GENIOX.SB 14
BATCH .SV 10 HELP .SV 8 MSBAT .SV 23
TECO .SV 22 FUTIL .SV 27 HELP .HL 55
BPAT .BN 1 EABRTS.BN 24 F4 .SV 20
PASS2 .SV 20 PASS2O.SV 5 PASS3 .SV 8
RALF .SV 19 FORLIB.RL 170 FRTS .SV 26
EDIT .SV 10 LOAD .SV 16 LIBRA .SV 11
FPAT .BN 1
0 FREE BLOCKS
.
Don,
I've been running the serial console at the max speed (250k baud). I am very sure that my problem is with my laptop. Your emulator has been working perfectly when disconnected from the laptop. Unfortunately this one laptop is the only portable I have with a USB port. No big deal though.
Now that I have your emulator working perfectly I've turned my attention back to trying to get Bela's to work (mostly because I spent $25 on the Due, which I would not otherwise want to use for any other projects.) I did fix Bela's code per your earlier post #38, but there is more wrong than that.
Anyone,
Has anyone here actually gotten Bela's emulator working properly?
Lou
Don,
Ok, same trouble even when powering the mega from a 9V wall wart that I use for other Arduino projects. Even at D 0, when doing the disk intensive disk copying there will be bad sector glitches or the decmate will hang. Tomorrow night I will try the powered hub, which is a good idea.
Lou
AK6DN said:So this is with USB connected and the Arduino powered by a 9VDC wall adapter?
AK6DN said:If you use the wall adapter only, and disconnect the USB, then it works reliably?
AK6DN said:What about with the wall adapter only, an in various debug modes (eg, 'd 0' vs 'd 2')?
For these tests, connect via USB, set debug mode 0 (none) or 2 (lots), then write the init file (via W) to set the power up default configuration.
Then disconnect/reboot to only wall wart power and see if it still generates errors in debug 0 vs debug 2.
The debug info goes out the main RS232 serial port 0 of the Mega2560 (not a USB connection until it is received by the 16U2 part and retransmitted over USB).
rx02[627] ./11XXDP.sh
++ xxdpdir.pl --image ../../XXDP/XXDP_v25_rl02.dsk --path tmpdir --extract '*.SYS'
++ xxdpdir.pl --image ./11XXDP.RX2 --path tmpdir --insert '*.SYS' --init --boot
++ xxdpdir.pl --image ../../XXDP/XXDP_v25_rl02.dsk --path tmpdir --extract HELP.TXT
++ xxdpdir.pl --image ./11XXDP.RX2 --path tmpdir --insert HELP.TXT
++ xxdpdir.pl --image ../../XXDP/XXDP_v25_rl02.dsk --path tmpdir --extract PATCH.BIC
++ xxdpdir.pl --image ./11XXDP.RX2 --path tmpdir --insert PATCH.BIC
++ xxdpdir.pl --image ../../XXDP/XXDP_v25_rl02.dsk --path tmpdir --extract SETUP.BIC
++ xxdpdir.pl --image ./11XXDP.RX2 --path tmpdir --insert SETUP.BIC
++ xxdpdir.pl --image ../../XXDP/XXDP_v25_rl02.dsk --path tmpdir --extract UPDAT.BIC
++ xxdpdir.pl --image ./11XXDP.RX2 --path tmpdir --insert UPDAT.BIC
++ xxdpdir.pl --image ../../XXDP/XXDP_v25_rl02.dsk --path tmpdir --extract XTECO.BIC
++ xxdpdir.pl --image ./11XXDP.RX2 --path tmpdir --insert XTECO.BIC
++ xxdpdir.pl --image ../../XXDP/XXDP_v25_rl02.dsk --path tmpdir --extract FLOAT.BIN
++ xxdpdir.pl --image ./11XXDP.RX2 --path tmpdir --insert FLOAT.BIN
++ xxdpdir.pl --image ./11XXDP.RX2 --directory --format standard > 11XXDP.TXT
rx02[628]
DOS11 format, assume monitor starts at block 23
Image supports 1001 blocks
16 directory blocks, block 3 thru 18
4 bitmap blocks, block 19 thru 22
401 device blocks in use according to the bitmap
ENTRY# FILNAM.EXT DATE LENGTH START VERSION
1 XXDPSM.SYS 1-MAR-89 29 55 E.0
2 XXDPXM.SYS 1-MAR-89 39 84 F.0
3 DRSSM .SYS 1-MAR-89 24 123 G.2
4 DRSXM .SYS 1-MAR-89 48 147 C.0
5 DATE .SYS 1-MAR-89 2 195 B.0
6 DB .SYS 1-MAR-89 2 197 C.0
7 DD .SYS 1-MAR-89 3 199 D.0
8 DIR .SYS 1-MAR-89 7 202 D.0
9 DL .SYS 1-MAR-89 4 209 D.0
10 DM .SYS 1-MAR-89 4 213 C.0
11 DR .SYS 1-MAR-89 3 217 C.0
12 DU .SYS 1-MAR-89 4 220 E.0
13 DUSZ .SYS 1-MAR-89 2 224 C.0
14 DY .SYS 1-MAR-89 3 226 D.0
15 LP .SYS 1-MAR-89 1 229 B.0
16 MM .SYS 1-MAR-89 3 230 C.0
17 MS .SYS 1-MAR-89 4 233 C.0
18 MU .SYS 1-MAR-89 4 237 E.0
19 HELP .TXT 1-MAR-89 29 241
20 PATCH .BIC 1-MAR-89 31 270
21 SETUP .BIC 1-MAR-89 27 301
22 UPDAT .BIC 1-MAR-89 29 328
23 XTECO .BIC 1-MAR-89 26 357
24 FLOAT .BIN 1-MAR-89 18 383
FREE BLOCKS: 600
Arduino: 1.8.0 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
sketch\rx02_driver.cpp: In function 'void rx_xmit_es()':
rx02_driver.cpp:609: error: 'class HardwareSerial' has no member named 'printf'
if (debugLevel) debugPort->printf(F("RX: %s rx_xmit_es(%04o)\n\n"), rx.fcn.name, rx.es);
^
.
.
.
.
exit status 1
'class HardwareSerial' has no member named 'printf'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
/*
Print.h - Base class that provides print() and println()
Copyright (c) 2008 David A. Mellis. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// 12-25-2016 jr added printf support as per Arduino playground page
#ifndef Print_h
#define Print_h
#include <inttypes.h>
#include <stdio.h> // for size_t
#include "WString.h"
#include "Printable.h"
#define DEC 10
#define HEX 16
#define OCT 8
#define BIN 2
class Print
{
private:
int write_error;
size_t printNumber(unsigned long, uint8_t);
size_t printFloat(double, uint8_t);
protected:
void setWriteError(int err = 1) { write_error = err; }
public:
Print() : write_error(0) {}
int getWriteError() { return write_error; }
void clearWriteError() { setWriteError(0); }
virtual size_t write(uint8_t) = 0;
size_t write(const char *str) {
if (str == NULL) return 0;
return write((const uint8_t *)str, strlen(str));
}
virtual size_t write(const uint8_t *buffer, size_t size);
size_t write(const char *buffer, size_t size) {
return write((const uint8_t *)buffer, size);
}
size_t print(const __FlashStringHelper *);
size_t print(const String &);
size_t print(const char[]);
size_t print(char);
size_t print(unsigned char, int = DEC);
size_t print(int, int = DEC);
size_t print(unsigned int, int = DEC);
size_t print(long, int = DEC);
size_t print(unsigned long, int = DEC);
size_t print(double, int = 2);
size_t print(const Printable&);
size_t println(const __FlashStringHelper *);
size_t println(const String &s);
size_t println(const char[]);
size_t println(char);
size_t println(unsigned char, int = DEC);
size_t println(int, int = DEC);
size_t println(unsigned int, int = DEC);
size_t println(long, int = DEC);
size_t println(unsigned long, int = DEC);
size_t println(double, int = 2);
size_t println(const Printable&);
size_t println(void);
};
#endif
#include <stdarg.h>
#define PRINTF_BUF 80 // define the tmp buffer size (change if desired)
void printf(const char *format, ...)
{
char buf[PRINTF_BUF];
va_list ap;
va_start(ap, format);
vsnprintf(buf, sizeof(buf), format, ap);
for(char *p = &buf[0]; *p; p++) // emulate cooked mode for newlines
{
if(*p == '\n')
write('\r');
write(*p);
}
va_end(ap);
}
#ifdef F // check to see if F() macro is available
void printf(const __FlashStringHelper *format, ...)
{
char buf[PRINTF_BUF];
va_list ap;
va_start(ap, format);
#ifdef __AVR__
vsnprintf_P(buf, sizeof(buf), (const char *)format, ap); // progmem for AVR
#else
vsnprintf(buf, sizeof(buf), (const char *)format, ap); // for the rest of the world
#endif
for(char *p = &buf[0]; *p; p++) // emulate cooked mode for newlines
{
if(*p == '\n')
write('\r');
write(*p);
}
va_end(ap);
}
#endif
// };
//#endif
/*
Print.h - Base class that provides print() and println()
Copyright (c) 2008 David A. Mellis. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef Print_h
#define Print_h
#include <inttypes.h>
#include <stdio.h> // for size_t
#include "WString.h"
#include "Printable.h"
#define DEC 10
#define HEX 16
#define OCT 8
#define BIN 2
class Print
{
private:
int write_error;
size_t printNumber(unsigned long, uint8_t);
size_t printFloat(double, uint8_t);
protected:
void setWriteError(int err = 1) { write_error = err; }
public:
Print() : write_error(0) {}
int getWriteError() { return write_error; }
void clearWriteError() { setWriteError(0); }
virtual size_t write(uint8_t) = 0;
size_t write(const char *str) {
if (str == NULL) return 0;
return write((const uint8_t *)str, strlen(str));
}
virtual size_t write(const uint8_t *buffer, size_t size);
size_t write(const char *buffer, size_t size) {
return write((const uint8_t *)buffer, size);
}
size_t print(const __FlashStringHelper *);
size_t print(const String &);
size_t print(const char[]);
size_t print(char);
size_t print(unsigned char, int = DEC);
size_t print(int, int = DEC);
size_t print(unsigned int, int = DEC);
size_t print(long, int = DEC);
size_t print(unsigned long, int = DEC);
size_t print(double, int = 2);
size_t print(const Printable&);
size_t println(const __FlashStringHelper *);
size_t println(const String &s);
size_t println(const char[]);
size_t println(char);
size_t println(unsigned char, int = DEC);
size_t println(int, int = DEC);
size_t println(unsigned int, int = DEC);
size_t println(long, int = DEC);
size_t println(unsigned long, int = DEC);
size_t println(double, int = 2);
size_t println(const Printable&);
size_t println(void);
#include <stdarg.h>
#define PRINTF_BUF 80 // define the tmp buffer size (change if desired)
void printf(const char *format, ...)
{
char buf[PRINTF_BUF];
va_list ap;
va_start(ap, format);
vsnprintf(buf, sizeof(buf), format, ap);
for(char *p = &buf[0]; *p; p++) // emulate cooked mode for newlines
{
if(*p == '\n')
write('\r');
write(*p);
}
va_end(ap);
}
#ifdef F // check to see if F() macro is available
void printf(const __FlashStringHelper *format, ...)
{
char buf[PRINTF_BUF];
va_list ap;
va_start(ap, format);
#ifdef __AVR__
vsnprintf_P(buf, sizeof(buf), (const char *)format, ap); // progmem for AVR
#else
vsnprintf(buf, sizeof(buf), (const char *)format, ap); // for the rest of the world
#endif
for(char *p = &buf[0]; *p; p++) // emulate cooked mode for newlines
{
if(*p == '\n')
write('\r');
write(*p);
}
va_end(ap);
}
#endif
};
#endif