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.
hi:
I don't understand these sentence in proj_labxx.c :
#ifdef F2802xF
//copy .econst to unsecure RAM
if(*econst_end - *econst_start)
{
memCopy((uint16_t *)&econst_start,(uint16_t *)&econst_end,(uint16_t *)&econst_ram_load);
}
//copy .switch ot unsecure RAM
if(*switch_end - *switch_start)
{
memCopy((uint16_t *)&switch_start,(uint16_t *)&switch_end,(uint16_t *)&switch_ram_load);
}
#endif
what const in these areas?
thanks Jeff:
another question in lab11b
1,
in main();
if(gFlag_speedStatsReset)
{
gFlag_speedStatsReset = false;
gSpeed_max_pu = _IQ(0.0);
gSpeed_min_pu = _IQ(1.0);
}
in mainISR():
if(speed_pu > gSpeed_max_pu)
{
gSpeed_max_pu = speed_pu;
}
if(speed_pu < gSpeed_min_pu)
{
gSpeed_min_pu = speed_pu;
}
Why gSpeed_max_pu=_iq(0.0) and gSpeed_min_pu=_iq(1.0) ?
2.
in lab11b software structure is very different of other labs. it is very useful to developed products .
I will creat my own control add into this lab. I will use GPIO pin to cotronl RUN/STOP to trig " gMotorVars.Flag_Run_Identify" ture or flase . and use AD to set "gMotorVars.SpeedRef_krpm". such as ... And important is : how chang use.h contant as variables ? because I will use SCI comunication set them.
best regards!