|
Does the iOS SDK come with a generic arm compiler? edit: This should work, but you still have to build everything yourself. The documentation is for older ubuntu versions but it should still work properly. https://launchpad.net/gcc-arm-embedded astr0man fucked around with this message at 18:01 on Oct 19, 2012 |
# ? Oct 19, 2012 17:50 |
|
|
# ? May 13, 2024 08:48 |
|
Not sure what the iOS SDK comes with, to be honest. I'll poke around there later though. Thanks for that link. I don't mind building myself if there's some chance it'll work. I'll give this a try
|
# ? Oct 19, 2012 20:34 |
|
Martytoof posted:All told, I'd rather do my development on a Linux VM than a Windows VM, but if it's going to be a tremendous pain then I'm not going to fight it and just go with what Freescale recommends and build a Windows environment. At work I'm writing some software for a Cortex-M3. We've been using MentorGraphics' free arm-gcc toolchain, CodeSourcery Lite: http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/. It's a pretty spartan offering (no IDE, no Makefile management, meager docs, etc.), but it's available for pretty much every OS. There are no precompiled OS X packages, so you'll have to spend a few hours building the toolchain from source. jsnyder has published a one-click Makefile that makes it very easy to set things up on OS X: https://github.com/jsnyder/arm-eabi-toolchain.
|
# ? Oct 20, 2012 06:31 |
|
I think I love you
|
# ? Oct 20, 2012 07:06 |
|
Unfortunately, codebench doesn't support M4 processors with external FPUs. Linaro also publishes a bare-metal ARM toolchain: http://www.linaro.org/downloads/ Look at the bottom of the page.
|
# ? Oct 21, 2012 15:03 |
|
Thanks for all the help so far everyone. For some reason my system is having some serious issues compiling CS Lite toolchain so I'm going to move on to one of two things. I found YAGARTO which looks like a working toolchain with OSX support. It hasn't been tested with anything above 10.6, however, so if that doesn't work I'm going to claim defeat with my Mac for the time being and use VMware Fusion to set up a reliable IDE under a Linux of some flavour. It seems there's more information available. I should probably just stop torturing myself and install a Windows VM to use the tools Freescale provides, but for some reason I'm just not looking forward to doing this under Windows. I may be digging myself into a hole here, and not because I dislike Windows or anything, just that I'd like to get this working on something else before that.
|
# ? Oct 22, 2012 02:31 |
|
OK, for one reason or another I managed to compile CSLite correctly this time around. I basically followed the directions for toolchain installation on http://gnuarmeclipse.livius.net/wiki/Main_Page (which actually links to the same file that mattx0r linked above. Going to start digging into getting this working with my Freescale FRDM board now, but at least I cleared the toolchain hurdle. Thanks a million for everyone's help. This is way more frustrating than I'd imagined. I think once I'm done I'll write a "getting poo poo set up on a Mac for idiots" README of some sort so people can follow along.
|
# ? Oct 24, 2012 19:29 |
|
Zombietoof posted:Thanks for all the help so far everyone. Honestly, Windows is probably the OS that will make you the waste the least time just getting stuff to work. All the major manufacturers have tools that run natively under Windows and treat that as their primary target platform. I've gotten up and running fastest under Windows compared to Linux (Fedora) and OS X. The only exception is probably Microchip ever since they released MPLAB X; it worked right out of the box on my Mac.
|
# ? Oct 24, 2012 19:39 |
|
movax posted:Honestly, Windows is probably the OS that will make you the waste the least time just getting stuff to work. All the major manufacturers have tools that run natively under Windows and treat that as their primary target platform. I've gotten up and running fastest under Windows compared to Linux (Fedora) and OS X. The only exception is probably Microchip ever since they released MPLAB X; it worked right out of the box on my Mac. The exception is when you have a linux target, then a linux host can be convenient. The best solution is run whatever OS you like best and have a VM for each special snowflake toolchain. I like vmware fusion and OSX myself. USB programmers pass through to the VMs cleanly in my experience which is well worth the price (vbox while impressive for a free offering just doesn't have the hardware support).
|
# ? Oct 24, 2012 20:49 |
|
PS Cypress' programmer costs a hundred bucks because they threw an fpga in it, hehehehe
|
# ? Oct 24, 2012 20:52 |
|
Otto Skorzeny posted:PS Cypress' programmer costs a hundred bucks because they threw an fpga in it, hehehehe Yeah the Microchip Real ICE has a FPGA in it also. Haven't cracked it open but I think it's Altera of some flavour. Good tool with good drivers though, and stands up to abuse.
|
# ? Oct 24, 2012 21:11 |
|
Did anyone who ordered that Stellaris Launchpad board for five bucks apiece get their order? Mine is sitting authorized but unprocessed with a ship date of 12/17/2012. I'm having a bit of a hard time believing it's taking them two months (from my purchase) to ship a pair of Launchpads. If the price wasn't five bucks I'd probably cancel and just buy them somewhere else. AVnet wants $5 apiece too (with 399 in stock) but want $22 to ship to Canada so I'm not really ready to pay more for shipping than for two dev boards. edit: If it seems like I'm jumping around back and forth with regards to my dev boards, I absolutely am. The Launchpad has prelim OpenOCD support and an available flasher that should work under OSX and Linux, and quite frankly I'm tired of fighting with the Freescale board. I was about to set up an XP environment to develop for it, but then I saw that the Launchpad is a happy camper under Linux/OSX, relatively speaking. For the record I have absolutely no end goal or project that I'm working on. I'm just trying to dick around with the platform. There are a few pet projects I want to try, but there's nothing that is keeping me from using an Arduino or PIC or something, other than curiosity about the ARM platform. some kinda jackal fucked around with this message at 06:13 on Oct 30, 2012 |
# ? Oct 30, 2012 06:09 |
|
Zombietoof posted:Did anyone who ordered that Stellaris Launchpad board for five bucks apiece get their order? Yeah, I got in on the pre-order and got them at the end of the September I think, though I did use a corporate e-mail which might have helped. What OS do you really want to develop under? Speaking as someone who had to deliver customer projects and not just blinky LEDs, I was able to move seamlessly between Windows and OS X with MPLAB X for a large PIC project, and my hardware (REAL ICE, USB) worked fine on each. Added bonus, the IDE isn't even really necessary because they switched to using make for everything. So I could use Notepad++ on Windows and Sublime on OS X.
|
# ? Oct 30, 2012 06:18 |
|
If I had my choice I would be strict OSX. I've managed to cobble together a toolchain thanks to the advice in this thread, and I've gotten Eclipse CDT to work with that exceptionally well. Right now the weakest link is my Freescale board which, admittedly, was an impulse buy without much research. I've got two Stellaris launchpads in queue so I can play with one here and one at work. I've definitely not ruled out PIC, and their developer support seems to be exceptional. The only real issue I've had with PIC is that I can't find any high profile eval boards. Granted that's partly because I haven't been looking very hard. I've just been skimming the surface of this and was hoping to jury rig what I had into working. As a complete aside (not that I'm accusing anyone of doing this) I definitely don't fault anyone here if they feel like rolling their eyes at me because I'm not really doing any serious research or putting a lot of muscle behind this. It's literally been at the "hey I have an arduino that I like to make LEDs blink on. What else is out there that I can play with? Oh this ARM thing looks pretty cool, let's throw ten bucks at it and see what happens" stage of a hobby. I'm really glad you guys haven't kicked me out on my rear end though
|
# ? Oct 30, 2012 06:31 |
|
I've been working on a project with Arduino and RPi, and I know I'm not working with 'real embedded' stuff yet, but I am in love with tiny computing devices and the things they can do. I have a Stellaris on order and want to play with the 430 stuff as well. I'm assuming that it would behoove me to grind on C for a while? I write perl for a living and can hack through Arduino sketches no problem, but as for the finer (uglier?) points of 'real' C, I'm green.
|
# ? Oct 30, 2012 17:02 |
|
Zombietoof posted:If I had my choice I would be strict OSX. I've managed to cobble together a toolchain thanks to the advice in this thread, and I've gotten Eclipse CDT to work with that exceptionally well. Right now the weakest link is my Freescale board which, admittedly, was an impulse buy without much research. I've got two Stellaris launchpads in queue so I can play with one here and one at work. A major PIC dev platform is the Explorer 16, which can get pricey. Basically, you can buy the most powerful member of certain families of PICs on little plug-in-modules, and it has expansion slots for PICTails of various types (CAN, graphics, etc). The idea is to prototype on these, and then you cut down to the actual PIC you need (less flash/RAM/peripherals/whatever). The PICKit 3 is a really inexpensive programmer/debugger that's a good start to use. The PICDem boards are decent, though some are a little dated. There's also some PIC32 dev boards with USB connectivity for debugging built in, but PIC32s are kind of in a weird spot, being a 32-bit MCU that's MIPS 4K-based whilst everyone and their mom is doing ARM these days. I guess what I'm saying is there are some PIC eval boards out there, but certainly not anything as "nice" as Launchpads or various *duinos in terms of cost and relative complexity. It is actually not that hard to build your own PIC dev "board"; with the PICKit3 (which interfaces via 0.100" headers), a DIP PIC, and some basic parts, you could do it all on a breadboard, no joke. quote:I've just been skimming the surface of this and was hoping to jury rig what I had into working. As a complete aside (not that I'm accusing anyone of doing this) I definitely don't fault anyone here if they feel like rolling their eyes at me because I'm not really doing any serious research or putting a lot of muscle behind this. It's literally been at the "hey I have an arduino that I like to make LEDs blink on. What else is out there that I can play with? Oh this ARM thing looks pretty cool, let's throw ten bucks at it and see what happens" stage of a hobby. I'm really glad you guys haven't kicked me out on my rear end though Everyone's got to start somewhere. Jonny 290 posted:I've been working on a project with Arduino and RPi, and I know I'm not working with 'real embedded' stuff yet, but I am in love with tiny computing devices and the things they can do. I have a Stellaris on order and want to play with the 430 stuff as well. Yeah, you want to get to know C real well. Bitwise stuff is very common, and various toolchains abuse the spec in different ways when it comes to instantiating and utilizing interrupt routines, DMA, and various other macros. Most MCUs lack a MMU, but you can still utilize pointers to great effect, especially considering your limited stack size. You can get weird-rear end declarations like (compiler specific to XC16 here) code:
code:
e: Assembly can come into play, especially if you have a timing-sensitive ISR or something, but I don't think it needs to be a priority to know.
|
# ? Oct 30, 2012 17:16 |
|
Besides bitwise operators, at some point it will probably be useful for you to learn how unions and bitfields work (both of these get used a lot more in an embedded context than in a 'regular' systems-programming context). oh, and TURN OPTIMIZATIONS OFF GLOBALLY and reintroduce them with pragmas where you need them if you're sure you need them. This will save you headaches.
|
# ? Oct 30, 2012 18:19 |
|
Go listen to someone talk about about STM stuff and get some free STM stuff: http://www.st.com/internet/com/Learning/stm32f3_seminars_na.jsp?WT.mc_id=stm32f3seminar_da_adbanner_sep12 I'm going to the one in Toronto on the 8th but only registered just now. Hopefully I'm still good. Will report back! e: (just got my registration confirmation so I guess they're fine with last-second signups!) some kinda jackal fucked around with this message at 02:08 on Nov 8, 2012 |
# ? Nov 7, 2012 06:16 |
|
Attended the STM32F3 presentation. Overall I didn't learn anything useful because the presentation was a lot of sales mixed with a presentation of some IAR workbench pre-fabbed demos. Got a nice board out of it, so at least I have some new tools to play with. Still working on my dev env. Trying to build something that will work for both STM32 and my Stellaris TI when it arrives. So far I've got cs gcc toolchain set up, just working on getting OpenOCD and Eclipse up and cooperating. I think I might be biting off a little too much for a beginner though, and some part of me thinks I should figure out more about basic embedded ARM development before I go worrying about the IDE. Still sloughing my way through Embedded Programming O'Reilly book and it's helping some, but I really wish there was an equivalent to the Arduino support base for, if not individual boards, then at least a generic writeup on how to get into this from a beginner perspective. Nothing I haven't bemoaned about before so I won't rehash it. Picked up a few RFID ICs for a pet project though. Nothing helps spur on learning like having a goal I still swear that when I get halfway decent at this I am going to write some sort of "How to get into ARM development for beginners" website. At least for people who don't use the standard Windows tools.
|
# ? Nov 9, 2012 03:24 |
|
I'm looking into the STM32F4x5/4x7 series (DigiKey overview) for quadcopter (actually, hexacopter but whatever) development. The STM32F4DISCOVERY is only $15. I'll likely go with the 4x7, so I can hook the EMAC up to a ethernet-wifi bridge. Glancing at Wikipedia's STM32 page, it seems like it might be reasonable to do development on OSX. I found someone who is developing the F4 under Ubuntu (except for flashing), and here's a nice F4 under OSX tutorial. I have a Windows VM set up, but I'd rather not have to use it. This looks promising: http://dangerousprototypes.com/tag/stm32f4/ .Martytoof posted:I still swear that when I get halfway decent at this I am going to write some sort of "How to get into ARM development for beginners" website. At least for people who don't use the standard Windows tools.
|
# ? Nov 10, 2012 04:05 |
|
One neat platform I didn't see in the OP is the mbed. The mbed is an ARM Cortex M3 on a wide 40-pin PCB, similar to a large Stamp and smaller than a lot of other prototype boards. It fits in breadboards and can be programmed and powered through USB. The device is actually two ARM chips - one runs your application and has its IO connected to the various board pins, while the other is the "programming" controller which drives the target's programming port as well as emulating a terminal and a flash drive over its USB port. mbed advantages: - if you're lazy, you can use an online IDE in your browser without installing any software at all (you can install a normal ARM tool chain if you want). - the mbed plugs into USB and looks like a USB flash memory key. To program it you just need to copy .bin files to the device, no drivers needed. Libraries allow you to read/write files off the flash disk as well. - the programming language is C++, and there's plenty of libraries for various IO devices - although the mbed board has a limited pinout, there's a ton of IO resources on those pins, including an Ethernet port and an additional USB master/slave port. There are libraries for both, and the USB libraries allow you to do things like emulate a keyboard to a computer, or get keystrokes from a USB keyboard. There are a few disadvantages: - Obviously some people don't like online tools. - I don't think you can directly debug it, but then, I haven't tried non-online tools. - The pinout is limited, and the USB and Ethernet ports do take up precious pins if you don't need those features. The limited pinout might switch me to the new (ARM-based) Arduino Due, but I haven't got my hands on one yet.
|
# ? Nov 10, 2012 06:57 |
|
Anyone use the AVR ISP2? I got this to try to load some C operating instructions onto an ATmega8 processor. For some reason, I can't seem to get my computer to recognize the programmer. The green power light will blink for a second on the programmer but that's it. Anyone ever run into similar problems or have any idea of what I'm doing wrong? Using Atmel Studio 6, I get the following error: Timestamp: 2012-11-10 09:35:36.759 Severity: ERROR ComponentId: 20100 StatusCode: 1 ModuleName: TCF (TCF command: Tool:connect failed.) USB driver attach timed out Edit: Nevermind, figured it out. Kind of. For some reason, the programmer doesn't work on that USB port. The port works fine with anything else. Go figure. KetTarma fucked around with this message at 15:40 on Nov 10, 2012 |
# ? Nov 10, 2012 14:43 |
|
My Stellaris boards (Cortex M4F) came in yesterday. Good times.
|
# ? Nov 10, 2012 15:11 |
|
Otto Skorzeny posted:My Stellaris boards (Cortex M4F) came in yesterday. Good times. heh
|
# ? Nov 10, 2012 21:25 |
|
Does anyone have experience with the Papilio one? https://www.sparkfun.com/products/11158 Seems like a very arduino-ish design, with support for extension boards and all that. I don't have any experience with FPGAs, so is this a good first choice? Is there anything else out there that you would recommend instead for a similar or lower price point? I don't have a specific application in mind, just interested in experimenting and learning about them. I've seen a couple articles about emulating specific processors with FPGAs, for example some video game systems. Is there any kind of online library of various virtual cpu designs like this? Are FPGA designs generally very portable across makes and models?
|
# ? Nov 10, 2012 21:44 |
|
KetTarma posted:The port works fine with anything else. Go figure.
|
# ? Nov 10, 2012 22:56 |
|
peepsalot posted:Does anyone have experience with the Papilio one? https://www.sparkfun.com/products/11158 I would start with this book : http://www.amazon.com/FPGA-Prototyping-VHDL-Examples-Spartan-3/dp/0470185317/ and a starter prototyping board from diligent: https://www.digilentinc.com/Products/Catalog.cfm?NavPath=2,400&Cat=10&FPGA Design using VHDL is difficult and time consuming because it isn't very incremental. Commonly everything has to be 100% laid out and perfect for anything to work properly. Build and Simulation times are very long (multiple minutes). If you want to have fun learning FPGA dev, start small.
|
# ? Nov 10, 2012 23:11 |
|
Dolex posted:Settle a bet, are you running Windows? On this computer, yeah. I have Ubuntu on my desktop but dont really use it that much. Sorry if I lost my nerdcred.
|
# ? Nov 11, 2012 01:49 |
|
Just going to throw this here, but it's a pretty comprehensive writeup for getting a free toolchain and dev environment running. Nothing that you can't put together yourself, and in fact you do need to do a little of your own research if the components or your system details stray too wildly from his defaults, but all said and done it helped me throw together a really nice environment. I'm sure everyone is sick of me posting about my dumb nonstandard requirements so hopefully this will be the last non-actual-programming note I make: http://www.stf12.org/developers/ODeV.html
|
# ? Nov 11, 2012 09:09 |
|
Does anyone have experience with using Forth for embedded programming? I was interested in trying this out and any excuse to program Forth is a good one, but what microcontroller would be a good place to start?
|
# ? Nov 11, 2012 12:18 |
|
Just noticed the guys behind Teensy released version 3 with an ARM Cortex-M4 processor (no fpu, unfortunately), with the intention of having it fully working with Teensyduino (Arduino software for the Teensy) in the near future. Could be interesting to have a decent low-power ARM board without necessarily requiring an ARM compiler toolchain for prototyping. I've been using the Teensy2.0 for a few minor projects and will probably pick some of these newer ones up once things get a bit more complete.
|
# ? Nov 12, 2012 13:29 |
|
So, I've always been interested in embedded programming, since it's so far removed from what I do (web development). I'm thinking I'd like to buy a board and gently caress around with it, but I don't have any ideas for projects. So I'm wondering, what kinds of DIY projects you guys have been working on with your Arduinos and Teensys (Teensies?) and whatnot? (fwiw, I'm thinking of making a "light show" sort of thing that can take audio and blink lights to the beat or something, which seems doable with Arduino) abraham linksys fucked around with this message at 14:08 on Nov 12, 2012 |
# ? Nov 12, 2012 13:57 |
|
abraham linksys posted:So, I've always been interested in embedded programming, since it's so far removed from what I do (web development). I'm thinking I'd like to buy a board and gently caress around with it, but I don't have any ideas for projects. So I'm wondering, what kinds of DIY projects you guys have been working on with your Arduinos and Teensys (Teensies?) and whatnot? happy monday morning.
|
# ? Nov 12, 2012 14:16 |
|
Has anyone read through this? http://www.amazon.com/Embedded-Systems-Introduction-Cortex-Microcontrollers/dp/1477508996 Probably going to pick this up since it looks right up my alley, just wondered whether anyone's had any hands-on experience with this book.
|
# ? Nov 12, 2012 14:51 |
|
KetTarma posted:On this computer, yeah. I have Ubuntu on my desktop but dont really use it that much. Sorry if I lost my nerdcred. There's no nerdcred to it, I use Windows for everything because the manufacturers support it, I've been using it for probably 15 years now, and oh yeah, I pretty much never have to gently caress with anything to get a toolchain up and running. Yeah it's cool for stuff to run on other OSes, but to be honest, I'd rather the companies continue to invest their time and money into improving and perfecting their tools for one OS. They cater to corporations, not hobbyists, and for the most part it's Windows workstations with perhaps some Linux servers doing X11 forwarding for some high-end Cadence/Mentor simulation packages.
|
# ? Nov 13, 2012 06:22 |
|
Case in point: In the time it took me to figure out a good OSX toolchain and dev environment for the Cortex boards I have, I could have been half done learning how to code for the loving things instead. I have this Eclipse/CodeSorcery/OpenOCD setup now, but if anything breaks I am just going to load Win7 in VMware Fusion, install Kale or whatever, and not ever gently caress with trying to sweat out an OSX toolchain again. e: Keil
|
# ? Nov 13, 2012 06:31 |
|
abraham linksys posted:So, I've always been interested in embedded programming, since it's so far removed from what I do (web development). I'm thinking I'd like to buy a board and gently caress around with it, but I don't have any ideas for projects. So I'm wondering, what kinds of DIY projects you guys have been working on with your Arduinos and Teensys (Teensies?) and whatnot? You want a random project? My friend is a big fan of The Iron Giant, and wants to make a replica of the screw: http://www.youtube.com/watch?v=20LTVNlJ3lw&t=15s. I used an 8-pin Atmel uC to try and replicate the sound and light for him: http://www.youtube.com/watch?v=jgexuyCRQuo. (It's not just a simple "beep"... it's using PWM to generate an enveloped, non-square waveform). Oh yeah, and the avrdude programmer I ordered never arrived, so I had to write a custom USB<->SPI interface for a Teensy that I had lying around, and write an avrdude driver for that.
|
# ? Nov 13, 2012 13:30 |
|
movax posted:There's no nerdcred to it I was curious if I was able to spot windows USB behavior. It's like each root-hub is it's own island, and a device can become unwelcome on that island.
|
# ? Nov 13, 2012 14:34 |
|
Man state of charge is a pain in the rear end
|
# ? Nov 13, 2012 15:35 |
|
|
# ? May 13, 2024 08:48 |
|
abraham linksys posted:So, I've always been interested in embedded programming, since it's so far removed from what I do (web development). I'm thinking I'd like to buy a board and gently caress around with it, but I don't have any ideas for projects. So I'm wondering, what kinds of DIY projects you guys have been working on with your Arduinos and Teensys (Teensies?) and whatnot? If you have a microcontroller that simplifies USB HID stuff - like the Teensy and the Uno, I think - making a MIDI controller or a joystick is pretty simple and makes for a fun project. Buy cheap arcade buttons off eBay or DX, cut up a lunchbox for an enclosure, hook it up and play games/make music Alternatively, you could make a pan/tilt rig for a laser pointer (or really small camera) with two servos. If you're lucky, you might be able to power both of them with the micro's current source for less wiring The easiest way to do the "light show", I think, would be processing the audio on the PC, and then send commands over the serial port to have the Arduino control the lights. I can't really think of a way to detect a beat without FFT, which I think is a little too much for the Arduino.
|
# ? Nov 13, 2012 20:19 |