Part Number: MSP430F5528
Hello everyone,
I am using IAR EW 5.50.1 for MSP430 for the development of my project. Now, I am trying to write unit testing for my code with Unity/CMock thanks to the Ceedling tool. To reach my goal , I have to use the C-SPY simulator at some point. When I run my tests on cmd, every steps are right (compilation, link,.. of my C files) but when Ceedling tries to run my .d43 by using C-SPY I have the following error :
(...)
Linking myTest.d43...
Running myTest.d43...
User error: Illegal opcode found on address 0x0
ERROR: Unable to execute: driver error.
ERROR: Test executable "myTest.d43" failed.
> Produced no final test result counts in $stdout:
C:\Users\Jalal\workspace\project\tests>"C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.4\common\bin\cspybat" "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.4\430\bin\430proc.dll" "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.4\430\bin\430sim.dll" build/test/out/myTest.d43 --plugin "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.4\430\bin\430bat.dll" --backend -B "--hardware_multiplier" "32" "--hwmult_type" "8" "-p" "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.4\430\config\MSP430F5528.ddf" "--core=430Xv2" "--data_model=large" "--iv_base" "0xFF80" "--no_wrap_around" "--cpu_bug_30" "--odd_word_check" "-d" "sim" "--derivativeSim" "MSP430F5528"
IAR C-SPY Command Line Utility V6.4.1.0
Copyright 2000-2012 IAR Systems AB.
> And exited with status: [0] (count of failed tests).
> This is often a symptom of a bad memory access in source or test code.
rake aborted!
(...)
I am about to go crazy with it, it has been a little while I am stuck in the same step.
I want to add that I have the same issue when I try to "Debug without downloading" on IAR. I took a look on the web, some people have the same error but I could not resolve mine.
So I decided to come here if someone has an idea and could help me please ?
Jalal