Content originally posted in LPCWare by Ex-Zero on Tue May 15 01:49:28 MST 2012
Quote:
I see that the samples used are somewhat 'dated'. What would you recommend to start with? I mean, it would be a rather stupid idea trying to port an old sample to cmsis v2?
As mentioned above, I use to start with Project wizard and create a new project (CMSIS2.0 and CRP enabled).
Quote:
Yes, the LPCXpresso-versions are 'mixed' but how should I handle projects as there are frequently new releases? Do I really need to rebuild everything from scratch for every new release of LPCXpresso?
This new releases doesn't bother a solid working project.
Quote:
Concerning the CAN-code: Yes, its based on the sample. Is it wrong, has anything significantly changed? What should be changed, what is "bad style"?
Bad style is everything what's making this project difficult to read. I've hundreds of projects on my PC, Laptop,... and so an important thing is to keep projects easy and readable.
I've to understand my own projects in 1, 5 or 10 years again :eek:
This CAN sample is using CAN ROM driver, so I just need rom_driver_CAN.h and a few lines for CAN_RX... in main. So I don't need thousands of directories, configs, headers.... :)
As simple Debug and Release version, 2 or 3 options for UART and CAN self test that's all I need. With all my files in src folder there's nothing confusing any more :rolleyes:
After a few month of testing I create libs of larger files (like TFT stuff), that's making working and compiling faster.
You have to decide yourself what's bad or good, but my experience is that easy, readable projects are a very important part of working successful with this stuff.