I am running lab02b on an F28069x ISO controlCARD. I start the debugger and break at main. When I try to modify the SCIA registers by clicking on the Value, the value does not change. See attached screenshot. Any idea why I can't modify the regs?
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.
I am running lab02b on an F28069x ISO controlCARD. I start the debugger and break at main. When I try to modify the SCIA registers by clicking on the Value, the value does not change. See attached screenshot. Any idea why I can't modify the regs?
CLK_enableSciaClock(obj->clkHandle);
would need to be called in your HAL to insure the SCIA was operating. Also need to set-up the GPIO, etc.
Not sure which board you are using, so can't tell you if the HAL is set-up to turn SciA on or not...but sounds like not.
Try SciB, it is probably active. you can find all the SciB and do the same for SciA to make sure it's set-up the same.
I am issuing both CLK_enableSciaClock and CLK_enableScibClock.
So the registers are not writeable until I issue those commands?
Is there some other upstream clock I am supposed to enable as well?
Hello Jim,
Besides enabling the clock, try to follow the step 1 and 6 from this thread below to initiate the based address of SCI
http://e2e.ti.com/support/microcontrollers/c2000/f/902/p/334989/1168654.aspx#1168654
Best regards,
Maria
That did the trick! I reinstalled lab01 and implemented your suggestions. Characters are now being transmitted to my terminal.
However, I am not receiving characters. I have an F28069M ISO controlCARD. I see there's an SW3 on the schematic that could open the RX connection. I don't have the card in front of me at the moment. Do you happen to know if SW3 position 2 is shipped open or closed?
Hmmm... I have pullups enabled on both Tx and Rx. Is that a problem?
GPIO_setMode(obj->gpioHandle,GPIO_Number_29,GPIO_29_Mode_SCITXDA);
GPIO_setPullup(obj->gpioHandle,GPIO_Number_29,GPIO_Pullup_Enable);
GPIO_setMode(obj->gpioHandle,GPIO_Number_28,GPIO_28_Mode_SCIRXDA);
GPIO_setPullup(obj->gpioHandle,GPIO_Number_28,GPIO_Pullup_Enable);
Problem solved! I had the following:
CLK_enableSpiaClock(obj->clkHandle);
CLK_enableSpibClock(obj->clkHandle);
which obviously should have been
CLK_enableSciaClock(obj->clkHandle);
CLK_enableScibClock(obj->clkHandle);
(And created the CLK_enableScibClock() function)
Thanks for all your help!