I'm working on a new project on the 2650 evaluation module and the Smart RF06 evaluation board with IAR for ARM. I downloaded the CC26xxware_2_21_03_15980 to get the necessary library and startup files. The startup file is startup_iar.c which executes as soon as I reset, and includes the functions trimDevice() and then a call to __iar_program_start().
As soon as I try to run the first executable line in main(), I get sent to FaultHandlerISR(). The first line is a call to the library function GPIODirModeSet() to set two GPIO pins to outputs. Looking at the registers, I see that in CFSR in the system Control block has bits PRECISERR and BFARVALID set. Looking at CPU registers, IPSR is set to 0x00000003 indicating a hardware fault.
My guess is that there is something simple that needs to be set up or initialized that I am missing. Any hints on where to look?
The project will eventually be developed on the CC1310, but I suspect this startup issue is part of the ARM core.
Thanks,
Mike Marks