Matias, Greg,

Ok, I got it to boot to NSH. For some reason it doesn't work every time, so
I need to track that down. Sometimes it goes into a stack dump. But when it
does boot, it seems reliable.

Code is here for now:

https://github.com/starcat-io/incubator-nuttx/tree/feature/sama5d27-giantboard-support/boards/arm/sama5/giant-board

I'll try to get this to be more reliable and then do a PR.

-adam

On Thu, Aug 20, 2020 at 4:01 PM Adam Feuer <a...@starcat.io> wrote:

> Matias,
>
> Thanks for the help. It was an incorrect master clock setting for the
> board. I updated the Giant Board clock settings, and while I still can't
> fully boot NuttX, but I am getting some logging lines and stack traces on
> the serial port now. No garbage. :)
>
> -adam
>
>
>
> On Wed, Aug 19, 2020 at 10:41 PM Adam Feuer <a...@starcat.io> wrote:
>
>> Matias,
>>
>> Thanks, I have a logic analyzer and will try that when I pick it up
>> again. The weird thing about this is that I can use U-Boot on the serial
>> console on the Giant Board – it knows how to use the UART correctly. But
>> NuttX doesn't.
>>
>> Ah, that might be it– the two boards run at different frequencies. I am
>> trying to use a nuttx.bin compiled for the SAMA5-XULT. I will check out the
>> clock configuration and make one specifically for the Giant Board and its
>> frequency.
>>
>> -adam
>>
>> On Wed, Aug 19, 2020 at 10:32 PM Matias N. <mat...@imap.cc> wrote:
>>
>>> When I had this problem of the serial giving garbage I used a logic
>>> analyzer with pulseview and then try to hunt for a baud rate on the uart
>>> protocol decoder which would give a valid interpretation. Often I found the
>>> rate to be a multiple of the expected one which helped me figure out what
>>> was set incorrectly.
>>>
>>> But yeah, without real debugging it will be painful to use.
>>>
>>> Best,
>>> Matias
>>>
>>
>>
>> --
>> Adam Feuer <a...@starcat.io>
>>
>
>
> --
> Adam Feuer <a...@starcat.io>
>


-- 
Adam Feuer <a...@starcat.io>

Reply via email to