Hi Mario –
I am not using Sleep Mode. The issue happens whether I am debugging (JTAG via Beyond Studio for NXP IDE) or not debugging.
I have tried it on two different boards, so I expect that it is not due to a damaged part.
I have attached some screenshots for you.
In the screenshot, you will see that I am using the same code as you provided.
I did try adding the call to vAHI_ProtocolPower( TRUE ), but it fails just the same with or without this call.
You can see on my TeraTerm Screenshot that the code hangs when vAHI_ApSetBandGap() is called, I never get to the next DBG_vPrintf().
I have also included a screenshot of what happens when the Debugger is running and it hits this call.
Everything else in my code runs fine, I’m using many peripherals (SPI, SCI, Timers, EEPROM, etc) they all are working with no problem.
The 802.15.4 Stack runs fine and communicates wirelessly with other nodes just fine.
I am running the CPU Clock at 32MHz. I even tried leaving it at the default 16MHz out of Reset, but that didn’t help.
There has to be an explanation for this – something else that’s not set right, or something that’s missing – why would the call to vAHI_ApSetBandGap() hang?
I was unable to locate the project you suggested I flash (JN-AN-1218) if you can send me the zipped project I can try flashing it, although it may have either Hardware or Firmware dependencies which might cause trouble when trying to load it onto my Hardware.
I hope you can ask your resources and find out what conditions would cause the call to vAHI_ApSetBandGap() to not return. Knowing that might help identify the problem.
Thank you for your help Mario,
Matt