I don't think that the SAM3X8E supports the UDP module. Looks like it
supports UDPHS which would be different:
https://www.microchip.com/wwwproducts/en/ATsam3x8e#additional-features
See also arch/arm/include/sam34/chip.h.
There is a hardware/sam_udphs.h header file, but I don't see any udphs
driver.
I would say that the driver has never been implemented.
There is a sama5/sam_udphs.c driver. Perhaps that could be backported
if the IP is the same?
Greg
On 12/23/2019 6:08 PM, Adam Feuer wrote:
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
<mailto: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 <mailto:a...@starcat.io>>