Forums

abort and DSP/Bios Problem

Started by collins March 6, 2002
Hallo,

I'm sure somebody has seen this behaviour before and could help me out.

I've built a simple DSP/Bios project with just a main and a log object
configured. This is for the DSK5402 starter kit.

The problem is the program ends up at a symbol "abort" which marks a branch
pointing to its own address and so gets stuck. This happens sometime after
main() returns. All I have in main now is a call to brd_init_bios(). The
debug menu in Code Composer Studio shows that the target is no longer running.

Could anyone give me any tips as to why this happens? I thought DSP/Bios is
supposed to drop into its idle loop after returning from main().

Thanks,

Martin.



Hi Martin,

I guess that this is not the problem with the bios,
its the problem with the funciton that u are making
use of i.e brd_init_bios();

Try to comment the funtion and run the applicaiton,
the bios must fall in to the idle loop.

If the brd_init_bios() funciton is unable to set the
c5402 with the required frequency then this function
may abort the program itself.

In that case U need to recheck the function
brd_init_bios().According to me this function
initializes the board with bios setting for making use
to run the bios application, this funtion sets some
bit that will be used for initialising the codec.

Regards,
Praveen Kumar R.P
DSP Design Engg
Aureole Tech Pvt Ltd
B'lore
--- collins <> wrote:
> Hallo,
>
> I'm sure somebody has seen this behaviour before and
> could help me out.
>
> I've built a simple DSP/Bios project with just a
> main and a log object
> configured. This is for the DSK5402 starter kit.
>
> The problem is the program ends up at a symbol
> "abort" which marks a branch
> pointing to its own address and so gets stuck. This
> happens sometime after
> main() returns. All I have in main now is a call to
> brd_init_bios(). The
> debug menu in Code Composer Studio shows that the
> target is no longer running.
>
> Could anyone give me any tips as to why this
> happens? I thought DSP/Bios is
> supposed to drop into its idle loop after returning
> from main().
>
> Thanks,
>
> Martin. > _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/
__________________________________________________
/">http://mail.yahoo.com/


Hi again

Your program should look like that:

// in you BIOS config, you must create a LOG object, eg. LOG_debug

#include <log.h> //you will need some definitions extern LOG_Obj LOG_debug; //for the main to know that there is a LOG

void main(void){
LOG_printf(&LOG_debug,"Starting board initialization...");
brd_init_bios();
LOG_printf(&LOG_debug,"Board initialization finished");

return; //to go into the idle loop
}

If you don't return from main(), the program finishes, the DSP halts
and everything has been done OK. It is the last RETURN which tells
BIOS to go to the idle loop.
Regards,

Fran
--- In c54x@y..., collins <collinsm@s...> wrote:
> Hallo,
>
> I'm sure somebody has seen this behaviour before and could help me
out.
>
> I've built a simple DSP/Bios project with just a main and a log
object
> configured. This is for the DSK5402 starter kit.
>
> The problem is the program ends up at a symbol "abort" which marks a
branch
> pointing to its own address and so gets stuck. This happens sometime
after
> main() returns. All I have in main now is a call to brd_init_bios().
The
> debug menu in Code Composer Studio shows that the target is no
longer running.
>
> Could anyone give me any tips as to why this happens? I thought
DSP/Bios is
> supposed to drop into its idle loop after returning from main().
>
> Thanks,
>
> Martin.




All,

I am thinking to add DSP/BIOS to our board. However,
since we have very tight on-chip memory restriction, I
am concerned about the memory size of DSP/BIOS. Anyone
has some idea how large it takes? Also, we have our
memory scheme, how can I take care of memory mapping
if DSP/BIOS will replace vectors.asm?

Thanks in advance.




DSP/BIOS memory size is scalable, but on my last application, it took
only about 1 kByte of code space, and provided TONS of functionality.

As for memory mapping, are you talking about where you get dynamic
memory from, or just from the startup vectors, or about how the code
gets located in memory? Carl Chipman
Nomadics, Inc.

http://www.nomadics.com -----Original Message-----
From: Hongyi Liang [mailto:]
Sent: Monday, February 17, 2003 10:37 PM
To:
Subject: [c54x] DSP/BIOS memory size

All,

I am thinking to add DSP/BIOS to our board. However,
since we have very tight on-chip memory restriction, I
am concerned about the memory size of DSP/BIOS. Anyone
has some idea how large it takes? Also, we have our
memory scheme, how can I take care of memory mapping
if DSP/BIOS will replace vectors.asm?

Thanks in advance.

_____________________________________
Note: If you do a simple "reply" with your email client, only the author
of this message will receive your answer. You need to do a "reply all"
if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to

To Post: Send an email to

To Leave: Send an email to

Archives: http://www.yahoogroups.com/group/c54x

Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/



DSP/BIOS is optimized for tight environments and is highly configurable.
On a 54x it's possible to get down as low 1K words. For more info
http://dspvillage.ti.com/pdfs/dspbios_pb_kernel.pdf

The DSP/BIOS Configuration tool has a Memory section in the System folder
that allows you to specify the memory map and it generates the equivalent of
vectors.asm and the linker command file.

Thom

-----Original Message-----
From: Hongyi Liang [mailto:]
Sent: Monday, February 17, 2003 8:37 PM
To:
Subject: [c54x] DSP/BIOS memory size All,

I am thinking to add DSP/BIOS to our board. However,
since we have very tight on-chip memory restriction, I
am concerned about the memory size of DSP/BIOS. Anyone
has some idea how large it takes? Also, we have our
memory scheme, how can I take care of memory mapping
if DSP/BIOS will replace vectors.asm?

Thanks in advance.

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to

To Post: Send an email to

To Leave: Send an email to

Archives: http://www.yahoogroups.com/group/c54x

Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/



Thomas & Mukul,

Thanks for you guys' kind help. I really appreciate
it.

I went through the application notes and my impression
is that DSP/BIOS footprint is small. That is really
good.

Our board has external 1M words ST flash memory, and
it is partitioned to 2 banks with 16 pages for each
bank. Also, run and load memory is different. As far
as I know, DSP/BIOS will replace vectors.asm and
generate its own memory mapping. I am still new to
DSP/BIOS. So, I am not sure whether I will be able to
achieve the same memory mapping through DSP/BIOS.

Best Regards.

Henry
--- "Maughan, Thomas" <> wrote:
> DSP/BIOS is optimized for tight environments and is
> highly configurable.
> On a 54x it's possible to get down as low 1K words.
> For more info
> http://dspvillage.ti.com/pdfs/dspbios_pb_kernel.pdf
>
> The DSP/BIOS Configuration tool has a Memory section
> in the System folder
> that allows you to specify the memory map and it
> generates the equivalent of
> vectors.asm and the linker command file.
>
> Thom
>
> -----Original Message-----
> From: Hongyi Liang [mailto:]
> Sent: Monday, February 17, 2003 8:37 PM
> To:
> Subject: [c54x] DSP/BIOS memory size > All,
>
> I am thinking to add DSP/BIOS to our board. However,
> since we have very tight on-chip memory restriction,
> I
> am concerned about the memory size of DSP/BIOS.
> Anyone
> has some idea how large it takes? Also, we have our
> memory scheme, how can I take care of memory mapping
> if DSP/BIOS will replace vectors.asm?
>
> Thanks in advance. >
>
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of
> this message will receive your answer. You need to
> do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ > _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/


__________________________________________________