FreeRTOS on QEMU MSP430 instance

vjpamorim wrote on Saturday, May 21, 2016:

Does anyone have a tutorial/link to help me building freertos to a MSP430 machine running on QEMU?

I’ve successfully built the “msp430_GCC” demo binary. However, when trying to run it on a MSP430 QEMU instance I got:
$ ./qemu-system-msp430 --machine msp430f1x -monitor stdio -kernel ./a.out
QEMU 2.4.91 monitor - type ‘help’ for more information
(qemu) Initializing periphs msp430_svs @ 00000055
Initializing periphs msp430_watchdog @ 00000120
Initializing periphs msp430_gpio @ 00000018
Unable to load firmware to MSP430. Exiting.

Any clue will be very helpful.

rtel wrote on Saturday, May 21, 2016:

Pleased to hear you have the demo building, as it is quite (very?) an old demo, the MSP430X demos being newer. However I’m afraid we have never run the code on anything other than real hardware. From the error message it seems the problem occurs before the executable actually starts executing - are there any verbose debug output options you can turn on to see why the firmware won’t load? Maybe the memory map is wrong? As this is not [yet] a FreeRTOS related issue you might get more knowledgable answers from a QEMU forum.

Regards.

vjpamorim wrote on Friday, May 27, 2016:

Ok. Thanks.

I’ll keep trying to run it into QEMU – bet that I’m forgetting something when specifying load addresses. Meanwhile I’ll post this to a QEMU forum and try to get some answers.