rt-thread/bsp/avr32uc3b0
Raman Gopalan 53caa15873 AT32UC3B: Update configuration files to define RT_BACKTRACE_LEVEL_MAX_NR 2023-10-24 09:53:48 -04:00
..
SOFTWARE_FRAMEWORK [SConscript]update group name 2020-12-19 16:49:11 +08:00
figures README for AVR32UC3B0: Initial commit 2023-10-17 11:22:07 -04:00
.config AT32UC3B: Update configuration files to define RT_BACKTRACE_LEVEL_MAX_NR 2023-10-24 09:53:48 -04:00
Kconfig Implement UART driver files for AT32UC3B: Working commit 2023-10-17 11:22:07 -04:00
README.md AT32UC3B: Fix compilation problem for BSP by defining RT_CPUS_NR (#8152) 2023-10-20 20:07:12 +08:00
SConscript AT32UC3B: Implement initial GPIO driver and app test function (#8164) 2023-10-23 14:00:07 +08:00
SConstruct Implement UART driver files for AT32UC3B: Working commit 2023-10-17 11:22:07 -04:00
application.c AT32UC3B: Implement initial GPIO driver and app test function (#8164) 2023-10-23 14:00:07 +08:00
avr32elf_uc3b0256.lds format link scripts 2023-01-08 22:52:13 -05:00
board.c AT32UC3B: Implement initial GPIO driver and app test function (#8164) 2023-10-23 14:00:07 +08:00
drv_gpio.c AT32UC3B: Implement initial GPIO driver and app test function (#8164) 2023-10-23 14:00:07 +08:00
drv_gpio.h AT32UC3B: Implement initial GPIO driver and app test function (#8164) 2023-10-23 14:00:07 +08:00
drv_uart.c AT32UC3B: Fix compilation problem for BSP by defining RT_CPUS_NR (#8152) 2023-10-20 20:07:12 +08:00
drv_uart.h Implement UART driver files for AT32UC3B: Working commit 2023-10-17 11:22:07 -04:00
rtconfig.h AT32UC3B: Update configuration files to define RT_BACKTRACE_LEVEL_MAX_NR 2023-10-24 09:53:48 -04:00
rtconfig.py Implement UART driver files for AT32UC3B: Working commit 2023-10-17 11:22:07 -04:00
startup.c Implement UART driver files for AT32UC3B: Working commit 2023-10-17 11:22:07 -04:00

README.md

MCUZone AT32UC3B0256 mini development board

Introduction

The AVR32 is a high performance, low power 32-bit Atmel AVR microcontroller. This board support package supports the MCUZone AVR32 mini development board (also known as the AVR32DEV1). The development board uses the AT32UC3B0256 microcontroller.

board-snap

Note: Unfortunately, the online link for the development board (both MCUZone OR Aliexpress) doesn't work. I don't have access to the schematic (OR Gerber information) for this development kit. I used a multimeter to look for the connected pins. If you - the reader - do have access to the schematic/pinouts, could you please reach out to me?

This README is essentially a work-in-progress. I will try to map the berg rows (J1 and J2) and document them as and when I further the device driver base for the target.

If you feel like reaching out to me for questions pertaining to the target development board, you can write to me: ramangopalan AT gmail dot com.

Supported compiler

This BSP is built with the AVR32 GCC that comes with the Microchip Studio. I am using the Microchip Studio version 7.0.2594. Make sure that avr32-gcc.exe is visible on your command line. Add the binary directory to you PATH. Yes, on Windows. Sorry :(

env-windows-avr32-gcc

I use Git Bash (Windows) for compiling the RT-Thread system. Once you set your path correctly, invoke Git Bash to query avr32-gcc.exe's version. The output should look similar to this:

$ avr32-gcc.exe --version
avr32-gcc.exe (AVR_32_bit_GNU_Toolchain_3.4.2_435) 4.4.7
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you see this, you're all set to compile RT-Thread for AT32UC3B0256.

Program firmware

Step 1: download the RT-Thread codebase and navigate to bsp/avr32uc3b0.

$ cd bsp/avr32uc3b0/

Step 2: build

scons -c
scons

Step 3: flash

If everything went well, scons should have generated an elf file: rtthread-uc3b0256.elf. Let us program the file. The program atprogram' comes with Microchip Studio. I didn't have to do much here. Just make sure atprogram.exe' is in your PATH.

atprogram -t atmelice -i jtag -d at32uc3b0256 program -f rtthread-uc3b0256.elf

Note that you should already see the on-board LEDs (PA7, PA8) blink if your programming was successful. I use the Atmel ICE programmer. To access msh, you'll need an FTDI breakout board. Connect the target board to the FTDI breakout with jumper wires:

  • GND (FTDI) to GND (development board)
  • RX (FTDI) to J2, pin 10.
  • TX (FTDI) to J2, pin 7.

Running Result

The output information on serial port for `ps' the command should look like this:

0x000003c0 tidle0    31  ready   0x00000054 0x00000100    67%   0x00000009 OK
0x00001650 tshell    20  running 0x000000b4 0x00001000    13%   0x0000000a OK
0x00000ac4 led2       5  suspend 0x0000007c 0x00000400    12%   0x0000000a EINTRPT
0x00001350 led1       5  suspend 0x0000007c 0x00000400    12%   0x00000005 EINTRPT

Peripheral Support

Drive Support Remark
UART Support UART0/1
GPIO - -
I2C - -
RTC - -
SPI - -
TIMER - -
WDT - -