| Author |
Message |
|
|
Posted: Jul 02, 2010 - 12:58 PM |
|

Joined: Feb 24, 2008
Posts: 102
|
|
Hello everyone ,
I am new to Zigbit
I am working on a project with ATZB 24 A2 modules .I am facing serious problems with programming those modules.
I have bought the modules and I am programming the module through JTAG using AVR dragon
But the problem is that the programmer does not always program the module and sometimes it shows the message in AVRDUDE that JTAG has been disabled
// ILLEGAL JTAG ID
//IS JTAG DISABLED
the following are the error messages
I have searched a lot for circuit to program it .Is ISP programming possible through Zigbit?
Thanks In Advance |
|
|
| |
|
|
|
|
|
Posted: Jul 02, 2010 - 07:29 PM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
|
SAINATH wrote:
But the problem is that the programmer does not always program the module and sometimes it shows the message in AVRDUDE that JTAG has been disabled
Looks like hardware problem on your side. What JTAG frequency do you use?
SAINATH wrote:
I have searched a lot for circuit to program it .Is ISP programming possible through Zigbit?
Connections for ISP are following: MISO(38), MOSI(39), RST(8), Vcc(24,25) and GND(9,22,23,35)?
I'm not sure if all Vccs and GNDs are connected internally. |
|
|
| |
|
|
|
|
|
Posted: Jul 03, 2010 - 08:13 AM |
|

Joined: Feb 24, 2008
Posts: 102
|
|
Thank you Alex for the reply.
After seeing the post I have gone through the Avrdude Manual to check the frequency and found it to be 1microsecond bit clock period.
Also I have a query .Is frequency of programming is decided by Avrdude or the AVRDragon with which we program?
Thank you for the ISP connections .Will try it out
Regards
Sainath |
|
|
| |
|
|
|
|
|
Posted: Jul 03, 2010 - 04:02 PM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
|
SAINATH wrote:
I have gone through the Avrdude Manual to check the frequency and found it to be 1microsecond bit clock period.
So it is 1 MHz frequency. It is rather high frequency, try something like 250 kHz (4 us period).
SAINATH wrote:
Is frequency of programming is decided by Avrdude or the AVRDragon with which we program?
It depends on implementation, I don't know how Dragon is designed. |
|
|
| |
|
|
|
|
|
Posted: Jul 04, 2010 - 03:30 PM |
|

Joined: Feb 24, 2008
Posts: 102
|
|
Thank you Alex,
I was able to program the Zigbit through ISP through Dragon.And sometimes the fuses get changed automatically and Avrdude shows that fuses have been changed.What should be my methodology to avoid that?
I will try ISP on all the chips I have and try to change their fuses for JTAG programming .
Regards
Sainath |
|
|
| |
|
|
|
|
|
Posted: Jul 04, 2010 - 03:42 PM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
|
SAINATH wrote:
What should be my methodology to avoid that?
I never programed ZigBits with something else than JTAGICEmkII but in my practice I programed a lot of AVR via lots of programmers and never seen fuses changes by themselves.
SAINATH wrote:
I will try ISP on all the chips I have and try to change their fuses for JTAG programming
Both ISP and JTAG are enabled by default on all modules. |
|
|
| |
|
|
|
|
|
Posted: Jul 06, 2010 - 09:38 AM |
|

Joined: Feb 24, 2008
Posts: 102
|
|
Yes both ISP and JTAG is enabled by default.
Do you have any schematic of Zigbit with both JTAG and ISP header and also with USB interface for bootloader.I have many boards and I want to have a generic PCB made for experimenting.
Thank you ,
Regards
Sainath |
|
|
| |
|
|
|
|
|
Posted: Jul 06, 2010 - 09:48 AM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
| Here is schematic for MeshBean board taken from meshnetics site while it was alive. |
|
|
| |
|
|
|
|
|
Posted: Jul 06, 2010 - 10:46 AM |
|

