RISC-V/HiFive memory limitations

Denis Obrezkov denisobrezkov at gmail.com
Mon Jun 19 22:37:04 UTC 2017


2017-06-20 1:23 GMT+03:00 Hesham Almatary <heshamelmatary at gmail.com>:

>
>
> On Tue, Jun 20, 2017 at 7:33 AM, Denis Obrezkov <denisobrezkov at gmail.com>
> wrote:
>
>> 2017-06-20 0:19 GMT+03:00 Joel Sherrill <joel at rtems.org>:
>>
>>> Check the value in gdb without loading it on a target.
>>>
>>> Gdb hello.exe
>>>
>>> p symbol
>>>
>>
>>> Since it is a constant, it should be as expected. If it is, you have a
>>> code loading issue.
>>>
>> Yes, it is 512 in gdb, as expected. So, is the problem with linkcmd file?
>>
>>>
>>> Is that value by any chance an instruction?
>>>
>> No don't think so.
>
>
>> How to check whether it is an instruction or not?
>>
>> You can check if this value might match with any riscv32 instruction
> encodings (I believe it doesn't). See Chapter 19 (RV32/64G Instruction Set
> Listings) user-level riscv-spec 2.3-draft. You can also use
> riscv32-rtems4.12-objdump on your binary and search for this value.
>
> I was also able to run gdb, connect to the target,  change the value of
>> the variable to 512,
>> reconnect to the target, make loading and read the value equal to 512.
>>
>>
>>
>> --
>> Regards, Denis Obrezkov
>>
>
>
>
> --
> Hesham
>

I didn't find this value in objdump
I think that .data section wasn't properly initialized, does it look
reasonable?

-- 
Regards, Denis Obrezkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170620/d173ea22/attachment-0002.html>


More information about the devel mailing list