Search found 21 matches

by Maxxie
Fri Apr 05, 2013 7:26 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Giovanni, can you please explain IRAM2 definition in compiler options? What address is it? Why is it only 1 byte long?
by Maxxie
Wed Mar 27, 2013 1:25 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

It seems Ethernet MTU is 1500 max. in my system.
by Maxxie
Tue Mar 26, 2013 8:43 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Giovanni wrote:The frame size is set to 1522 which is the maximum. Probably it is because the IPv4 header is up to 20 bytes long.

Frame length is 1514 max. Look for this packet:
by Maxxie
Tue Mar 26, 2013 8:11 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

I need 1500 bytes according to max. Ethernet MTU. Excluding 8 bytes of ICMP header and 16 bytes IPv4 header it should be 1476 bytes for ICMP ping payload.
by Maxxie
Mon Mar 25, 2013 8:44 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

I don`t what this pulses are but after configuring I/O pins Ethernet become works. :D

Why the maximum data payload for ping packets is 1472 bytes? What part of code define this limit? STM32 accept up to 8KB packets and contain 2KB FIFO buffer.
by Maxxie
Mon Mar 25, 2013 5:25 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Is this correct form of RXDV falling edge? I can see this eight pulses constantly at falling edge. Is it defined by RMII?
by Maxxie
Sun Mar 24, 2013 7:56 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Hi Giovanni,
CH_IRQ_HANDLER(ETH_IRQHandler) {
uint32_t dmasr;

CH_IRQ_PROLOGUE();

dmasr = ETH->DMASR;
ETH->DMASR = dmasr; /* Clear status bits.*/

if (dmasr & ETH_DMASR_RS) {
/* Data Received.*/
chSysLockFromIsr();
chSemResetI(&ETHD1.rdsem, 0);
#if MAC_USE_EVENTS ...
by Maxxie
Fri Mar 22, 2013 7:12 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Once the buffers are filled no more interrupts are be triggered until the frames are removed by the upper layer. Probably by placing the breakpoint the buffers get filled immediately while the CPU is stopped.

Giovanni
I supposed that existing demo code process incoming frames. Because contain web ...
by Maxxie
Fri Mar 22, 2013 6:29 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

I have solved problem with MAC<->PHY communication. The problem was in remapping RXD0, RDX1 and RXDV pins by USART3 according to initial Olimex board schematic.

Now I see coming packets on RMII interface by oscilloscope. CH_IRQ_HANDLER(ETH_IRQHandler) called only once during runtime. Both if (dmasr ...
by Maxxie
Thu Mar 21, 2013 8:51 pm
Forum: STM32 Support
Topic: [DONE] Starting ChibiOS on STM32F107 with Keil
Replies: 34
Views: 23290

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

No, the PHY address was correct. At startup PHY has default address 0x1 caused buy his internal pull-up and pull-down. The function mii_find_phy() works properly. Link goes down and then up during MCU startup when PHY address selected properly.

If you mean CH_IRQ_HANDLER(ETH_IRQHandler) , this ...