learning c for embedded

The topic on number crunching

learning c for embedded

Postby JohnnyP » Sun Nov 05, 2017 7:13 am

Just got the "C Programming for Embedded Microcontrollers" book, looking at setting up the tools.

I had a friend set me up with a pc that I can boot up in XP or Windows 10.

The book says to download and install the DJGPP.zip files.

Should I install and use those files with XP, or should I ignore that and boot up in Windows 10 and use Visual Studio?

I'm a Mac user, so all this is foreign.

Maybe try to follow along in the book, but use an online editor on my Mac?

I've programmed in assembly for 30 years (HC11-HC12), trying to learn C now.

I appreciate any advice.
JohnnyP
 
Posts: 2
Joined: Sun Nov 05, 2017 6:10 am

Re: learning c for embedded

Postby shadders » Tue Nov 07, 2017 9:38 pm

Hi,

I have not really programmed embedded systems with Visual Studio - i understand that VS can target an embedded system, but i think this may be the Intel Edison or Windows Embedded specific platform ? Not sure.

I completed two courses from EdX on embedded systems - Texas University - they were excellent. I thoroughly recommend these courses. They base the course on the Texas Instruments Launchpad TM4C123G Evaluation Kit - which is based on the ARM Cortex M4 CPU. The IDE used is the Kiel offering which is free if the target code is within a specific size. The have addons required for the course. This course gets you working on a system very quickly - they provide all the requirements for the memory mapping, how to write to ports etc., with the setup too. I found that without their supporting documentation for the course - i would have spent considerable time trying to work out how to use the microcontroller to complete a basic function. As such, i would recommend a book specifically for the target platform - such that the book provides all the setup tasks required without you having to progress though every data sheet - which takes ages.

Another compiler i used was the MikroElectronika C compiler for the AVR - which is quite cheap and limitless - and if you compare to the commercial offerings - they can be very expensive.

Hope this helps.

Regards,
Shadders.
shadders
 
Posts: 54
Joined: Thu Jan 02, 2014 10:37 am


Return to Microcontrollers & Embedded

Who is online

Users browsing this forum: No registered users and 1 guest