Kinetis K40X256LQ100 - KwikStik RTC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kinetis K40X256LQ100 - KwikStik RTC

690 Views
kwiksay2
Contributor I

I have a Kinetis Kwikstik K40 development board, that I bought a few years ago, but I see they are still available.

I has the K40x256LQ100 chip on a board with LCD display and Seggar Jlink on board and programs via USB port.

I can get basic program examples to run, Blinky etc, I am using uVision 5.29 with v4 legacy options. The target that I seem to use is MK40N512MD100...???. My question is how to start the on chip RTC. I can display the time and date using ctime, localtime etc and see the time tm struct fields in C program and change them but they don't get updated....?? always read 1 jan 00:00:00 1970 etc....epoch year. What function or settings etc should I be using.??

I can change it to read say 22 May 12:34:56 1998 and it always reads that....doesn't change as time progresses.???

0 Kudos
6 Replies

567 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hello,  kwiksay2

This is the solution for working with the RTC as we discussed previously on your ticket. 

Since the  MCUxpresso SDK does not support the board KwikStik-K40 and there are no RTC examples for the K40 MCU wich the Kwikstik board has. 

The workaround was to import the SDK example from the TWR-K60D100M  SDK. Then download the SDK for the 

MK40X256 MCU and create a new project importing the drivers for RTC.  Then, reuse the example code for the RTC example of  TWR-K60D100M   into the project for the Kwikstik MCU. 


Have a great day,
Diego

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

567 Views
mjbcswitzerland
Specialist V

Hi

Try https://www.utasker.com/kinetis/KWIKSTIK.html
Code is open source on Github, including KwikStik simulator.

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 Kudos

567 Views
kwiksay2
Contributor I

thanks for reply, I had looked at utasker but it seems to be another system possibly for Codewarrior, or is it for any IDE system.???

I am trying to use armKeil uVision as it seems to be the one published on the KwikStik web pages. I had tried MCUxpresso and took it off again when couldn't get it to do anything on KwikStik, but NXP say it doesn't support KwikStik but then they suggest I should download MCUxPresso and port code from other mcu examples...???.

As far as I can see the KwikStik is still available to buy new with the same chip onboard, so does no-one do any software that supports it..????. at least with arm Keil uVision I can program and download some functions and display to LCD on board

0 Kudos

567 Views
mjbcswitzerland
Specialist V

Hi

uTasker supports the KwikStik with

- Keil uVision
- IAR,
- MCUXpresso
- KDS
- CodeWarrior
- S32 Design Studio
- Rowley Crossworks
- CooCox
- Green Hills
- Atollic
- GCC Make file build
- Visual Studio simulation and Visual GDB

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 Kudos

567 Views
kwiksay2
Contributor I

Ok, but what is uTasker, is it just a series of bin files. How are you meant to use it...?

0 Kudos

567 Views
mjbcswitzerland
Specialist V

Hi

If you don't know what uTasker is or how to use it you can learn all about it at these links:

Open Source code: https://github.com/uTasker/uTasker-Kinetis

Kinetis Tutorial: https://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis.pdf

SLCD user's guide and simulation: https://www.utasker.com/docs/uTasker/uTasker_SLCD.pdf

Kwikstik / SLCD video: https://www.youtube.com/watch?v=nm2DmZv1rj8

All documentation: https://www.utasker.com/docs/documentation.html

Other videos: https://www.youtube.com/watch?v=kWNlsAoMly4&list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 Kudos