Other Parts Discussed in Thread: CCSTUDIO, MSP430G2210, MSP-FET
Folks,
This is my first foray into CCStudio. Until now, I was writing in C for microcontrollers and in C# for Windows. I also have some past training in C++ for PC. So, I'm not entirely new to this. But unfortunately, I'm stuck.
I have declared two classes I2CBusBase and its child I2CBusViaBitBanging. The code compiles. But when I try to new-up the object,
I2CBusBase* pI2CBus = new I2CBusViaBitBanging();
The object is not created, and the pI2CBus points to 0x0000. On the other hand, if I do
I2CBusViaBitBanging theBus;
The object is created as expected, and it behaves as expected. This suggests that the constructors in the classes should function okay.
I must be missing something. Any suggestion, insight or reference is really appreciated!
Cheers,
- Nick
My development environment: CCStudio 6.1.0.00104, MSP-FET via Spy-Bi-Wire, MSP430G2210. I can post more code if needed, of course.