You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Adam Feuer <ad...@adamfeuer.com> on 2020/03/10 15:59:26 UTC
Giant Board update
I got my Giant Board yesterday and worked on it for about an hour last
night. I got the DBGU serial terminal working with U-Boot, and was able to
make an SDCard that will boot to the U-Boot that comes with the Giant
Board. I can fatload nuttx.bin. But when I run (go 0x20008040) nuttx
doesn't boot. Doing the same sequence on the SAMA5D2-XULT results in nuttx
booting...
The U-Boot version is different, so maybe the memory map is different? Or
maybe the way U-Boot sets uo the chip? It's using a device tree set up for
Linux. I also don't have an SWD debugger so can't debug right now.
That's where things stand. If anyone has any ideas on how to proceed I
would love to know them.
-adam
--
Adam Feuer <ad...@adamfeuer.com>
Re: Giant Board update
Posted by Gregory Nutt <sp...@gmail.com>.
> I'll see if I can adapt the dramboot config for the SAMA5D27. I'll probably
> have to set up SWD debugging... for that I need an adapter for my JLink,
> and I'll need to solder some wires onto the GiantBoard SWD pads.
>
> ...
>
> You might be able to use J-link with U-boot too. Put a breakpoint at
> 0x20008040 and see what happens.
Try the above first.
Re: Giant Board update
Posted by Adam Feuer <ad...@starcat.io>.
Thanks Greg. You mentioned running from SDRAM before. I read the dramboot
section, now I understand this a little better.
My .config for the SAMA5D27-XULT has these two settings:
CONFIG_SAMA5_BOOT_SDRAM=y
CONFIG_BOOT_RUNFROM_SDRAM=y
So I think I am doing this already on the SAMA5D27-XULT, but it's using
U-Boot directly, not using the dramboot.
I'll see if I can adapt the dramboot config for the SAMA5D27. I'll probably
have to set up SWD debugging... for that I need an adapter for my JLink,
and I'll need to solder some wires onto the GiantBoard SWD pads.
cheers
adam
On Tue, Mar 10, 2020 at 9:23 AM Gregory Nutt <sp...@gmail.com> wrote:
>
> > ... I can fatload nuttx.bin. But when I run (go 0x20008040) nuttx
> > doesn't boot. Doing the same sequence on the SAMA5D2-XULT results in
> nuttx
> > booting...
>
> When I worked with the SAMA5D4-EK, I used a tiny bootloader that I wrote
> called dramboot. It make debug a lot easier. See
> boards/arm/sama5d4-ek/README.txt
>
> You might be able to use J-link with U-boot too. Put a breakpoint at
> 0x20008040 and see what happens.
>
> NOTE: I see that the Giant board in now in stock at Mouser US for $62.50
>
>
--
Adam Feuer <ad...@starcat.io>
Re: Giant Board update
Posted by Gregory Nutt <sp...@gmail.com>.
> ... I can fatload nuttx.bin. But when I run (go 0x20008040) nuttx
> doesn't boot. Doing the same sequence on the SAMA5D2-XULT results in nuttx
> booting...
When I worked with the SAMA5D4-EK, I used a tiny bootloader that I wrote
called dramboot. It make debug a lot easier. See
boards/arm/sama5d4-ek/README.txt
You might be able to use J-link with U-boot too. Put a breakpoint at
0x20008040 and see what happens.
NOTE: I see that the Giant board in now in stock at Mouser US for $62.50