Overview of the ATEB40x Evaluation Board

This picture above shows the ATEB40x Evaluation Board (User Guide and Schematic) :

  • Evaluation Board based on AT91x40 series
  • 5.0V DC-only power supply
  • Two serial ports
  • Reset push button
  • Four user-defined push buttons
  • Eight LEDs
  • 256Kb 16-bit SRAM (upgradeable to 512K Bytes)
  • 1Mb 16-bit Flash
  • 512Kb of EEPROM with two-wire interface access (controlled by a software two wire interface)
  • 20-pin JTAG interface connector
  • AT91FR40162 daughter board, with 256K Bytes of On-chip SRAM and 1024K Words 16-bit Flash Memory (Datasheet)

Jumper Settings:

  • SW1: 1-2 and 3-4 → To use the internal flash of the AT91FR40162
  • SW2: open
  • SW3: 1-2 → Boot Mode Select is low level
  • SW6: 1-2 → The AT91 core is powered by 1.8V power supply
  • SW7: 1-2 → Doesn't really matter since we're using the internal flash

JTAG Connection to PC/ Flashing Microcontroller

In order to flash the AT91FR40162 daughter board, you need to use the above displayed JTAG dongle.

  1. Download the SEGGER J-Link software and documentation pack: http://www.segger.com/cms/jlink-software.html?step=2&file=JLink_424e (Serial number: 20001900)
  2. After installation open the J-Flash ARM software
  3. “File→Open project …”, then select Directory: …/SEGGER/JLinkARM_V424d/Samples/JFlash/ProjectFiles/ and pick “AT91FR40162.jflash”
  4. In “File→Open data file …” you can select .bin or .hex files for flashing
  5. With “Target→Connect” you can connect to the microcontroller and then flash it by selecting “Target→Program & Verify”
  6. Finally, you need to select “Target→Start Application”
  7. You might need a software activation code which you find in the protected section of this wiki

Using ImageCraft for Coding

Here's some sample code with the correct project options: at91_imagecraft.rar. The sample code provides different test functions:

  • led3_toggle() - simple toggle of LED
  • putcharUART0(char sendChar) - send single character (uart0)
  • receive_send_char() - receive single character and echo it back (uart0)
  • send_buffer() - send a buffer with data (uart0)
  • receive_send_buffer() - receive 10 characters of data and send back 5/10 characters (uart0)
  • press_button() - if button SB5 pressed → all LEDs on

After compiling the code you can flash the microcontroller with the .bin-file as described in the section “JTAG Connection to PC/ Flashing Microcontroller”.

  • Keine Stichwörter