Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: Problems when running the EndPoint code in EZ430-RF2500 wireless sensor network demo with CCS 6.1.3

$
0
0
Hello Everyone, I am trying to set up the demo application for the EZ430-RF2500 kit by using CCS 6.1.3. To make it compile and run on the Acces Point side I had to make some compiler configuration changes, namely: -Set the compiler version to TI v15.12.1.LTS -Change output version to eabi(ELF) -Change runtime support library to rts430_eabi.lib. The AP seems to be working fine with these settings, however the End device side did not seem to do anything. I tried debugging and the execution seems to get stuck in the nwk_frame.c file, nwk_buildFrame function at the following line: .... PUT_INTO_FRAME(MRFI_P_PAYLOAD(&fInfoPtr->mrfiPkt), F_ENCRYPT_OS, 0); PUT_INTO_FRAME(MRFI_P_PAYLOAD(&fInfoPtr->mrfiPkt), F_PORT_OS, port); PUT_INTO_FRAME(MRFI_P_PAYLOAD(&fInfoPtr->mrfiPkt), F_TRACTID_OS, sTRACTID); while (!(++sTRACTID)) ; /* transaction ID can't be 0 */ /* mrfiPkt), F_RX_TYPE, sMyRxType); PUT_INTO_FRAME(MRFI_P_PAYLOAD(&fInfoPtr->mrfiPkt), F_HOP_COUNT, hops); .... The while loop is never exited as the sTRACTID is never updated. By looking at the address of the variable it points to a location outside RAM, somewhere in the register address space which. This is confirmed by the map file also, the .data segment is located in the area dedicated for peripheral registers: .data 0 00000010 0000005b UNINITIALIZED 00000010 00000026 nwk.obj (.data:sPersistInfo) 00000036 00000009 mrfi.obj (.data) 0000003f 00000001 bsp.obj (.data) 00000040 00000008 nwk_frame.obj (.data) 00000048 00000007 main_ED.obj (.data) 0000004f 00000001 nwk_api.obj (.data) 00000050 00000007 nwk_join.obj (.data) 00000057 00000001 nwk_globals.obj (.data) 00000058 00000007 nwk_link.obj (.data) 0000005f 00000001 nwk_ping.obj (.data) 00000060 00000004 mrfi.obj (.data:mrfiRxFilterAddr) 00000064 00000004 vlo_rand.obj (.data) 00000068 00000003 nwk_mgmt.obj (.data) I checked the map file of the AP and I found the same thing although the AP seems to be working fine (at least the temperature reading and serial data sending). What am I missing here? Any help would be very appreciated. Thanks in advance, Stefan

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>