AVR BASIC Computer....

Hey

Been trying to get this to run for some time now, I have been messing around with the code and trying to fix it but its beyond my skill level.

Im told the latest is GitHub - fuzzymannerz/AVR-BASIC-Computer: An updated version of https://hackaday.io/project/3537-avr-basic-computer-v01 to work with Arduino IDE >=1.8

I guess what i want to know is anyone get this to work ? and what did they do ... so i can do the same ....

I had was thinking get tiny basic ( https://github.com/BleuLlama/TinyBasicPlus ) and try to put the tvout and ps2keybord on this .....

Honestly i want to do this basic computer so bad...... and i dont think my skill level is quite there .....

i really need to know what to do.... somehow i think im not doing something right.... I tryed to fix the code spieeprom.h and sepieeprom.cpp and open it in notepad++ .....look for #include <WProgram.h> and change it to

#include <Arduino.h>

than i got this one ----------------------------------------------------------------------------------------------

AVR_BASIC_Computer_V0.1:309:33: error: variable 'keywords' must be const in order to be put into read-only section by means of 'attribute((progmem))'

static unsigned char keywords[] PROGMEM = {

Tryed to fix with this code-----------------------------------------------------------------

static const unsigned char keywords[] PROGMEM = {

Anyway .... i really need help has anyone gotten this to work for them ? can i download an older ide or something?????

I know its asking alot ....... but i cant stop thinking about this basic computer ..... anyone know of an update or a better way to do this???

Did you see this comment, in your link to the "latest"? Claims to work with current versions of Arduino.

An updated version of AVR BASIC Computer V0.1 | Hackaday.io to work with Arduino IDE >=1.8

jremington:
Did you see this comment, in your link to the "latest"? Claims to work with current versions of Arduino.

yeah tried that one .... :frowning:

I think he is still using original mighty 1284p 16mhz bootloader and board .....and that aparently only works on arduino 1.0

current error

Arduino: 1.8.9 (Windows 7), Board: "ATmega1284, Standard, 1284P, 2.7v, Disabled (default), 16 MHz external"

C:\Program Files\Arduino\libraries\ps2uartKeyboard\PS2uartKeyboard.cpp:136:49: error: variable 'scan2ascii_noshift' must be const in order to be put into read-only section by means of 'attribute((progmem))'

static PROGMEM unsigned char scan2ascii_noshift[] = {

^

C:\Program Files\Arduino\libraries\ps2uartKeyboard\PS2uartKeyboard.cpp:155:47: error: variable 'scan2ascii_shift' must be const in order to be put into read-only section by means of 'attribute((progmem))'

static PROGMEM unsigned char scan2ascii_shift[] = {

^

exit status 1
Error compiling for board ATmega1284.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

must be const

Does it get any clearer?

AWOL:
Does it get any clearer?

I dunno does it?? i have no idea what its asking me to do

It's telling you, not asking, to make the entity a constant.

Right .... but how do i do that? i know i have to actually declare the array as const.... but i have no idea how

How to declare a constant int:

const int x=0;

It is possible to look up language specifications, using your favorite search engine.

what do i do with const int x=0;

where do i put it?

PS2uartKeyboard.cpp ??????? im so fn lost .... people act like they know whats going on but do you really? ..... people keep telling me yeah its an easy fix ..... hell it dont seem like it ....

what do i do with const int x=0;

You could use the example to learn how to declare a constant.

If your skills are at or below that level, expect extreme frustration when tackling such a complex project.

new error

Arduino: 1.8.9 (Windows 7), Board: "ATmega1284, Standard, 1284P, 2.7v, Disabled (default), 16 MHz external"

avrcomp:306:28: error: uninitialized const 'program' [-fpermissive]

static const unsigned char program[kRamSize];

^

C:\Users\Messcommand\Documents\Arduino\avrcomp\avrcomp.ino: In function 'void loop()':

avrcomp:992:17: error: invalid conversion from 'const unsigned char*' to 'unsigned char*' [-fpermissive]

program_start = program;

^

avrcomp:994:16: error: invalid conversion from 'const unsigned char*' to 'unsigned char*' [-fpermissive]

sp1 = program+sizeof(program); // Needed for printnum

^

avrcomp:995:40: error: invalid conversion from 'const unsigned char*' to 'unsigned char*' [-fpermissive]

stack_limit = program+sizeof(program)-STACK_SIZE;

^

avrcomp:1005:16: error: invalid conversion from 'const unsigned char*' to 'unsigned char*' [-fpermissive]

sp1 = program+sizeof(program);

^

exit status 1
uninitialized const 'program' [-fpermissive]

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

static const unsigned char program[kRamSize];

error: uninitialized const 'program'

You've told the compiler you want a constant array, but you haven't told it what the constants should be.

Question is.... Did i connect things right .....

Ok so i think i got the code to work?! it can verify now....

I have been using this schematic and arduino as isp ..... and i added a 10uf cap on the reset and g .

I get this error when compiling , does it mean that the atmega1284pu will not work with the atmega1284p??? or is it finding my arduino isp and saying thats not the right one .....

I think i got the wiring done right sorry for thr bad pics i cant seem to put the good ones i have on there


Arduino: 1.8.9 (Windows 7), Board: "ATmega1284, Standard, 1284, 2.7v, Disabled (default), 16 MHz external"

Sketch uses 15236 bytes (11%) of program storage space. Maximum is 130048 bytes.
Global variables use 8064 bytes (49%) of dynamic memory, leaving 8320 bytes for local variables. Maximum is 16384 bytes.
avrdude: Expected signature for ATmega1284 is 1E 97 06
Double check chip, or use -F to override this check.
Wrong microcontroller found. Did you select the right board from the Tools > Board menu?

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

does it mean that the atmega1284pu will not work with the atmega1284p?

No. The message means you gave the loader the wrong device signature, by choosing the wrong board.

You should select the correct microcontroller. If the correct one can't be found, you can create a new "boards" definition, or modify an existing one.

Alternatively, you can try overriding the signature check, as the error message suggests. No guarantees that will work.

jremington:
No. The message means you gave the loader the wrong device signature.

You should select the correct microcontroller. If the correct one can't be found, create a new "boards" definition, or modify an existing one to correct the signature.

Alternatively, you can try overriding the signature check, as the error message suggests. No guarantees that will work.

create a new "boards" definition, or modify an existing one to correct the signature. ??? that sounds good.... how do i do that?

Try selecting the correct board, first.

Good luck with your project, I'm out.

i swear i have the right one I downloaded 3 dif bord managers they all give me the same

avrdude: Expected signature for ATmega1284P is 1E 97 05
Double check chip, or use -F to override this check.
Wrong microcontroller found. Did you select the right board from the Tools > Board menu?

it has to be the fact its a atmega1284pu right???