OLIMEX SAM7-EX256 board & freertos

Hello to all

I’m, almost, new to AMR micros but not to 8-bit micros. Anyway…

I just bought the board mentioned above and i managed to download a binary freertos image to the at91sam7 micro using free tools from inside a linux box (SUSE 10.1). I expected to, at least, ‘ping’ the board at it’s default ip address (172.25.218.205) but nothing happens. At the hardware level one of it’s leds (i mean the one of the two leds located on the ethernet plug on the board) flashes every almost 4 seconds concurrently with the led indication on my hub panel i use to connect to the PC. Anyone to suggest something? Thank you in advance…

Manuel

Well, I know nothing about this specific board, but as i happened to me in the past with IP-related tools, there’s always a chance that either the board ip is wrong or it is waiting for dhcp or the gateway is not setup correctly or whatever… so my solution was to start a network packet sniffer and see what is going on on at the ip layer. At least you’ll know if the board is sending something and from that you might even assess the problem.

Hope this helps,

Ste

Thank you “monzasteeve” for your reply. I used “ethereal” and shows me nothing coming from the OLIMEX board. Having in mind that the led is flashing every 4 seconds it seems that - maybe - the board is reseting or something… Any other suggestion?

If this AMR micro is really an AVR micro then you are in the wong section of this forum.

Regards.

Are you on the same subnet as the board? 172.25.218.205 is an odd IP for a LAN. Let me know how you make out, I am interested in using this board as well.

Of course I am. I use 172.25.218.20 and about the oddity of the address it’s the default adress the freertos is configured with. Another point is that is used cross connection UTP cable, in an other configuration i used a hub with direct connections and the ethereal (sniffer) shows me nothing coming from the SAM7-EX256 in both cases. I also tested the binary image coming from “FreeRTOS Open Source AT91SAM7X-EK Demo” (“webFreeRTOS.binâ€

Hi:

I also have this board, and also I had downloaded the demo, but from www.freertos.org.

I had downloaded the program to flash from IAR, with Macraigor Wiggler clone JTAG, and it seems that the board is not fully compatible. I will try to modify the ‘board.h’ file and what I could in order to try to put it to work, but I’m pretty new to the embedded OS (I’m mostly an AVR programmer).

Has somebody had success with this board?

Will post anything that I could find about this, but some help would be needed.

Guillem.

What kind of processor is ‘Shakira’?

Wrong forum for that.

I am trying to get uip working on the olimex board also. See my post on the topic “SAM7-EX256 TCP/IP Stack”.

I have found out already that some LED port pins on the ATMEL board are responsible for the clicks I hear from the speaker on my Olimex board.

I will get the time and try to adapt the board stuff. It seems necessary.

However, I imagine Olimex is probably aware of the problem. It would be good if thes publish a file that makes the SW compatible to theri board.

In the meantime let’s start work. Print out both schematics, compare and change code…

Eduardo

When I got my ping to work on Olimex sam7x256 board, I needed to change the id for PHY. Also delays were needed when power up PHY.

These could be the difference from Atmel’s board. But I didn’t use FreeRTos.

I just uploaded TCP-IP demo code based on FreeRTOS on our web, tuned for our board

Best regards

Tsvetan

Works fine.

Thanks.

Eduardo

I downloaded the FreeRTos code from Olimex site. But when I tried to rebuild the Flash Debug I got this Fatal Error in Linking:

Fatal Error[e72]: Segment INTRAMSTART_REMAP must be defined in a segment definition option (-Z, -b or -P)

Am I missing something or I need a different version of IAR?

Thank you,

Kelly

I also have a problem using this example.

I patched the code, because I have some leds at the EXT connector - so I can see the flashing…

But ethernet is not working… no ping.

If I try to debug, it seems the initialisation is not working, but I have no clue why.

My first question would be:

how do I have to set the jumpers?

What else can get wrong here?

TIA

Marc

See my board working @ http://munterundlustig.dyndns.org/

Use the target “Flash Release”. The other one is buggy. I still get a lot of warnings that do not sound healthy but no errors. It would be great if someone had the time to use WinMerge and merge the fixes into the newest FreeRTOS release :).

On your Windows PC execute “command”, then “ipconfig” to see yout network IPs and standard gateway.

If your ips are 192.168.123.xxx for example try 192.168.123.30 for UIP_IPADDR0…3 and 192.168.123.01 for UIP_DRIPADDR0…3 in uipopt.h.

Then visit “http://192.168.123.30/” with your browser.

If you want to conect through internet you need to have a DSL router that supports dynamic dns. My FritzBox from AVM does.

Get a server name @ dyndns.org. Then configure your DSL router to pas port 80 to 192.168.123.30(see above), port 80.

Than you should see your board on my_server_name.dyndns.org.

I want to see all your boards running. Tell me the server names.

Good luck.

Eduardo

My board produces a lot of dropped packets and ip errors. See stats below. Any hint?

E.

stats:

IP Packets dropped 4459

Packets received 5671

Packets sent 911

IP errors IP version/header length 931

IP length, high byte 0

IP length, low byte 0

IP fragments 0

Header checksum 0

Wrong protocol 0

ICMP Packets dropped 0

Packets received 0

Packets sent 0

Type errors 0

TCP Packets dropped 0

Packets received 1215

Packets sent 914

Checksum errors 0

Data packets without ACKs 0

Resets 0

Retransmissions 5

No connection avaliable 0

Connection attempts to closed ports 0

Eduardo,

I have still no luck…

what did you had to do, to fix your initial problem?

Was it just the wrong IP-Adresses?

BR

Marc

Hi Marc

My initial problem was a (newer) version of freertos/uip that didn’t contain the patches that Olimex applied to the (older) version they placed on their site. Taking their code and editing the IP adresses made my board run.

Why don’t you just run ipconfig and post the results and your settings in uipopt.h here.

Another hint is to keep IAR EWB connected and press “run”. If you want to run the board without JTAG you must disconnect power for some seconds. The RST-pushbutton doesn’t work properly.

E.

It works. It was my router ;-(.

Several ports (on the router) were down, but the LEDs showed the right status.

After a router reboot, everythings worked just like I expected.

BR

Marc

Hey Eduardo,

I also got Ethernut running. See my other post in the forum

BR

Marc