dlbeer / mspdebug

Debugging tool for MSP430 MCUs
GNU General Public License v2.0
184 stars 80 forks source link

CPUX support for simulation target #91

Open thiloschulz opened 4 years ago

thiloschulz commented 4 years ago

Texas instrument's msp430-elf-gcc seems to emit PUSHM instructions instead of PUSH for MCUs that support CPUX or even when using compiler flag "-msim". The simulator throws an "unknown single-operand opcode: 0x1500") error. Are there plans to add CPUX to the simulation target?

dlbeer commented 4 years ago

On Thu, Feb 06, 2020 at 07:24:35AM -0800, Thilo Schulz wrote:

Texas instrument's msp430-elf-gcc seems to emit PUSHM instructions instead of PUSH for MCUs that support CPUX or even when using compiler flag "-msim". The simulator throws an "unknown single-operand opcode: 0x1500") error. Are there plans to add CPUX to the simulation target?

Hi Thilo,

There are no plans currently, but I'm happy to help anyone who wants to implement it.

If you want to generate code to target the simulator, you'd probably be better off for now explicitly specifying a real CPU with an MSP430 core.

Cheers, Daniel

-- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B