Search found 7 matches

by jurkstas
11 Aug 2019, 07:19
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 157

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: 157

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: 157

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/stdio/getchar....
by jurkstas
10 Aug 2019, 20:01
Forum: Hardware and software hacking
Topic: Assertion `offset < 0x10000lu' failed
Replies: 11
Views: 157

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: 157

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: 157

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: 15
Views: 2460

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 -g -c -...