Skip to content

Commit baa5b76

Browse files
Tx and Rx working!
1 parent 56ad53a commit baa5b76

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

connectivity/drivers/emac/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7_eth_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ void EthInitPinmappings(void)
5353
RMII_MII_TX_EN --------------------> PG11
5454
RMII_MII_TXD0 ---------------------> PG13
5555
RMII_MII_TXD1 ---------------------> PB13
56+
57+
NOTE: Must install JP6 and JP7 on board to use Ethernet.
5658
*/
5759
/* Configure PA1, PA2 and PA7 */
5860
GPIO_InitStructure.Speed = GPIO_SPEED_HIGH;

connectivity/drivers/emac/include/GenericEthDMA.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ namespace mbed {
147147
txReclaimIndex = (txReclaimIndex + 1) % MBED_CONF_NSAPI_EMAC_TX_NUM_DESCS;
148148
++txDescsOwnedByApplication;
149149

150-
tr_info("Reclaimed descriptor %zu", txReclaimIndex);
150+
tr_debug("Reclaimed descriptor %zu", txReclaimIndex);
151151

152152
returnedAnyDescriptors = true;
153153
}
@@ -192,7 +192,7 @@ namespace mbed {
192192
}
193193
}
194194

195-
tr_info("Transmitting packet of length %lu in %zu buffers and %zu descs\n",
195+
tr_debug("Transmitting packet of length %lu in %zu buffers and %zu descs\n",
196196
memory_manager->get_total_len(buf), memory_manager->count_buffers(buf), neededDescs);
197197

198198
// Step 2: Copy packet if needed
@@ -565,7 +565,7 @@ namespace mbed {
565565
}
566566
#endif
567567

568-
tr_info("Returning packet of length %lu, start %p from Rx descriptors %zu-%zu\n",
568+
tr_debug("Returning packet of length %lu, start %p from Rx descriptors %zu-%zu\n",
569569
memory_manager->get_total_len(headBuffer), memory_manager->get_ptr(headBuffer), *firstDescIdx, *lastDescIdx);
570570

571571
return headBuffer;

0 commit comments

Comments
 (0)