Dear all,
I am trying to boot an file named PHY.bin into the B4860 board. But the console window displays as:
==============================================================================
root@b4860qds:~# cd /ipc
root@b4860qds:/ipc#
root@b4860qds:/ipc#
root@b4860qds:/ipc# ./dsp_bt -h 1 -c 0 -i Debug.bin
===B4860QDS DSP boot Application (3.0.0) ===
SYSTEM MAP
DSP PrivArea: Addr=80000000 Size=7ff00000
Shared CtrlArea: Addr=fff00000 Size=100000
DSP Core0 M2: Addr=0 Size=0
DSP Core1 M2: Addr=0 Size=0
DSP M3: Addr=c40000000 Size=8000
PA CCSRBAR: Addr =ffe000000 Size=1000000
DSP CCSRBAR: Addr =ffe000000 Size=1000000
PA Shared Area: Addr=60000000 Size=f000000
DSP Shared Area: Addr=6f000000 Size=1000000
Loading Dsp image Debug.bin
Copy Part 80000000 1830
Copy Part 80002000 3008
Copy Part 80006000 2400
Copy Part 80009000 1eaa0
Copy Part f7f00000 607c
Copy Part f7f08000 1000
Copy Part f7f09000 1000
Copy Part f7f0a000 1000
Copy Part f7f0b000 1000
Copy Part c40000000 1000
Copy Part c40001000 1000
Copy Part c40002000 1000
Copy Part c40003000 1000
intvec_addr =8001a000 in L1 Binary
Before StarCore release ========
LCC_BSTRH=0x0
LCC_BSTRL=0x7ffff000
LCC_BSTAR=0x8110000b
GCR_CDCER0=0x0
GCR_CHMER0=0x0
DCFG_BRR=0xf
After StarCore release ========
LCC_BSTRH=0x0
LCC_BSTRL=0x8001a000
LCC_BSTAR=0x8100000c
GCR_CDCER0=0x3f0
GCR_CHMER0=0x3f00
DCFG_BRR=0x1f
BSTRL,BSTAR,CDCERO,CHMERO n DCFG_BRR set now
sleep 1, waiting for hw sem
sleep 1, waiting for hw sem
sleep 1, waiting for hw sem
sleep 1, waiting for hw sem
sleep 1, waiting for hw sem
sleep 1, waiting for hw sem
sleep 1, waiting for hw sem
sleep 1, waiting for hw sem
sleep 1, waiting for hw sem
===============================================================================================
are there anyone who know about the error HW SEM ?... Please give me a way to solve the problem!
Many thanks for your support!
Hello Hoa Ho,
It may be waiting for other DSP cores to go up.
If this is multicore project, please change in os_config.h:
#define DP_SINGLE_CORE ON
#define OS_MAX_NUM_OF_CORES 1
Have a great day,
Lunmin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------
Hi Lunmin,
I also faced similar issue, I resolved it by doing following:
Just comment the function call "osWaitForAllCores " getting called in b4860HetBootInitialize(), and you should be good to go for loading single core binary.
b4860HetBootInitialize-> Reference:
..\StarCore_Support\SmartDSP\source\arch\starcore\b4860_family/b486x.c
However I do get following issues in loading multicore image
1) When I load multicore dsp image :
(SIX CORES Configured and OS_Mulitcore=1, and also the OSwaitforallcores function disabled in het boot function)
1) dsp_bt -h 1 -c 0 -i c0.bin -c 1 -i c1.bin... -c 5 -i c5.bin -s shared.bin
but it still shows the same problem "waiting for hw semaphore".
Any ways how to solve this problem for multicore??
2) I could run IPC integration example in smart dsp demo directory through power pc ,(IT IS A SINGLE CORE EXAMPLE)
I tried to convert it into multicore by making changes in os_config.h :
i) #define OS_NUM_OF_CORES OS_SOC_MAX_NUM_OF_CORES (i.e "6")
ii) OS_Mulitcore=1,
and also the OSwaitforallcores function disabled in het boot function.
Now the problem is the binaries getting generated are of unequal sizes:
core0.bin -> 200 kb
core1.bin-> 15 kb
core2.bin-> 15 kb
core3.bin-> 15 kb
core4.bin-> 15 kb
core5.bin-> 15 kb
When i try to load this images , I get the same problem "waiting for hw semaphore".
Binaries were generated using:
b4860_bin_creator.exe -cw '${SC_TOOLS_HOME}' -dir '${CW_Project}/ipc_integration_demo' -arch b4860 separate_shared_bin_files On
Any answers to this questions ??
regards
nikunj