Page 1 of 1

testhal kinetis examples in 3.0.1

Posted: Mon Sep 14, 2015 4:07 pm
by flabbergast
Hi,

The examples in testhal/KINETIS don't compile for me, maybe they haven't been updated to 3.0.1?

Code: Select all

Makefile:90: ../../../os/rt/ports/ARMCMx/compilers/GCC/mk/port_kl2x.mk: No such file or directory
make: *** No rule to make target `../../../os/rt/ports/ARMCMx/compilers/GCC/mk/port_kl2x.mk'.  Stop.

Changing this to include 'port_v7m.mk' generates a different error:

Code: Select all

Compiling chcoreasm_v7m.s
In file included from ../../../os/rt/ports/ARMCMx/compilers/GCC/chcoreasm_v7m.s:38:0:
../../../os/rt/ports/ARMCMx/chcore.h:70:22: fatal error: cmparams.h: No such file or directory
 #include "cmparams.h"

I'm sorry I don't know the ChibiOS structure enough to see how to fix this. Thanks.

Re: testhal kinetis examples in 3.0.1

Posted: Mon Sep 14, 2015 5:03 pm
by utzig
Hmmm, I'll fix it tonight. Btw, kl2x is a Cortex-M0 so the correct makefile would be port_v6m.mk (not v7!).

Cheers,
Fabio Utzig

Re: testhal kinetis examples in 3.0.1

Posted: Mon Sep 14, 2015 8:14 pm
by flabbergast
Thanks! And you're right, silly me (v6m). But even with that it's the same error...

Re: testhal kinetis examples in 3.0.1

Posted: Mon Sep 14, 2015 10:37 pm
by utzig
I fixed both Kinetis testhal demos. I'll try to fix the CMSIS warnings next.

Cheers,
Fabio Utzig

Re: testhal kinetis examples in 3.0.1

Posted: Mon Sep 14, 2015 10:51 pm
by utzig
All done!

Re: testhal kinetis examples in 3.0.1

Posted: Tue Sep 15, 2015 2:32 pm
by flabbergast
Thanks! Works now.