Joined: Feb 24, 2008
Posts: 102
|
|
Thank you Alex.
I already have the Mesh Bean Board so I have incorporated the test points as well as USB interface from that .I am now only left with the ISP header's .I will incorporate that too with a LED to each GPIO and prepare that .
Regards
Sainath |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 03:59 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Hi Alexru,
It it possible to use the isp programmer ATAVRISP2 to programm a RF? how can i check communication between 2 RF of Zigbit ATZB-24-A2R |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 04:54 PM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
|
newjou wrote:
It it possible to use the isp programmer ATAVRISP2 to programm a RF?
I've already answered this, yes it is possible. And there are a lot of posts on this forum on how to connect ZigBit to ISP programmer.
newjou wrote:
how can i check communication between 2 RF of Zigbit ATZB-24-A2R
Build any application from SDK and program them into modules. |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 05:42 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Thank for your answer Alexru.
In fact, i am not using a SDK or a developpement kit, I just have 2 Zigbit module so, after reading some document, I found that i may use
- 2 Zigbits
- Buy the isp programmer ATAVRISP2
- and finaly buy a UUSB-MB5 of 4D system to communicate with PC.
I have'nt test yet to check if I may need additionnel hardware to test without developement kit.
For software, I heart about AVRstudio4 and AVR2052: BitCloud? I am still looking for the appropriate use of Bitcloud if someone knows.
Actually, i am use to MPLAB and Labview, and I wanted to now if someone has already use one of them for Zigbit.
Thank |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 05:51 PM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
|
newjou wrote:
In fact, i am not using a SDK
SDK is a software package that you need to download from atmel.com. |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 06:48 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
Please Alex,
do you have any idea about other question I sent?
thanks |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 06:58 PM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
|
newjou wrote:
do you have any idea about other question I sent?
What questions? I personally don't care for MPLAB and Labview and I suspect that not a lot of people here do. |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 09:17 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
OK
does 2 Zigbit + JTAG + uUSB-MB5 are enough to test a radio transceiver?
Thanks |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 09:22 PM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
|
newjou wrote:
does 2 Zigbit + JTAG + uUSB-MB5 are enough to test a radio transceiver?
Depends on what do you mean by "test", if you can live without extensive output then you might use few LEDs for indication and get rid of uUSB-MB5. You haven't described your goal at all. |
|
|
| |
|
|
|
|
|
Posted: Oct 04, 2010 - 10:48 PM |
|

Joined: Oct 02, 2010
Posts: 39
|
|
For the moment,
I have'nt described a goal, I just want to test communication between 2 module. As input I will use a switch as DIO (digital Input Output) and joystick for ADC, for out put I will be using LEDs as DIO and a counter as DAC.
After all, I will get 6 more Zigbit to build a Network.
How will I test module if I unplug in computer?
Thank you Alex, your prompt answer helps me a lot. |
|
|
| |
|
|
|
|
|
Posted: Oct 05, 2010 - 06:04 AM |
|


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA
|
|
|
newjou wrote:
How will I test module if I unplug in computer?
None, of those tasks require interaction with computer. Download SDK and play with it, try to run sample applications from there. This is the only way I see. |
|
|
| |
|
|
|
|
|
Posted: Oct 20, 2010 - 06:01 AM |
|


Joined: Sep 09, 2010
Posts: 85
Location: san diego CA US
|
|
Hi Neujou,
I read your post about using Labview & Zigbit. The RZ Raven kit has a USB stick that shows up (enumerates) as a COM port, after you install the Windows driver for it.
I have used NI-MAX to connect to the COM port and the serial write & read VI (look at examples) will read the ASCII strings in Labview. Set the baud = 38400 and use 8N1.
I just ordered a Zigbit-A2 and will try using the AT commands in BitCloud to read the COM port messages.
I hope this helps. |
|
|
| |
|
|
|
|
|