⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Stone_wang
Offline
Last seen:6 days 23 hours ago
Joined:2015-10-23 03:55
rwip_init() error

sdk:5.0.4
chip:da14580 QFN48 ,
vcc : 3.3v
Project:\SDK 5.0.4\SDK 5.0.4\DA1458x_SDK_5.0.4\DA1458x_SDK\5.0.4\projects\target_apps\ble_examples\ble_app_profile\Keil_5\ble_app_profile.uvprojx

I have a da14580 demo board ,qfn40, and I use jlink connect to the demo board ,use ble_app_profile.uvprojx to debug ,it is ok.
but,
I had designed a test board ,(qfn48), and I use the same project :ble_app_profile.uvprojx to debug ,but it always error after call rwip_init() .
但作品测试板可以运行。uvprojx。
Q1: what's wrong with my test board ?
Q2: can I remove the 32kHz crystal ,just use 16MHz crystal ?
attachment is my schematic
Thanks.

Device:
MT_dialog
Offline
Last seen:2 months 4 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Stone_wang,

Hi Stone_wang,

1) I dont see anything wrong with your schematic. Perhaps this occurs due to soldering problems, floating pins, bad joints etc

2) Since you are operating in buck mode that means that the XTAL32 is not mandatory and you can switch the low power clock to the RCX20 in order to test it, if you
dont want to use any low power clock that means that the device should always be awake and it will never sleep.

Thanks MT_dialog

Stone_wang
Offline
Last seen:6 days 23 hours ago
Joined:2015-10-23 03:55
I checked the soldering again

I checked the soldering again, It seems no problems. but it still the same question . And ,soldering three board (they are the same question ).
And i check the crystal , I found ,the 32kHz is not exact(about 36kHz or other) it is ok?( I also check the demo board,it is 34kHz)。And the 16Mhz crystal is 15.998MHZ。
Q1: Is the crystal ok ?
Q2 : What should I do with this phenomenon ?

MT_dialog
Offline
Last seen:2 months 4 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Stone_wang,

Hi Stone_wang,

Try to disable the sleep mode and operate only with the 16MHz clock, also try to swict from the XTAL32 to the RCX and check. Also when you mention that after rwip_init() you get error what the device does ? where the code ends up, hardfault ? The frequency of the XTAL16 should be 16MHz +-40ppm (untrimmed) and for the XTAL 32.768 +-50 ppm, +-500 ppm max by the 580 specification. Regarding the issue you are experiencing i dont think that this is due to the clocks that you have, a similar issue that we ve encountered turned out to be a bad joint.

Thanks MT_dialog