This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2640R2F: Reset problem continue

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hi, 

I posted recently a similar problem in 

My belief was that the problem had been found, but now it has appeared again.

The problem is that the CC2640R2F lock up during reset, and will not start up. The code is based on the simple_peripheral_oad_offchip.

We are using a custom board, but much of the same setup as CC2640R2F_LAUNCHXL. Using CCS, on template Simple_peripheral_oad_offchip from SDK 1.50.

The problem is that when I flash the chip using Flash programmer 2, the code lock up during reset, and does not start /or restart. 

If I program and start the chip using debugging in CCS, everything works just fine, and the code start up on the board. Disconnecting the debugger by pushing stop, lets the code run fine. But every time the code hit a HAL_SYSTEM_RESET(), the power down happen, but the code never start up after the reset har been triggered.

I have moved the code over into the Simple_peripheral_stacklibrary for testing. The code run just fine in this template, all resets and startups are happening correctly. This makes me believe that the hardware work as it should.

This makes me think that there is something in the BIM, or with the jump addresses set during startup when using a BIM, or with a pin setup used by the BIM in a way.

I am using external flash on our custom board, the pins are set to:


#define FLASH_CS IOID_10
#define SPI0_MISO IOID_8 
#define SPI0_MOSI IOID_9 
#define SPI0_CLK IOID_7 

These differ a bit from the CC2640R2F_LAUCHXL. I have changed these in bsp.h(BIM project).

Are there any other peripherals or settings I need to check to ensure no errors are happening here during startup?

Any other idea of what can be the problem, or where I can start to look?