[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[uracoli-devel] IC Radio Stick
From: |
Karl Fessel |
Subject: |
[uracoli-devel] IC Radio Stick |
Date: |
Wed, 17 Jun 2009 11:55:52 +0200 |
User-agent: |
Mozilla-Thunderbird 2.0.0.19 (X11/20090103) |
Sehr geehrte µ(u)racoli Entwickler,
gegenwärtig versuche ich unter anderem den von euch als suppoted angegenben
In-Circuit ICradio USB Stick mit Hilfe von uracoli in Betrieb zu nehmen leider
gelingt mir das nicht.
Bei Verwendung eures Headers erhalte ich folgende Meldung (rdiag Beispiel):
RADIO ERROR : 1 radio status : 0x00:0x00:0x00
Da sich das Layout des Sticks scheibar geändert hat habe ich einen neuen Header
geschriebn (Anhang) bei Verwendung dieses Headers erhalte ich folgende Meldung:
RADIO ERROR : 1 radio status : 0x00:0x11:0x00
mit freundliche Grüßen Karl Fessel
--English version:
Hi uracoli developers,
I'm currently trying to run uracoli on the In-Circuit ICradio USB Stick (it's
listed in ur supported hardware list), but i'm not able to make it work.
If i try to run it with the board header (ict230) included within uracoli (
rdiag example) i get the following message:
RADIO ERROR : 1 radio status : 0x00:0x00:0x00
if i try to run it with a alternated header (see attachment) (cause the layout
seems to have changed) i get the following message:
RADIO ERROR : 1 radio status : 0x00:0x11:0x00
Yours Karl Fessel
/* Copyright (c) 2007 Axel Wachtler
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the authors nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. */
/* $Id: board_ict230.h,v 1.9 2009/05/18 05:26:25 awachtler Exp $ */
/**
* @ingroup grpBoard
* @file
* @brief Definition 2.4G Module from In-Circquit with AT86RF230 and Atmega1281
(V1.0)
*
*
* The wiring of the radio and the ATmega is shown below:
*
<pre>
ATmega1281 AT86RF230
---------- ---------
PB1 --> SCK
PB2 <-- MOSI
PB3 --> MISO
PB0 --> SEL
PB4 --> SLP_TR
PB5 --> TRX_RESET
PD4/ICP1 --> IRQ
PD6/T1 <-- CLKM
PG5 --> LED Interface
Fuses:
LF: 0xe2 - 8MHz internal RC Osc.
HF: 0x11 - without boot loader
HF: 0x10 - with boot loader
EF: 0xff
LOCK: 0xef - protection of boot section
Bootloader:
Start at byte=0x1e000, address=0xf000, size = 4096 instructions/ 8192 bytes
</pre>
@par Build Options
- ict230 : Incirquit Module
*/
/** ID String for this hardware */
#define BOARD_NAME_ICSTICK230 "icstick230"
#ifndef BOARD_ICSTICK230_H
#define BOARD_ICSTICK230_H
#define BOARD_TYPE (ICSTICK_RF230)
#define BOARD_NAME BOARD_NAME_ICSTICK230
/*=== Compile time parameters ========================================*/
#ifndef MAX_FRAME_SIZE
# define MAX_FRAME_SIZE (127) /**< maximum allowed frame size */
#endif
#ifndef DEFAULT_SPI_RATE
# define DEFAULT_SPI_RATE (SPI_RATE_1_4)
#endif
#ifndef P0
# define P0 (0)
# define P1 (1)
# define P2 (2)
# define P3 (3)
# define P4 (4)
# define P5 (5)
# define P6 (6)
# define P7 (7)
#endif
/*=== Hardware Components ============================================*/
#define CPU_TYPE (CPU_M1281) /**< used CPU (see const.h)*/
#define RADIO_TYPE (RADIO_AT86RF230) /**< used radiio (see const.h)*/
/*=== TRX pin access macros ==========================================*/
#include "base_rdk230.h"
/*=== LED access macros ==============================================*/
/* stick settings */
#define LED_PORT PORTD
#define LED_DDR DDRD
#define LED_MASK (0x10)
#define LED_SHIFT (4)
#define LEDS_INVERSE (1)
#define LED_NUMBER (1)
/*=== KEY access macros ==============================================*/
#define NO_KEYS
/*=== Host Interface ================================================*/
#define HIF_TYPE HIF_UART_1
/*=== TIMER Interface ===============================================*/
#define HWTMR_PRESCALE (8)
#define HWTIMER_TICK ((1.0*HWTMR_PRESCALE)/F_CPU)
#define HWTIMER_TICK_NB (1000UL)
#define HWTIMER_REG (TCNT1)
#define TIMER_TICK (HWTIMER_TICK_NB * HWTIMER_TICK)
#define TIMER_POOL_SIZE (4)
/**
* @brief Initialisation of TIMER1 (16bit timer)
*
* - CSxxx=b010: Prescaler = 8
* - WGMxxxx = b0100: Mode = 4 (CTC Mode)
* - OCR1A = 1000
* Prescaler = 8 / Mode 4, CTC mit OCR1A = 1000
* @ F_CPU = 8MHz this results in 1ms timer tick IRQ's.
*/
# define TIMER_INIT() \
do{ \
TCCR1B |= (_BV(CS11) | _BV(WGM12)); \
TIMSK1 |= _BV(OCIE1A); \
OCR1A = 1000; \
}while(0)
# define TIMER_IRQ_vect TIMER1_COMPA_vect
/*=== OSCCAL tuning =================================================*/
#ifndef TUNED_OSCCAL
# define TUNED_OSCCAL (0xbf) /* default is 0xb1, but @2.9V 0xbf is better */
#endif
#endif /* BOARD_ICT230_H */
- [uracoli-devel] IC Radio Stick,
Karl Fessel <=