Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mknoll
PostPosted: Nov 15, 2009 - 05:44 PM
Rookie


Joined: Aug 09, 2005
Posts: 30


I hooked up a ATZB-24-A2 ZigBee module to a FTDI TTL-232R-3V3 USB->Serial cable. I have a 3.3v regulator supplying power to the module.

I am attempting to use SerialNet, the AT-command set that comes pre-programmed on the module. When I open the serial port in realterm or hyperterminal, I get no response. I am using 38400 baud 8N1, no flow control.

I see 3.3v on a few of the JTAG pins, so I believe the chip is getting power. Unfortunately, I do not have a JTAG programmer to peak in through JTAG.

I have checked and re-checked the solder connections and wiring.

Does anyone have any ideas about what might be wrong? Any ideas on how to further debug this?

Thanks,
Mike
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Nov 15, 2009 - 08:10 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4860
Location: San Jose, CA

mknoll wrote:
I am attempting to use SerialNet, the AT-command set that comes pre-programmed on the module.


I don't really think that SerialNet comes preprogrammed. Modules come with bootloader preprogrammed and SerialNet SREC image is in SDK. Try to connect with PC-part of bootloader to the module and see if it can upload images.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
mknoll
PostPosted: Nov 15, 2009 - 09:23 PM
Rookie


Joined: Aug 09, 2005
Posts: 30


I couldn't find the serial bootloader EXE for download. I did find the specs for the bootloader:

http://www.meshnetics.com/netcat_files/ ... ide%29.pdf

I wrote a quick perl script to repeatedly output the HANDSHAKE_REQ and print out any reply. I plugged in the device, ran the script and pressed reset a few times. I did not receive any output.

It seems to be an issue with the serial communication. I tried swapping the TXD/RXD signals, and setting them to inverse RS232 in FDI's config utility.
 
 View user's profile Send private message  
Reply with quote Back to top
mknoll
PostPosted: Nov 16, 2009 - 02:52 AM
Rookie


Joined: Aug 09, 2005
Posts: 30


I found Atmel/Meshnetic's bootloader. The installer is in the BitCloud SDK, in the Bootloader directory, called BootloaderSetup_1.1.0.12.jar. The .jar extension threw me off.

SerialNet does not come on the module. Running the bootloader uploader with the SerialNet .srec included in the SDK worked.

Now to determine how my application that attempted to start the bootloader handshack was flawed.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Nov 16, 2009 - 06:50 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4860
Location: San Jose, CA

mknoll wrote:
called BootloaderSetup_1.1.0.12.jar. The .jar extension threw me off.

In new release it would be .exe, don't know why it's jar there Smile

mknoll wrote:
Now to determine how my application that attempted to start the bootloader handshack was flawed.


Unfortunately I can't give you the code for bootloader.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
uracolix
PostPosted: Nov 16, 2009 - 07:37 AM
Hangaround


Joined: Jun 17, 2008
Posts: 454
Location: Meissen, Germany

Silly question, is the Atmel/Meshnetic's bootloader any derivate of a commonly used
bootloader like AVR109 or STK500v{1,2} ? In this case avrdude would be the tool of choice.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
alexru
PostPosted: Nov 16, 2009 - 07:44 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4860
Location: San Jose, CA

uracolix wrote:
Silly question, is the Atmel/Meshnetic's bootloader any derivate of a commonly used
bootloader like AVR109 or STK500v{1,2} ? In this case avrdude would be the tool of choice.


I believe not, it can accept SREC-s (transformed into binary) and write eeprom and flash. No extended command set.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
mknoll
PostPosted: Nov 17, 2009 - 05:23 AM
Rookie


Joined: Aug 09, 2005
Posts: 30


Quote:

I don't really think that SerialNet comes preprogrammed. Modules come with bootloader preprogrammed and SerialNet SREC image is in SDK. Try to connect with PC-part of bootloader to the module and see if it can upload images.


I confirmed with Atmel support, the Meshnetic branded devices come with the bootloader and SerialNet, the Atmel branded devices only have the bootloader.

Quote:

Unfortunately I can't give you the code for bootloader.


Well, I'm not looking to write my own bootloader, I was only trying to send something to the module to get a response. Since I found I can use the bootloader application, I'm set.

Quote:

In new release it would be .exe, don't know why it's jar there


Do you know where I can obtain the .exe? the .jar does not seem to support uploading to the eeprom, does the .exe?
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Nov 17, 2009 - 08:03 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4860
Location: San Jose, CA

mknoll wrote:
Do you know where I can obtain the .exe? the .jar does not seem to support uploading to the eeprom, does the .exe?


They both do but this is not separate function, just put EEPROM contents at address 0x00810000 in SREC file and it will be uploaded.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits