Part Number: TMS570LS0432
Tool/software: TI C/C++ Compiler
Hello
startup fail in void afterSTC(void) function and
in
crcAtInit_StaticRAM = SL_CRC_Calculate((uint64*)static_ram,1);
Please help me 6428.JGX50_SL.zip
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMS570LS0432
Tool/software: TI C/C++ Compiler
Hello
startup fail in void afterSTC(void) function and
in
crcAtInit_StaticRAM = SL_CRC_Calculate((uint64*)static_ram,1);
Please help me 6428.JGX50_SL.zip
Hello
#define BF_SET(y, x, start, len) \
( (y) = ((y) & (~ (BF_MASK((start), (len))))) | BF_PREP((x), (start), (len)) )
#ifdef __TI_COMPILER_VERSION__
#pragma INTERRUPT ( _excpt_vec_udef_instr, UDEF)
void _excpt_vec_udef_instr()
#endif
#ifdef __IAR_SYSTEMS_ICC__
__irq __arm void _excpt_vec_udef_instr()
#endif
{
while(1);
}
Program execution at while(1),
crcAtInit_StaticRAM = SL_CRC_Calculate((uint64*)static_ram,1);
this function SL_CRC_Calculate execution some times,then dont know where is running,so I suspend, I found in that postion
Hi whong,
It is the UNDEF exception handler. The MCU enters "undefined mode" when it encounters an invalid instruction.
You can add a breakpoint, then step into the function to find which instruction causes the problem.
Thank you
I am looking for a problem again.
_coreInitRegisters_();
_coreInitStackPointer_();
and
SL_Init_R4Registers();
SL_Init_StackPointers();
I use _coreInitRegisters_(); _coreInitStackPointer_(); function,dont use _coreInitRegisters_();_coreInitStackPointer_();
It reported this when Icompiling. Is this warning influential?#10247-D null: creating output section ".intvecs" without a SECTIONS specification
Hello
I have cancel the “crcAtInit_StaticRAM = SL_CRC_Calculate((uint64*)static_ram,1);”
but _enable_interrupt_(); also run to the
#ifdef __IAR_SYSTEMS_ICC__
__irq __arm void _excpt_vec_udef_instr()
#endif
{
while(1);
}
why?
Thank you
#ifdef __TI_COMPILER_VERSION__
#pragma INTERRUPT ( _excpt_vec_udef_instr, UDEF)
void _excpt_vec_udef_instr()
#endif
#ifdef __IAR_SYSTEMS_ICC__
__irq __arm void _excpt_vec_udef_instr()
#endif
{
while(1);
}
Hello Whong,
This UNDEF error is not caused by CRC calculation. It is caused by other variable or function used in your code, but those are not defined.