Search found 71 matches

by flabbergast
Sun Sep 20, 2015 1:13 pm
Forum: Kinetis Support
Topic: Flash security .cfmconfig block optimized away by RVCT
Replies: 9
Views: 8785

Re: Flash security .cfmconfig block optimized away by RVCT

Found it: It's the USE_LTO setting in the Makefile. If enabled, cfmconfig is optimized away. Is there a way to protect against this? EDIT: This can be fixed for gcc by adding 'used' attribute: __attribute__ ((used,section(".cfmconfig"))) in os/hal/ports/KINETIS/KL2x/hal_lld.c:40 But I don'...
by flabbergast
Sun Sep 20, 2015 12:27 pm
Forum: Kinetis Support
Topic: Flash security .cfmconfig block optimized away by RVCT
Replies: 9
Views: 8785

Re: Flash security .cfmconfig block optimized away by RVCT

I'm probably having trouble with this. Compiling ChibiOS git /demos/KINETIS/RT-TEENSY3 with gcc (4.9.3 20150529) gives .cfmprotect *(.cfmconfig) 0x0000000000000100 _text = . in build/ch.map and /demos/KINETIS/RT-FREEDOM-KL25Z .cfmprotect *(.cfmconfig) 0x00000000000000c0 _text = . in build/ch.map. Th...
by flabbergast
Thu Sep 17, 2015 10:14 pm
Forum: Kinetis Support
Topic: MCHCK support
Replies: 21
Views: 16315

Re: MCHCK support

Here's a patch (moves things in MK20DX128VLF5.ld past bootloader; adjusts Makefiles for MCHCK demos), to be applied to 3.0.1. Tested on a MCHCK with mk20dx128vlf5 chip, but not on the official mchck bootloader: I can't make that one compile into the allocated 3072 bytes (I can do it for mk20dx32vlf...
by flabbergast
Thu Sep 17, 2015 5:46 pm
Forum: Kinetis Support
Topic: MCHCK support
Replies: 21
Views: 16315

Re: MCHCK support

OK, I've tried to figure this out (but please bear in mind that I'm an ARM newbie). Freescale K20 chips seem to have FlexRAM (a piece of memory that can be used either as EEPROM or RAM). The configuration for this is stored at 0x400, 16 bytes total. Described in the K20 reference manual , page 503. ...
by flabbergast
Wed Sep 16, 2015 8:08 am
Forum: Kinetis Support
Topic: MCHCK support
Replies: 21
Views: 16315

Re: MCHCK support

Sorry to resurrect an old thread - did you figure out the flashcfg bit? I would be interested in having the MCHCK support finished...
by flabbergast
Tue Sep 15, 2015 2:32 pm
Forum: Kinetis Support
Topic: testhal kinetis examples in 3.0.1
Replies: 5
Views: 5207

Re: testhal kinetis examples in 3.0.1

Thanks! Works now.
by flabbergast
Tue Sep 15, 2015 11:01 am
Forum: Kinetis Support
Topic: Teensy 3.1 / MK20DX256VLH7 support
Replies: 52
Views: 42645

Re: Teensy 3.1 / MK20DX256VLH7 support

Repo organisation: I'm just happy you did the usb driver, so whatever works for you ;) Maybe once the driver is more "complete", it could be moved to the main or contrib repo :) So - I tried your USB_HID and USB_SERIAL examples, they work :) I also tried plugging it into my own "usb_h...
by flabbergast
Mon Sep 14, 2015 8:34 pm
Forum: Kinetis Support
Topic: Teensy 3.1 / MK20DX256VLH7 support
Replies: 52
Views: 42645

Re: Teensy 3.1 / MK20DX256VLH7 support

About the community repo: I actually like when it's side-to-side with chibios proper, and the projects pull files from both, depending on what's required - have a look at some demos in chibios-contrib. Having two forks of chibios proper (e.g. yours and the official one) requires me to keep track of ...
by flabbergast
Mon Sep 14, 2015 8:14 pm
Forum: Kinetis Support
Topic: testhal kinetis examples in 3.0.1
Replies: 5
Views: 5207

Re: testhal kinetis examples in 3.0.1

Thanks! And you're right, silly me (v6m). But even with that it's the same error...
by flabbergast
Mon Sep 14, 2015 4:07 pm
Forum: Kinetis Support
Topic: testhal kinetis examples in 3.0.1
Replies: 5
Views: 5207

testhal kinetis examples in 3.0.1

Hi, The examples in testhal/KINETIS don't compile for me, maybe they haven't been updated to 3.0.1? 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. Ch...

Go to advanced search