DA14580-01 goes for Hardfault after execution SystemInit function

7 posts / 0 new
Last post
shiva
Offline
Last seen:5 years 1 month ago
Joined:2015-01-19 12:23
DA14580-01 goes for Hardfault after execution SystemInit function

Hi,

We have build custom board(Buck configuration) and DA14580-01 is running with 16Mhz crystal(even 32Khz crystall also available on board), we are able to download Hex file through Keil ide.
So, after download trying to debug the code but after execution of SystemInit function cpu is entering to Hardfault.

Kindly help us for resolving this issue.

Thanks
Shiva

shiva
Offline
Last seen:5 years 1 month ago
Joined:2015-01-19 12:23
Both sleep modes were

Both sleep modes were disabled.
No OTP programmed.
No external flash.

JE_Dialog
Offline
Last seen:1 month 3 days ago
Staff
Joined:2013-12-05 14:02
你好湿婆,你可以提供

你好湿婆,你可以提供some more details :

- what hex code are you downloading ? is this a standard project or your own.

- if you try to load a simple project like a beacon into your HW, do you see it advertising /working (lets see if we can verify if the HW is working ) ?

- can you confirm you are using development mode ? (since not burnign OTP - instead downloading to SRAM)

- what is the specific error message that you see ?

BR JE_Dialog

-

shiva
Offline
Last seen:5 years 1 month ago
Joined:2015-01-19 12:23
- We developed code for

- We developed code for expert kit and same code is working on development expert kit.
- No advertising packets.
- I believe its loading into SRAM(Debug mode), How to confirm development mode?
- There is error message directly it goes for hardfault.

shiva
Offline
Last seen:5 years 1 month ago
Joined:2015-01-19 12:23
Just now downloaded reporter

Just now downloaded reporter_fh project and result was same!!!

shiva
Offline
Last seen:5 years 1 month ago
Joined:2015-01-19 12:23
Some times i got following

Some times i got following warning,

* * *限制版本n with 32768 Byte Code Size Limit
*** Currently used: 26584 Bytes (81%)

SP = _RDWORD (0x20000000)
$ = _RDWORD (0x20000004)
**JLink Warning: T-bit of XPSR is 0 but should be 1. Changed to 1.

XPSR is changed to 1 after executing SystemInit function then it would enter into Hardfault handler.

RvA
Offline
Last seen:1 week 6 days ago
Staff
Joined:2014-02-07 14:10
Hi Shiva,

Hi Shiva,

Can you provide us the schematics of your design? We can take a look and see if there is something wrong related to the hardware. I will contact you directly.

Best regards, RvA