Hi everyone,
I a G.Suresh from Vi Microsystems. Now I am working with ZigBee CC2431 processor. If I enable the hex fil creation option the hex file is created, but the processor doesn't works and also the verification fails. If create the hex file without enable -M option and debug from IAR it works, but it provides the error "cannot got to main" on enabling the option run to main. in Debugger option. Any one please give the solution for this above problem.
The tools version are,
IAR v7.20H, Z-Stack v1.4.2, Flashp programmer v1.5.0....
Thanks in advance..
with regards,
G.Suresh....
Hi G. Suresh,
Are you using our CC2431ZDK kit? If you are, what HW platform BB, DB or EB boards. Any LED's toggling or if it is EB something on the LCD display?
What did you do with the IEEE address when you reflashed the board using the SmartRF Flash Programmer? Did you retain the address?
LPWRocks
"Customer Centricity, Enthusiasm, Mass collaboration and Great minds are the best path towards great products"
“Victory awaits him who has everything in order – luck people call it. Defeat is certain for him who has neglected to take the necessary precautions in time; this is called bad luck.” Roald Amundsen, The South Pole
Hi,
Thakn you for your reply. As you asked, I am using the CC2431ZDK kit only. When the program is loaded to the EB there is no indication inthe HW LED's or LCD. When it is loaded into BB there are also no indication in the HW LED. While downloading the code using Flash programmer I have enabled the option "Retain IEEE-address when programing". I have tried with -M option in the option before building the program then also I am Facing the same problem.
Please provide me the solution to create the hex file...
What about comparing hex files? Can you do this?
Compared the generated hex file from IAR with a readback file after programming from our Flash programmer.
An easy program that can do this comparison for you is WinDiff.
Hi G. Suresh.I am not very familiar with the Z-stack, but your problems of creating a proper .hex file might be related to some options for the linker that will handle the banking of code.Have you remembered to modify the linker file for correct generation of hexfiles?In f8w2430.xcl (is this the linker configuration file you use?), remove the comments for line 95 (may vary for Z-stack versions?)
// HEX FILE GENERATION//// Include the following line when generating hex file:-M(CODE)_BANK1A-1FFFF,28000-2FFFF,38000-3DFFF,3F000-3fff7=(_CODE_END+1)-0xFFFF,0x10000-0x17FFF,0x18000-0x1DFFF,0x1F000-0x1FFF7
[This should be one line of parameters. Alternatively, you can try to add this linker option as extra parameters (in IAR, first, select e.g. the Release build configuration (the one that should output the hex file), and goto Project Options -> Linker -> Extra option, and add it as extra command line option, then it will be added as an extra option in addition to what's found in the linker configuration file you use (.xcl)]
Rebuild. Hopefully the generated hex file should now be programmable with e.g. TI SmartRF Flash Programmer application.
Hi frnd,
Thank you very much. thanks a lot. Finally the hex file was generated correctly and it is working now. Initially I was using the -M option provided in the IAR user guide manual but now for the option given by you it is working. Can you tell me how that -M option can be writen according tio the .xcl file.....
G.Suresh.....