Content originally posted in LPCWare by Rob65 on Sat Jan 14 00:11:45 MST 2012
Quote: hmherzog
However, I do think and think a lot before I program especially on a new platform, but once I am "done" programming one mini-iteration, I like to be able to see the "result" as soon as possible,
Great, it seems there are some 'newbies' that tend to ask first and think later.
One thing you can do (if your board works that is) is to halt the lpcXprosso module and use the 'Peripheral' view (one of the tabs in the top left pane). There you can enable peripherals and view the memory content in the 'memory' pane (bottom of the screen). On my PC I sometimes need to tick a box twice before it appears (with content) in the memory window.
Now you can play around, reading and setting registers of the peripheral.
Still ... refreshing the content of the memory window seems a bit buggy - I never got refresh to work but I need to write to a register in order to see it updated.
Updates seem to be reliable only after single stepping through your code.
Still not perfect but it does give some possibilities.
Quote:
I come from the non-embedded programming world where build-to-test cycles are short, if not instant, and this super-quick cycle is what makes a engineers very happy and productive. It encourages fine-iterative testing (of every tiny change),
It all depends on your software ...
I am not too fond of those super quick cycles but I do use it sometimes (I'm learning Qt and do a lot of those 'what if I change this one bit' tests).
Especially on embedded targets where you have to program a Flash but even downloading to RAM takes some time.
The Flash programming of 40 kBytes/sec. that the CodeRed+ probe support is about the maximum you can get since programming takes time.
Quote:
if that's what you want to do. I guess in the embedded world, or at least with low-cost platforms like LPCXpresso this is not the case.
I spend a lot of time setting up the design and reading through the user manual before actually programming and testing a piece of code. But then, I am an experienced programmer on these platforms so I know what to look for.
Quote:
Would something as seemingly "simple" as the blinky example cause the CPU to get into an undebuggable/uploadable state?
If this indeed is the standard blinky from the examples then there might be some other issue with your hardware or PC installation.
I've seen some strange problems being solved on this forum by just uninstalling and reinstalling the LPCXpresso software and device drivers.
Do you have the possibility to test this on another PCand OS (Windows), just to see if it is your system or the board?
Rob