Search found 20 matches

by jurkstas
01 Sep 2019, 20:59
Forum: Hardware and software hacking
Topic: Expansion bus
Replies: 98
Views: 94874

Re: Expansion bus

This is impressive.

On the note of expansion bus, what would make more sense: PC/104, Apple 2 style (w or without decoding on the motherboard), S-100, something else but standard or something custom for Gigatron?
by jurkstas
28 Aug 2019, 15:12
Forum: Hardware and software hacking
Topic: Expansion bus
Replies: 98
Views: 94874

Re: Expansion bus

You are right, I'm just thinking about this out loud. But to be specific, I am thinking about GPIO, real time clock with battery backup, maybe storage device. Regarding 64k programs, do you mean mapping at, lets say, last 1kb? Peripherals could have memory range above 96k, starting at 0x30000, endin...
by jurkstas
21 Aug 2019, 20:21
Forum: Hardware and software hacking
Topic: Expansion bus
Replies: 98
Views: 94874

Re: Expansion bus

But what about a generic expansion port/bus for memory-mapped peripherals? Could the SPI be one of such peripherals, having it's own memory address/range? Or should it be an integral part of Gigatron sometime in the future?
by jurkstas
11 Aug 2019, 07:19
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 7547

Re: Assertion `offset < 0x10000lu' failed

I compiled the code with Arduino for ATMEGA2560 and here what it outputs: Sketch uses 10094 bytes (3%) of program storage space. Maximum is 253952 bytes. Global variables use 8092 bytes (98%) of dynamic memory, leaving 100 bytes for local variables. Maximum is 8192 bytes. Older variant, optimized fo...
by jurkstas
10 Aug 2019, 22:02
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 7547

Re: Assertion `offset < 0x10000lu' failed

Could it be that the compiled code doesn't fit in the memory available? Might be. Is there a way to check that? Is there a way to get something like this: Application uses 656 bytes (0%) of program storage space. Maximum is 253952 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving ...
by jurkstas
10 Aug 2019, 20:21
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 7547

Re: Assertion `offset < 0x10000lu' failed

That being resolved, should I move to another topic or just rename this topic to something like "compiling nanotode library" and continue with other troubles? Now I get this: Utils/lcc/build/lcc -ILibs Libs/test/main.o Libs/string/strcpy.o Libs/string/memset.o Libs/stdio/fflush.o Libs/stdi...
by jurkstas
10 Aug 2019, 20:01
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 7547

Re: Assertion `offset < 0x10000lu' failed

Played with #if 0 and found a line that causes it. int16_t is defined as int somewhere else. static void ctm_set_next_state(Connectome* const c, const uint16_t id, const int16_t val) { if(id < c->_neurons_tot) { if(val > 127) { c->_neuron_next[id] = 127; } // else if(val < -128) { //this here causes...
by jurkstas
10 Aug 2019, 17:19
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 7547

Re: Assertion `offset < 0x10000lu' failed

Thanks. I modified the local() to print what is in the debug() call and this is what I got. Looks like a runaway as you said: [..] local 32761 of size 2 @ offset 65518 local 32762 of size 2 @ offset 65520 local 32763 of size 2 @ offset 65522 local 32764 of size 2 @ offset 65524 local 32765 of size 2...
by jurkstas
10 Aug 2019, 16:02
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 7547

Assertion `offset < 0x10000lu' failed

Hi, I am trying to compile something and I get this output: rcc: ./build/gt1.c:4436: local: Assertion `offset < 0x10000lu' failed. Utils/lcc/build/lcc: fatal error in Utils/lcc/build/rcc Makefile:266: recipe for target '../nanotode/test/connectome.o' failed make: *** [../nanotode/test/connectome.o] ...
by jurkstas
06 Aug 2019, 16:36
Forum: Hardware and software hacking
Topic: Rudimentary vCPU support for the lcc C compiler
Replies: 16
Views: 18488

Re: Rudimentary vCPU support for the lcc C compiler

Hi all, my first post here. Thank you for doing this. It is fascinating! With one command from the root directory of the gigatron-rom repository we can build lcc: $ make lcc mkdir -p Utils/lcc/build cd Utils/lcc && env HOSTFILE=etc/gt1h.c make all cc -g -c -Isrc -o build/main.o src/main.c cc...