Failed to write DCT

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I can't modify DCT by application.

Programming DCT by WICED IDE successes.

But wiced_dct_write() returns WICED_ERROR.

For example, the result of snip.dct_read_write is like below.

==========

Modifying MAC address in Wi-Fi Config Section

Original mac_address:  02:0A:F7:38:DD:D4

Modified mac_address:  02:0A:F7:38:DD:D4

----------------------------------------------------------------

Modifying string_var in App Section

Original string_var: The DCT says hi!

Modified string_var: The DCT says hi!

==========

wiced_network_up() also outputs following error.

==========

Failed to write ap list to DCT:

==========

AP information is not stored to DCT and then it can't connect the AP again.

This is letting me stop development.

It happens on two boards now.

And other boards work well with same application.

Does anybody know something about this?

Board: BCM943362WCD4_EVB

SDK: 3.1.2

OS: ThreadX

Network: NetXDuo

1 Solution

Try following command first!

"./tools/OpenOCD/Win32/openocd-all-brcm-libftdi" -f ./tools/OpenOCD/BCM9WCD1EVAL1.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f ./tools/OpenOCD/stm32f2x-flash-app.cfg -c "flash erase_sector 0 0 11" -c shutdown

View solution in original post

6 Replies
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

The snip app of dct_read_write (...\apps\snip\dct_read_write)  demonstrates to update the MAC address and more. Please check the sample application for reference.

16:07:45.768: ----------------------------------------------------------------

16:07:45.768:

16:07:45.768: Wi-Fi Config Section

16:07:45.768:     device_configured               : 0

16:07:45.768:     stored_ap_list[0]  (SSID)       : YOUR_AP_SSID

16:07:45.784:     stored_ap_list[0]  (Passphrase) : YOUR_AP_PASSPHRASE

16:07:45.784:     soft_ap_settings   (SSID)       : WICED Device

16:07:45.784:     soft_ap_settings   (Passphrase) : WICED_PASSPHRASE

16:07:45.799:     config_ap_settings (SSID)       : WICED Config

16:07:45.799:     config_ap_settings (Passphrase) : 12345678

16:07:45.799:     country_code                    : AU0

16:07:45.799:     DCT mac_address                 : 02:0A:F7:F7:97:2C

16:07:45.815:

16:07:45.815: ----------------------------------------------------------------

16:07:45.815:

16:07:45.815: Application Section

16:07:45.815:     uint8_var               : 99

16:07:45.815:     uint32_var              : 99999999

16:07:45.830:     string_var              : The DCT says hi!

16:07:45.830:

16:07:45.830:

16:07:45.830: ----------------------------------------------------------------

16:07:45.830:

16:07:45.830: Modifying MAC address in Wi-Fi Config Section

16:07:45.862: Original mac_address:  02:0A:F7:F7:97:2C

16:07:45.862: Modified mac_address:  00:12:FE:ED:BE:AD

16:07:46.127:

16:07:46.127:

16:07:46.127: ----------------------------------------------------------------

16:07:46.127:

16:07:46.127: Modifying string_var in App Section

16:07:46.142: Original string_var: The DCT says hi!

16:07:46.142: Modified string_var: I've been modified!

Seyhan

0 Likes
Anonymous
Not applicable

Hi,

I did the sample application; snip.dct_read_write.

And it doesn't work on some boards as reported.

Do you have any idea about this?

0 Likes
Anonymous
Not applicable

I have the same error,do you work out it?

0 Likes

Try following command first!

"./tools/OpenOCD/Win32/openocd-all-brcm-libftdi" -f ./tools/OpenOCD/BCM9WCD1EVAL1.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f ./tools/OpenOCD/stm32f2x-flash-app.cfg -c "flash erase_sector 0 0 11" -c shutdown

lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

thanks for your reply!

the problem has been work out .

thanks

蒲晓波 Iovine Pu

Embedded Software Engineer

M: +86 187 8009 1108 E:xiaobo.pu@enno.com

enno electronics Co., Ltd.

www.enno.com

T: +86 (0)28-8339 3233 F: +86 (0)28-8332 9233

B3007, Mol Center, NO.28 Tianfu Avenue, Chengdu, CHINA

重要提示:本邮件及其所有附件均属机密信息,并且属于其拥有者、或者受到不得泄漏之保护。如您并非期待之收信者,请您电话或电邮通知其发信者,并从您的系统 中删除本邮件及其所有附件;同时您不可以拷贝本邮件或其任何之附件,或将其内容披露至任何他人。如您因任何差错而收到此邮件,请您即刻通知发信人,并即刻 删除本邮件及其所有附件。本邮件包含的任何有法律约束力的声明须经我们以信函或传真的方式确认后方生效。

IMPORTANT NOTE: This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient,please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or any attachment or disclose the contents to any other person. If you have received this transmission in error, please notify the sender immediately and then delete all of it. Any legally binding declaration needs to be confirmed in writing via letter or telefax to be valid.

0 Likes
Anonymous
Not applicable

correct!

0 Likes