[DONE] Starting ChibiOS on STM32F107 with Keil

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Maxxie
Posts: 21
Joined: Mon Mar 18, 2013 2:56 pm

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Post by Maxxie »

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:
Attachments
Frame.gif
Frame.gif (67.64 KiB) Viewed 3964 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Post by Giovanni »

I mean, it is set to 1522 in the driver.

#define STM32_MAC_BUFFERS_SIZE 1522

Giovanni
Maxxie
Posts: 21
Joined: Mon Mar 18, 2013 2:56 pm

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Post by Maxxie »

It seems Ethernet MTU is 1500 max. in my system.
Maxxie
Posts: 21
Joined: Mon Mar 18, 2013 2:56 pm

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Post by Maxxie »

Giovanni, can you please explain IRAM2 definition in compiler options? What address is it? Why is it only 1 byte long?
Attachments
Keil IRAM2.jpg
Keil IRAM2.jpg (78.15 KiB) Viewed 3949 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [TODO] Starting ChibiOS on STM32F107 with Keil

Post by Giovanni »

Hi,

Since the free Keil compiler does not allow proper scatter files that dummy RAM section is used to calculate the end of the memory heap. In the linker tab you can see how it is used.
It is one byte long to make evident it is not an error but intentional, only the start address is used.

Giovanni
Post Reply