dynamic allocate memory in my application?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

dynamic allocate memory in my application?

1,575件の閲覧回数
jixiang
Contributor I
Hello,
 
My application C programs run on either RAM or Flash Programmer using M52223 controller and CodeWarrior 6.3. In my C code, I just try to use standard C lib: calloc(..) and malloc(..) to dynamically allocate memory for diffrent variables.  I get an error message: "Bus Error ..."  
 
I would appreciate it if someone can help or give the direction to solve the problem.
 
Thanks
 
Dong Sun
 
 
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

718件の閲覧回数
CrasyCat
Specialist III
Hello
 
  1- Did you include stdlib.h in the source file where you try to use calloc?
  2- Where did you define your heap? How big is it defined? You should be able to see that in
      the .map file generated by the linker
 
CrasyCat
0 件の賞賛
返信