Thanks Greg.

When I manually edit the .config file and add this:

CONFIG_SAM34_UDP=y

Then try to make again, I get a bunch of errors for missing defines
(PMC_UDP, SAM_IRQ_UDP, etc.). These seem to be defined in
arch/arm/src/sam34/hardware/sam_pmc.h, but only for CONFIG_ARCH_CHIP_SAM4S
or CONFIG_ARCH_CHIP_SAM4E, not for SAM3 like the Arduino Due:

https://github.com/apache/incubator-nuttx/blob/master/arch/arm/src/sam34/hardware/sam_pmc.h#L212

I tried to follow these undefined identifiers and made some changes that
got nuttx to compile. But when I flash nuttx.bin to the board using bossac,
I get a blinking RX light, which indicates a panic.

Here's the changes I made:

https://github.com/apache/incubator-nuttx/compare/master...adamfeuer:feature/arduino-due-ethernet-over-usb

I guess I need to debug this too. :) Any tips? Did I do something wrong
with these modifications?

cheers
adam


On Mon, Dec 23, 2019 at 11:43 AM Gregory Nutt <spudan...@gmail.com> wrote:

> ..., but I'm down to this last missing function:
> > void up_usbinitialize(void)
>
> Defined here:
>
> $ grep -r up_usbinitialize arch/arm/src/sam34
> arch/arm/src/sam34/sam_udp.c: * Name: up_usbinitialize
> arch/arm/src/sam34/sam_udp.c:void up_usbinitialize(void)
> arch/arm/src/sam34/sam_udp.c:   * in when up_usbinitialize() was first
> called.
>
> Sound like a configuration problem:
>
>
> 146 ifeq ($(CONFIG_SAM34_UDP),y)
> 147 CHIP_CSRCS += sam_udp.c
> 148 endif
>
>

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

Reply via email to