tapasco icon indicating copy to clipboard operation
tapasco copied to clipboard

Allow loading of programs which are not a multiple size of 8 Bytes on Ultra96

Open Markussha opened this issue 2 years ago • 2 comments

Error Description

When loading a program (e.g. simple_sum) on ultra96, a Bus Error occurs if the program is not a multiple of 8 Bytes in size.

Expected Behaviour

A program of any size should load.

Current Behaviour

A Bus Error occurs:

[root@alarm bld]# ./simple_sum_host /home/alarm/simple_sum.bin 
Finished reading binary file. Received 16401 bytes.
Bus error (core dumped)

Workarounds

This can be fixed by introducing an 8-aligned section filled with 8 Bytes at the end of the linker file (but this is a dirty hack.

Markussha avatar Jan 04 '23 13:01 Markussha

This should probably be moved to https://github.com/esa-tu-darmstadt/tapasco-riscv, sorry

Markussha avatar Jan 04 '23 14:01 Markussha

Moved: https://github.com/esa-tu-darmstadt/tapasco-riscv/issues/26

Markussha avatar Jan 04 '23 14:01 Markussha

We should be able to close this due to #368, shouldn't we?

yannickl96 avatar Apr 15 '24 12:04 yannickl96