Other Parts Discussed in Thread: SYSBIOS, AMIC110, , DP83848M, MATHLIB
Tool/software: TI-RTOS
I was hoping there was a 335x example project for one of the EVM or beagle boards that uses the NDK with interrupts. i have been looking at NIMU_BasicExample_bbbAM335x_armExampleProject but that seems to be set up for polling, but i could be wrong. i don't see anywhere in that project where interrupts are initialized. i am also pretty unsure what most of the setup does since i am new to starterware and Soc and the documentation is so sparse for TI-RTOS.
my main issue is getting the interface from NDK to hardware to function and i was hoping i could find an example since there is no documentation on how to set it up (that i found).
my init code is:
/* Chip configuration MII/RMII selection */
SOCCtrlCpswPortMacModeSelect(1, ETHERNET_MAC_TYPE_RMII);
SOCCtrlCpswPortMacModeSelect(2, ETHERNET_MAC_TYPE_RMII);
EMAC_socGetInitCfg(0, &cfg);
cfg.port[0].phy_addr = EMAC_CPSW_PORT0_PHY_ADDR_UTI;
cfg.port[1].phy_addr = EMAC_CPSW_PORT0_PHY_ADDR_UTI;
cfg.macModeFlags = EMAC_CPSW_CONFIG_MODEFLG_FULLDUPLEX;
EMAC_socSetInitCfg(0, &cfg);
NIMUDeviceTable[nimu_device_index++].init = &CpswEmacInit ;
NIMUDeviceTable[nimu_device_index].init = NULL ;
i have the NDK set up in SYSBIOS and it does run. it goes as far as detecting a cable is plugged in but nothing after that (i am expecting DHCP client to be running, which it is because it times out with a failure, but the network does not respond - Yes, the network does do DHCP)
i believe i have all the clocks enabled. using the clock tree tool i see that all the clocks but one come on when you enable the module, but i am unsure of where to turn on the 250MHz clock or how to verify it is already on. i am not sure which register controls it