- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can anyone help with this Issue.
We have contacted Cypress and They asked us To create a Testcase.
Even after that we are not getting help from those people.
I have Been Debugging SflashWrite.tcl and I Found that
In waf/sflash_write/sflash_write.tcl =>
I made some Chages
=>in procedure => proc program_sflash { filename foffset dataSize destaddr cmd }
=>from line 225 =>
while { ($resultval == 0xffffffff) && ( $loops < 100 ) } {
#sleep 100
#set resultval [memread32 $result_loc 1]
incr loops
}
set resultval [memread32 $result_loc 1]
puts "****************** Murali-resultval: $resultval"
if { $resultval != 0 } {
halt
#reg
#exit -1;
}
Only Few Things I have Commented out.
It Originally Looks Like This:
while { ($resultval == 0xffffffff) && ( $loops < 100 ) } {
sleep 100
set resultval [memread32 $result_loc 1]
incr loops
}
if { $resultval != 0 } {
halt
reg
exit -1;
}
=> When I do These changes I m able to download Bootloader,DCT,Apps Successfully
But I think it is not running.i.e I m not getting any Logs.
Hope This helps you to help us out
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I fixed the Issue. Problem was =>
Inside init_sflash()->get_capabilities() function was Unable to find
definitions and Capabilities of SPI flash we had used. I added the Device Capabilities to the array and the issue was solved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which Wiced SDK version are you using? Also are you facing this problem specifically on BCM43907 based eval board or did it work on other BCM boards? Can you attach error logs for analysis?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I m Working With BCM43907 Custom Board and When I try to Download and Run I am Getting error while downloading the binary.
Error:
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Error: Debug regions are unpowered, an unexpected reset might have happened
Error: error restoring dfar/dfsr - dscr = 0xffffff3f
Error: Debug regions are unpowered, an unexpected reset might have happened
Error: Debug regions are unpowered, an unexpected reset might have happened
Error: Could not read DSCR register
Error: mem2array: Read @ 0x004a0018, w=4, cnt=1, failed
apps/waf/sflash_write/sflash_write.tcl:108: Error:
in procedure 'sflash_write_file'
in procedure 'program_sflash' called at file "apps/waf/sflash_write/sflash_write.tcl", line 277
in procedure 'memread32' called at file "apps/waf/sflash_write/sflash_write.tcl", line 225
at file "apps/waf/sflash_write/sflash_write.tcl", line 108
Full Logs Given Here:
Open On-Chip Debugger 0.10.0-dev-00224-g217aaab-dirty (2016-09-08-15:37)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst
trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst
adapter speed: 100 kHz
adapter_nsrst_delay: 200
jtag_ntrst_delay: 200
post_init_43909_setup
Warn : Using DEPRECATED interface driver 'ft2232'
Info : Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/...
Info : max TCK change to: 30000 kHz
Info : clock speed 100 kHz
Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)
Info : BCM43909.cpu: hardware has 4 breakpoints, 4 watchpoints
force hard breakpoints
Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x000001f3 pc: 0x00000000
D-Cache: disabled, I-Cache: disabled
cortex_a interrupt mask on
adapter speed: 10000 kHz
cpsr (/32): 0x000000D3
lr (/32): 0x00000000
32796 bytes written at address 0x004a0000
18232 bytes written at address 0x004a8040
32 bytes written at address 0x004ac778
292 bytes written at address 0x004ac798
downloaded 51352 bytes in 0.723015s (69.360 KiB/s)
entry_address= 4882496
stack_address= 4911440
buffer_size= 32768
pc (/32): 0x004A8040
Total write size is 7996
writing 7996 bytes at 32768
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x800000f3 pc: 0x004a8d50
D-Cache: enabled, I-Cache: enabled
loadimage address 4849692 foffset 0 7996
7996 bytes written at address 0x004a001c
downloaded 7996 bytes in 0.120002s (65.071 KiB/s)
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x600000f3 pc: 0x004a8dda
D-Cache: enabled, I-Cache: enabled
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x600000f3 pc: 0x004a8dda
D-Cache: enabled, I-Cache: enabled
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x600000f3 pc: 0x004a8dda
D-Cache: enabled, I-Cache: enabled
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x800000f3 pc: 0x004a8de2
D-Cache: enabled, I-Cache: enabled
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x800000f3 pc: 0x004a8de2
D-Cache: enabled, I-Cache: enabled
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x800000f3 pc: 0x004a8de2
D-Cache: enabled, I-Cache: enabled
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x600000f3 pc: 0x004a8dda
D-Cache: enabled, I-Cache: enabled
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x600000f3 pc: 0x004a8dda
D-Cache: enabled, I-Cache: enabled
BCM43909.cpu: target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x800000f3 pc: 0x004a8de2
D-Cache: enabled, I-Cache: enabled
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Error: Could not read DSCR register
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Error: Could not read DSCR register
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Error: Debug regions are unpowered, an unexpected reset might have happened
Error: error restoring dfar/dfsr - dscr = 0xffffff3f
Error: Debug regions are unpowered, an unexpected reset might have happened
Error: Debug regions are unpowered, an unexpected reset might have happened
Error: Could not read DSCR register
Error: mem2array: Read @ 0x004a0018, w=4, cnt=1, failed
apps/waf/sflash_write/sflash_write.tcl:108: Error:
in procedure 'sflash_write_file'
in procedure 'program_sflash' called at file "apps/waf/sflash_write/sflash_write.tcl", line 277
in procedure 'memread32' called at file "apps/waf/sflash_write/sflash_write.tcl", line 225
at file "apps/waf/sflash_write/sflash_write.tcl", line 108
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
One note. Your adapter speed very hight
adapter speed: 10000 kHz
Maybe, try set it to 500 kHz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I m Using SDK - WICED Studio 4.0.10
I m only Using BCM907 board and I dont have any othet board with me.
I am not finding any where in config file where we are setting adapter speed: 10000 kHz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe in file tools->OpenOCD-> BCM4390x_gdb_jtag.cfg
# Now that the chip is out of reset, increase the JTAG speed
#adapter_khz 10000
adapter_khz 500
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did This Change . But No Change in the Log.
We are not using BCM4390x_gdb_jtag.cfg but BCM4390x.cfg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FYI
F:\WICED\WICEDSDK\WICED\WICED-Studio-4.0\43xxx_Wi-Fi>
.\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/
BCM9WCD1EVAL1.cfg -f ./tools/OpenOCD/BCM4390x.cfg -f -f apps/waf/sflash_write/Murali_write.tcl -c "sfl
ash_write_file build/test.console-BCM943907WCD2/DCT.bin 0x00008000 BCM943907WCD2-P214-SoC.43909 0 43909" -c shutdown
This is how I am using the Command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you help me out to Understand Why I am getting the line
this in the above log
>target halted in Thumb state due to debug-request, current mode: Supervisor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
》This is how I am using the Command
Why you using "Command"?
Why you not using "download download_apps run" in wice make string command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I fixed the Issue. Problem was =>
Inside init_sflash()->get_capabilities() function was Unable to find
definitions and Capabilities of SPI flash we had used. I added the Device Capabilities to the array and the issue was solved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
i have same problem. Can you explain how you have solved the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try change speed in sflash_write.tcl
proc post_init_43909_setup { } {
gdb_breakpoint_override hard
reset halt
cortex_r4 maskisr on
#adapter_khz 10000
adapter_khz 500
# Go to Supervisor ARM mode
reg cpsr 0xd3
reg lr 0x0
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried Changing the Speed - But still I m getting Same Log Out Put
proc post_init_43909_setup { } {
gdb_breakpoint_override hard
reset halt
cortex_r4 maskisr on
#adapter_khz 10000
adapter_khz 500
# Go to Supervisor ARM mode
reg cpsr 0xd3
reg lr 0x0
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
Can anyone Tell Me How to Flash Code Through UART