IQRF DS-DPA-02 Скачать руководство пользователя страница 9

QUICK START

C-programming

Programming in C language is needed:

When DPA is used and given ready-to-use hardware profile has to be extended by a user-specific Custom DPA handler. 

When the application is written under IQRF OS, without DPA.

Programming in C language is not needed when DPA is used and some existing Custom handler is to be used or no
Custom handler is required at all.
If DPA is used, once the hardware profile is uploaded, it is not necessary to upload it any more when just the Custom
DPA handler is changed.
The Startup Package contains a demo Project, either for DPA (

HWP-demo

) or non-DPA (

E00-START

) approach and a

series of examples in the 

Examples/

 subdirectories to be utilized as needed:

1.

Using a ready-made example

  (without modifications): Add  a  

.HEX

  file to the Project and upload it into DCTR

module plugged in CK-USB-04A by the  

F5

  key  (

Programming/Upload

). (This must be enabled in the  Project

window.)

2.

Using an example with possible modification:

 Add a source program (with the  

.C

  extension) to the Project,

make modifications by editing (if desired) and compile it from the C language to the 

HEX

 format by the 

F10

 key

(Project/Build Target).

 Upload resulting .

HEX

 file similarly as in the case 1 above.

3.

Creation of a new  program:

  Use the  

CustomDpaHandler-Template.c

  or  

Template.c  

empty source file

and continue similarly as in the case 2 above.

Refer to the IQRF IDE Help to learn about configuring the Project.

Design steps

1. Plug the TR into CK-USB-04A kit and run IQRF IDE.
2. Open a new Project (

Project/New Project

) and specify TR module type 

(Project/Properties/TR Module).

3. If you do not intend to modify or display a source code but to upload an existing code only, add required 

.IQRF

 or

.

HEX

 file to the Project 

(Project/Add Existing Item)

 and go to step 7.

4. Add required source file (one of examples, e.g. 

CustomDpaHandler-Timer

E09-LINK.c

 or empty template

CustomDpaHandler-Template.c

 or 

Template.c

 to the Project 

(Project/Add Existing Item)

.

5. Make possible modifications and save them then (in the text editor).
6. Compile the program by the 

F10

 key 

(Project/Build Target)

. If any error is reported by the compiler, go to step 5 to

correct it. The result is a compiled code in the 

.HEX

 format stored in the Project.

7. Program the code into the module by the 

F5

 key 

(Programming/Upload).

8. After uploading the application is just invoked. It is possible to debug it by the IQRF IDE.  See chapter  

Debug

below.

9. Then the transceiver can be carried e.g. to another development kit or to an end user equipment. 

Typical repeated “loop” during development is: 

Edit

Save

 (Ctrl+S), 

Compile

 (F10), 

Upload

 (F5), 

Debug

.

Refer to chapter 

DPA

 for detailed step by step instructions for DPA usage without programming..

Refer to the 

IQRF Video tutorial set

 and 

IQRF IDE training video

 

 .

Caution: 

The TR module can be plugged / unplugged into / from the SIM connector while powered off only.

Tip:

 In case of CK-USB-04A the SW2 pushbutton (the one closer to SIM connector) can be used for this. The TR

module is not powered while the SW2 pushbutton is held.

Note:

 The IQRF IDE reports a state of the TR module at the bottom bar of the main IDE window. T he 

SPI not active

message need not mean a missing or damaged TR. It is issued if SPI communication is not activated which depends
on the application running in the module.  SPI communication can be forced by switching the TR module in the
programming mode by  

F6

  key  

(Programming/Enter  Programming Mode).

  The application in the TR module is not

running in the programming mode. 

© 2015  MICRORISC s.r.o.

www.iqrf.org

Quick_Start_Guide_IQRF_ 150805

Page 9

Содержание DS-DPA-02

Страница 1: ...IQRF Quick Start Guide For IQRF OS v3 07D and higher For IQRF IDE v4 30 and higher 2015 MICRORISC s r o www iqrf org Quick_Start_Guide_IQRF_ 150805 Page 1...

Страница 2: ...and uploading procedure 8 Other development test and service utilities 8 C programming 9 Design steps 9 Debug 10 Application examples 10 Quick start with HWP without programming 11 Demo HWP vs Genera...

Страница 3: ...DS START 04 see below or DS DPA 02 see chapter DS DPA 02 development set contains all HW needed for effective start up DCTR transceivers RF transceiver modules DCTR 72DA fitting to SIM connector They...

Страница 4: ...r charging but not for USB connectivity USB device DCTRs can also be hosted by CK USB 04A connected to PC via USB It enables to control the DCTR application from PC first of all by the IQRF IDE powerf...

Страница 5: ...ug and play thanks to the E09 LINK program which is uploaded in all TR modules in development sets delivered from the factory It is one of Basic examples from the Startup package and can be uploaded w...

Страница 6: ...r IQRF OS The functionality is given by the application program in C language This approach can be implemented also with TR transceivers without the DC prefix supporting only Demo hardware profiles Fo...

Страница 7: ...ASCII text e g Windows Notepad can be used Notepad a great source code editor free by GPL License is very recommended Download it from www notepad plus plus org The editor is not necessary when using...

Страница 8: ...essary when using hardware profiles without a Custom DPA handler Upload uploading the code into the DCTR module either a hardware profile possibly with a Custom handler or a user specific application...

Страница 9: ...y add required IQRF or HEX file to the Project Project Add Existing Item and go to step 7 4 Add required source file one of examples e g CustomDpaHandler Timer E09 LINK c or empty template CustomDpaHa...

Страница 10: ...the W register MCU accumulator should be used to distinguish the active breakpoint location Macro breakpoint w can be used for simplicity See IQRF macros h header file and basic example E06 RAM for ex...

Страница 11: ...s are indicated by LEDs flashing by default DS DPA 02 development set To learn DPA usage development set DS DPA 02 can be used DCTR 72DAT IQRF smart transceiver 6 pcs CK USB 04A IQRF programmer and de...

Страница 12: ...testing within the room select 15 For operating in real conditions select 0 for TR 7xD or 5 for TR 5xD This settings must be the same in the entire network Do not change other parameters for now Save...

Страница 13: ...hould be cleared from the Coordinator memory first Click the Clear All Bonds in IQMESH Network Manager window tab Control IQMESH Number of bonded Nodes should be 0 see the screenshot below C Activate...

Страница 14: ...eenshot below should appear B Place Nodes in longer distance between each other with respect to current RX Filter selected in TR Configuration For test purpose it is recommended to reduce the range us...

Страница 15: ...dress in NADR box for Broadcast use address 0xFF and click the Send button Go to LED macros and click on macro Set LEDR on To switch all LEDs on fill in 0xFF in NADR and Click Send button Use various...

Страница 16: ...SW1 close to USB connector Shortly press button SW2 Green LED shines for about 2 s Release the SW1 button immediately once the green LED stops shining If the node is successfully unbonded red LED is f...

Страница 17: ...mplementation in IQRF TR modules It is needed only if you design one s own SPI master to communicate with the TR module TR module datasheet User s guides of development kits used IQRF USB drivers Inst...

Страница 18: ...All information contained in this publication is intended through suggestion only and may be superseded by updates without prior notice No representation or warranty is given and no liability is assum...

Отзывы: