Cypress – cy8ckit-042-psoc-4-pioneer-kit

This is an amazing mix-mode PSoc. Very versatile and yet powerful.

Coming from programming background to write your code the PSoc creator is a pain to learn but once  we get hold of it. it more fun to finish your project but leaves the details to the PSoc creator. This has its own pros and cons.

Pros:

  1. you get to the POC stage faster.
  2. Need not worry much about underlying device drivers. concentrate on you application part.

Cons:

  1. you loose the hold on the hardware.
  2. you don’t know what could be the limitation of the Soc

need more exploration:

References:

http://www.cypress.com/documentation/development-kitsboards/cy8ckit-042-psoc-4-pioneer-kit

Similar issues I am facing:

http://www.cypress.com/forum/psoc-4-architecture/can-miniprog3-program-cy8c4247lqi-bl483

 

Posted in Uncategorized | Leave a comment

AES encryption examples

1. AES 128 encryption & decryption on linux and windows.
2. using http://stackoverflow.com/questions/14152192/build-native-c-for-use-as-net-library, to call the invoking

https://msdn.microsoft.com/en-us/library/aa288466%28v=vs.71%29.aspx
https://msdn.microsoft.com/en-us/library/ms973807.aspx

openssl-aes128-bit encryption:
http://openssl-net.sourceforge.net/
http://www.firmcodes.com/how-do-aes-128-bit-cbc-mode-encryption-c-programming-code-openssl/

Posted in Uncategorized | Leave a comment

TI MSP430 build tools, Free RTOS …..

One of my projects needed me to explore into MSP430 so this is what I start from.

try to download everything from the TI website. easy to start with.

Installing compiler :

sudo apt-get update
sudo apt-get install msp430mcu msp430-libc mspdebug gcc-msp430 gdb-msp430

Next would be CCS- this will make life better later:

  • sudo apt-get update
  • sudo apt-get install ia32-libs libgnomeui-0:i386 libusb-1.0-0-dev:i386
  • rest do as it says in the “README_FIRST.txt” file.

wiki: http://processors.wiki.ti.com/index.php/Linux_Host_Support_CCSv6#Ubuntu_12.04_64bit

Reference:

http://www.ti.com/tool/msp430-gcc-opensource

http://karuppuswamy.com/wordpress/2010/10/14/setup-build-and-debug-environment-for-msp430-mcus-using-mspgcc-and-mspdebug-in-ubuntu-linux/

http://processors.wiki.ti.com/index.php/Using_MSP430-GCC_with_CCSv6

http://www.freertos.org/portmspgcc.html

usage and code details:

http://www.simplyembedded.org/

Posted in Uncategorized | Leave a comment

vboxdrv: Unknown symbol mcount (err 0)

if you come across this error here is what you have to do

me@me-desktop:~$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.7-1ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-1ubuntu2) 
me@me-desktop:~$ dmesg | grep gcc
[ 0.000000] Linux version 3.13.0-62-generic (buildd@lgw01-26) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #102~precise1-Ubuntu SMP Wed Aug 12 14:09:54 UTC 2015 (Ubuntu 3.13.0-62.102~precise1-generic 3.13.11-ckt24)

if  you find that gcc version is mismatched between kernel and what you have on the machine, like how I have “gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-1ubuntu2)” and “(gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)”

then next would be to install gcc version same as kernel.

but if you already have this version installed and you find that it is not default like

me@me-desktop:/usr/bin$ ls /usr/bin/g++
g++      g++-4.4  g++-4.6  g++.bak  
me@me-desktop:/usr/bin$ ls /usr/bin/gcc
gcc      gcc-4.4  gcc-4.6  gcc.bak

then delete the old link and create new symbolic links

me@me-desktop:/usr/bin$ sudo rm -rf gcc
me@me-desktop:/usr/bin$ sudo ln -s gcc-4.6 gcc
me@me-desktop:/usr/bin$ ls -l gcc
lrwxrwxrwx 1 root root 7 Sep  4 00:11 gcc -> gcc-4.6

me@me-desktop:/usr/bin$ sudo rm -rf g++
me@me-desktop:/usr/bin$ sudo ln -s g++-4.6 g++
me@me-desktop:/usr/bin$ ls -l g++
lrwxrwxrwx 1 root root 7 Sep  4 00:12 g++ -> g++-4.6

 

after this run below command

me@me-desktop:/usr/bin$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.

Wolah you have solved this issue.

References:

https://www.virtualbox.org/ticket/12467

http://askubuntu.com/questions/26498/choose-gcc-and-g-version

Posted in Ubuntu | Leave a comment

Liquid funds – what, how and why?

Still to understand

 

http://www.fundsindia.com/blog/mutual-funds/liquid-funds-invest/751

http://www.fundsindia.com/blog/advisory/should-you-choose-the-dividend-option-or-the-growth-option/1757

Posted in Uncategorized | Leave a comment

Mutual funds – direct and regular plans

Direct plan vs regular plan

From the below study it looks that when you have time and discipline to look into the best suited mutual fund and online investement (best suited for my case) along with long investment goal makes profitable proposition to choose direct plans.

http://www.succinctfp.com/index.php/know-all-about-mutual-funds-direct-plan-and-regular-plan-plus-faq/

http://articles.economictimes.indiatimes.com/2013-04-08/news/38374122_1_direct-plans-sun-life-mutual-fund-liquid-funds

Posted in finance | Leave a comment

liquid funds: Risks and Rewards

  1. https://www.valueresearchonline.com/story/h2_storyView.asp?str=26446
  2. http://www.fundsindia.com/blog/mutual-funds/liquids-funds-a-supplement-to-your-savings-bank-account/1302
  3. http://profit.ndtv.com/news/your-money/article-why-liquid-funds-are-attractive-alternative-to-savings-deposits-385512
  4. http://www.fundsindia.com/blog/mutual-funds/liquid-funds-invest/751
  5. http://www.onemint.com/2012/06/27/introduction-to-liquid-funds/
  6. http://articles.economictimes.indiatimes.com/2012-04-17/news/31355394_1_ultra-short-term-bond-liquid-funds-savings-bank-account
Posted in Uncategorized | Leave a comment