This post is overdue, as it is about the McuOnEclipse components which have been released already a few days ago. The highlights are (beside smaller updates and bug fixes):
- Nordic Semiconductor nRF24L01+ component extended for shared SPI bus usage
- SD_Card component can use AsynchroSerial component for Kinetis
- FatFS has added v0.10c patches
- FSL_USB_Stack: Host support for Kinetis K20D72 and support for FRDM-K22F (K22FN512)
- FreeRTOS has added Timer API support
nRF24L01+
To share different devices on the same SPI bus, it is necessary to switch between different SPI modes (speed, SPI settings). For example, in my Darth Vader Robot the SPI bus is shared between nRF24L01+, SD Card and VS1053 codec device. To support this, a new optional ‘Switch Bus’ property has been added to the component:
The ‘Baud Rate Mode’ is an index into the SPI (SynchroSerial) settings. If enabled, it will switch the bus and applies new settings before accessing the bus. That ‘Baud Rate Mode‘ points to the mode in the SPI ‘list of values‘ settings:
Additionally, the component features two optional user events (OnActivate() and OnDeactivate()) which are called before and after accessing the bus. They can be used e.g. to block access to the bus with a semaphore or similar:
SD_Card
The SD card component is going through a major refactoring. The LDD components (see “There is a Time and Date for both Worlds“) are a pain to use, so I replace them with the easier to use non-LDD components. As a further step into that direction, it is not possible to use the SynchroSerial component for Kinetis too. Previously, for Kinetis only the ‘LDD HW SPI’ setting was allowed. Now I can disable it and enable the ‘non-LDD HW SPI’ setting:
đź’ˇ Future releases will depreciate the usage of the LDD components and only use the non-LDD components.
FatFS_FileSystem
Elm Chan has published two patches for R0.10c FatFS (http://elm-chan.org/fsw/ff/patches.html) which are now incorporated into the FatFS_FileSystem component. One of it fixes a problem that released clusters (f_unlink()) were not really released. The other patch fixes a problem with the internal date/time settings.
FSL_USB_Stack
The USB stack includes a fix to support the K20D72 in host mode:
Additionally, support for the FRDM-K22F (K22FN120) has been added (see “USB with the Freescale FRDM-K22F Board“).
FreeRTOS
The FreeRTOS component has been extended with the Software Timer API: instead using multiple hardware timers, the FreeRTOS software timer API provides software timers which are very useful in low power applications, as it relies on the RTOS, and not on hardware timers:
Summary
The new components are available for download on SourceForge: https://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/
The release notes are available on SourceForge: https://sourceforge.net/projects/mcuoneclipse/files/PEx Components/readme.txt
Sources are available on GitHub: https://github.com/ErichStyger/McuOnEclipse_PEx
Happy Upgrading 🙂
Happily upgraded. Thank you. Have a happy holiday!
LikeLike
How use Ethernet with Processor Expert on FRDM K64F?
LikeLike
I don’t know, as I have not used it yet.
LikeLike
Hello. I need a component to intefacing a Sd card with a JM60 MCu. Which are your suggestions?
LikeLike
Hi Juan,
I have not used an SD card with the JM60 for a while, but you can use the FatFS component using SPI interface to the SD card.
I have a tutorial for an ARM board here: https://mcuoneclipse.com/2014/01/05/frdm-with-ardino-ethernet-shield-r3-part-1-sd-card/
but things very much apply to the JM60.
LikeLike
Hello. Good day.
I was watching the video of this site:
http://www.freescale.com/webapp/sps/site/overview.jsp?code=SDCARDREADER_TRAINING
My application with the SD does not include USB communication with the Microcontroller. I want to use the libraries to store files in a SD trough SPI, but i dont now how to adapt them and which to use to reach my goal.
I attach the schematic circuits (Specially the Hub Board Section) which includes connections between the SD(SPI) and the JM60.
I appreciate your collaboration.
LikeLike
Hi Juan,
I recommend you have a look at my tutorials and example projects round SD cards and FatFS:
https://mcuoneclipse.com/2012/11/18/arduino-data-logger-shield-with-the-frdm-kl25z-board/
https://mcuoneclipse.com/2012/07/30/fatfs-with-kinetis/
https://mcuoneclipse.com/2014/12/14/tutorial-iot-datalogger-with-esp8266-wifi-module-and-frdm-kl25z/
https://mcuoneclipse.com/2014/05/26/tutorial-data-logger-with-the-frdm-k64f-board/
You can find all the example/tutorial projects on GitHub here:
https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples
LikeLike
Hi Erich.
I´m using Codewarrior 6.1. I don´t know if your tutorials and beans are able to run ok in processor expert for CW 6.1
LikeLike
I have not used that CodeWarrior version for a while, but yes, the components should work with earlier versions of CodeWarrior too. If not, let me know and I try to work on it.
LikeLike
Hi Eric,
I am having a problem with a SD card communication when upgrading components from the 7 Dec 2014 release to 27 Dec2014 release. The SD card works correctly with the 7 Dec 2014 release. The SD card uses a SD component plus the SPIMaster_LDD component. The drive will not mount on the later release (enabled the SPI enable/disable method on the upgrade). I have tried the non-LDD HW SPI with the same result. The project compiles error free . The processor is a MKL16Z256VLH4 using CodeWarrior10.6. Any pointers on where to look would be appreciated.
Thanks,
George
LikeLike
Hi George,
does the problem as well exist with the latest version available on https://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/ which is from 22-March-2015?
Erich
LikeLike
Hi Eric,
Yes, it has the same issue on the 22 March 2015.
Regards,
George
LikeLike
Hi George,
ok, I need to check this, but it has to wait until the week end. If possible, can you send me your project to the email address on the About page of this blog? That way I know which settings you are using. At least send me the *.pe file in the project folder.
Thanks!
LikeLike