See changelog
[hackover2013-badge-firmware.git] / ChangeLog.txt
1 v0.9.8 - Ongoing
2 ================
3 - Added driver for Sharp Memory Display
4 /drivers/lcd/bitmap/sharpmem
5 - Added SPI Flash example
6 /tools/examples/spiflash/*
7 - Added write function to SPI Flash driver
8 /drivers/spiflash/*
9 - Added CFG_BRD_LPC1343_REFDESIGN_MINIMAL as a board
10 option in projectconfig.h. Tries to keep the flash
11 use as small as possible by initialising less
12 peripherals in systemInit().
13 - Changed CodeLite project files to support real
14 debugging with a Segger J-Link and GDB Server.
15
16 v0.9.5 - 3 August 2011
17 ======================
18
19 - Redid the font rendering code to use DotFactory
20 generated fonts, and update to the latest binary
21 in the /tools folder. All fonts have been
22 re-rendered to accomodate the updated code.
23 - Updated clock values in cpu.c for PLL to match FCCO
24 range of 156-320MHz
25 - Changed SCB_PLLCTRL_MULT_* to SCB_PLLCTRL_MSEL_* in
26 lpc111x.h to match usermanual
27 - Changed SCB_PLLCTRL_DIV_* SCB_PLLCTRL_PSEL_* in
28 lpc111x.h to match usermanual
29 - Added inline version of key functions in ili9328.c,
30 which increases the code size ~1.3KB but more than
31 doubles the drawing speed for most drawing functions
32 by avoiding branch operations and pushing and popping
33 the stack multiple times. Inline methods can be
34 toggled with 'ILI9238_USE_INLINE_METHODS'.
35 - Fixed IOCON_SWDIO_PIO1_3_FUNC_CT32B1_MAT2 in lpc134x.h
36 - Added drawCornerFilled() to drawing.c and LCD CLI
37 - Fixed a nasty bug with 'gpioInterruptEvent' in the
38 gpioSetInterrupt function (core/gpio/gpio.c)
39 - Add drawTriangle() and drawTriangleFilled() to
40 drawing.c and LCD CLI
41 - Added cpuReset() to reset the board via AIRCR
42 - Removed text input dialogue from LCD CLI ('T') to
43 save a few KB. Command file still exists, just no
44 longer included in cmd_tbl.h by default.
45
46 v0.9.2 - 14 June 2011
47 =====================
48
49 - Added ISL12022M RTC Driver (/drivers/rtc/isl12022m)
50 - Fixed a bug drawing filled circles with lcdDrawVLine
51 - Added CLI command to toggle LCD backlight
52 - Added rounded rectangle command to CLI
53 - Added CFG_INTERFACE_DROPCR to projectconfig.h to
54 ignore CR (\r) characters in incoming data for
55 the CLI
56 - Added CFG_INTERFACE_SHORTERRORS to projectconfig.h
57 to only send short (1 char + new line) CLI error
58 messages rather than something verbose
59 - Added CFG_INTERFACE_CONFIRMREADY to projectconfig.h
60 to provide a character to indicate when a command
61 is complete in case the IRQ pin
62 (CFG_INTERFACE_ENABLEIRQ) can't be used
63 - Fixed a bug with reversed R and B bits when reading
64 a pixel from the LCD in CLI mode
65 - Added lcdDrawPixels() to lcd.h and the current lcd
66 drivers to render rows of raw lcd data much quicker
67 than addressing consecutive pixels individually.
68 Can be used with windowing in future for fast
69 animation, continuously writing raw pixels in a
70 32x32 pixel frame, etc.
71 - Fixed ili9328SetWindow() and ili9325SetWindow().
72 They can now be used for fast screen paints of
73 restricted areas of the screen, such as animations
74 where raw pixel data is constantly fed to the LCD.
75 - Fixed pixel overflow bugs in drawCircleFilled(). Any
76 pixels that exceed screen limits will now be dropped,
77 though at the expense of slightly slower code.
78 - Added drawLineDotted() to drawing.c to draw lines with
79 a fixed pattern of empty and solid pixels
80 - Added __resetBootloader() macro to lpc134x.h to
81 reset and enter the USB bootloader (LPC1343 Reference
82 Design Base Board only since this depends on the
83 existance of the RC combination on the ISP pin).
84 To reset and executre code normally, the watchdog
85 time can be used (see "core/wdt").
86 - Added AIRCR register to lpc134x.h (Application Interrupt
87 and Reset Control Register).
88 - Added drawIcon16() to drawing.c to render monochrome
89 16x16 pixel icons from a byte array.
90 - Added a handful of common 16x16 icon definitions in
91 /drivers/lcd/icons16.h ... adapted from Gentleface
92 Toolbar Icon Set. For license terms see
93 http://www.gentleface.com/free_icon_set.html
94 - Added a few basic RGB565 color schemes to colors.h and
95 an image file showing the colors in /tools/colors_h.png
96 - Updated alphanumeric dialogue form to use new buttons.
97 - Rewrote drawButton() to use rounded rectangle and
98 all colors are now passed in as parameters. Also
99 modified the button command in the CLI to match this.
100 - Rewrote drawProgressBar() to take advantage of the
101 new rounded rectangle function (below). Also
102 modified the progress bar command in the CLI to
103 allow more colors to be indicated when rendering.
104 - Added drawRectangleRounded() to drawing.c (filled
105 rectangle with configurable rounded corners).
106 - Added drawArrow() to drawing.c to make small rectangles
107 for left/right menu items, etc.
108 - Completely rewrote the touch screen calibration code to
109 be much more accurate.
110
111 v0.9.0 - 28 March 2011
112 ======================
113
114 - Calibration process no longer starts automatically when
115 calibration data is not found in EEPROM. tsCalibrate()
116 now needs to called manually or from the CLI.
117 - Fixed a bug in cmd_tswait.c when no delay was passed.
118 - Added CLI command to set touch screen threshold
119 to register a touch event (since this can vary from
120 screen to screen). Type 'x' at the CLI to get/set
121 the value. The setting is persisted to EEPROM, and if
122 no value is found on EEPROM CFG_TFTLCD_TS_DEFAULTTHRESHOLD
123 from projectconfig.h is used.
124 - Adjusted touch screen code to check ADC values twice
125 and compare. If mismatch occurs, and error is returned.
126 This provides far more consistent TS values at the
127 expense of having to check the error results. See
128 'alphanumeric.c' for an example of doing this
129 correctly.
130 - Added seperate driver for ILI9328 based displays, even
131 though it seems to be identical to the ILI9325. Files
132 were seperated in case the initialisation needs to be
133 tweeked later or if incompatibilities are found.
134 - Added the ability to write the contents of the LCD
135 to a bitmap image, though it's very slow reading data
136 pixel by pixel and converting it to 24-bit RGB values.
137 Performance can definately be improved.
138 - Added 'drawRGB565toBGRA32' to drawing.c to convert
139 RGB565 colors back to the canonical BGRA32 format
140 - Added gain controls to TSL2561 driver to increase or
141 decrease sensitivity. Should be easy to implement
142 auto-gain functionality now.
143 - Changed USB VID to a valid value. Source files and
144 lpc134x-vcom.inf updated accordingly.
145 - Moved USB VID and PID to projectconfig.h
146 - Added '-mcpu' flag to the linker in Makefile (the wrong
147 libm was being linked because of this).
148
149 WARNING
150 --------------------------------------------------------
151 - Some config settings in EEPROM were relocated in v0.90+
152 of the LPC1343 Code Base to take into account the new
153 touch screen calibration code. See projectconfig.h
154 for more details of the new EEPROM layout.
155
156 v0.8.6 - 21 March 2011
157 ======================
158
159 - Added DWT section to LPC134x.h (see Cortex-M3
160 Technical Reference Manual section 8.3)
161 - Added CPU_RESET_CYCLECOUNTER to cpu.c to do rough
162 in-code performance checks (counts CPU cycles)
163 - Added '-lm' to linker in Makefile for math.c support
164 - Increased MAX_STRING_SIZE from 100 to 255 in stdio.c
165 - Added driver for the TCS3414 RGB color sensor
166 - Added driver for the TSL2561 digital light sensor
167 - Added CFG_USBCDC_BUFFERSIZE to projectconfig.h
168 instead of cdc_buf.h.
169 - Added a PWM example using a piezo buzzer (see
170 'tools/examples/basics/pwm_piezobuzzer' for details)
171 - Added ctype.c to 'core/libc'
172 - Changed Crossworks project to use libc files from
173 'core/libc' and modified the USB CDC printf to be
174 much faster by redirecting inside 'puts' rather than
175 '__putchar' (see 'sysinit.c').
176 - Fixed a bug in LPC134x.h ... USB_CMDCODE write and read
177 masks were reversed
178 - Added a simple example of reading the card ID from an
179 ISO14443A (Mifare Classic, etc.) card using the PN532
180 ('/tools/examples/sensors/pn532/ISO14443A_ID').
181 - Added an 'lcd' folder to 'tools/examples' showing how to use
182 the generic lcd drawing routines, the touch-screen, etc.
183 - Rewrote part of the touch screen calibration code to get more
184 accurate results. Each point is now tested twice and the
185 results are averaged. Values beyond a certain limit are also
186 rejected to ignore wacky readings.
187 - Added a preliminary PN532 (NFC/RFID) driver. Currently UART
188 only, and only allows simple commands to be sent and received.
189 By default, all data is fed out to the console via printf.
190 Will be elaborated and expanded in future releases.
191 - Cleaned up the ILI9325 TFT LCD driver a bit, adding a proper
192 enum for the commands, etc.
193
194
195 v0.8.5 - 7 March 2011
196 =====================
197
198 - Fixed a problem with GDB script when deploying firmware
199 with Segger J-Link in CodeLite. Code will now deploy
200 and start executing properly when F5 is pressed (assuming
201 the Segger GDB Server software is running in the background).
202 - Interrupts are now disabled while feeding the watchdog as per
203 a warning in the usermanual.
204 - Changed fonts for TTF LCDs. DejaVu Sans 9 is now used by default
205 in the LPC1343 Code Base. The following open source fonts have
206 been converted using The Dot Factory (see '/tools/dotfactory') and
207 can be found in '/drivers/lcd/tft/fonts':
208
209 FONT NAME WIDTH
210 ------------------------------- ----------
211 - Bitstream Vera Mono 9 Fixed (8)
212 - Bitstream Vera Mono 9 Bold Fixed (8)
213 - Bitstream Vera Mono 11 Fixed (9)
214 - Bitstream Vera Mono 11 Bold Fixed (9)
215 - DejaVu Sans 9 Variable
216 - DejaVu Sans 9 Bold Variable
217 - DejaVu Sans Condensed 9 Variable
218 - DejaVu Sans Mono 8 Fixed (8)
219 - DejaVu Sans Mono 8 Bold Fixed (8)
220
221 - Modified projectconfig.h to select the target board and configure
222 the project accordingly. This isn't ideal, but it's a lot more
223 maintainable than have a seperate code base for every board since
224 they share 95% of the same code.
225 - Modified WDT code to use the WDT oscillator (rather than the
226 external crystal)
227 - Fixed a bug when waking up from sleep in Chibi. Removed systick
228 delay when toggling reset and slptr pins since this was causing
229 a blocking condition with the wakeup ISR.
230 - Added an example of how to retrieve the MCU's unique
231 128-bit serial number using IAP (core/iap)
232 - Added an option to projectconfig.h to select which pin to use for
233 SCK on SSP0, since the QFN33 package doesn't have all the same
234 pins.
235 - Updated Chibi to v0.91 (adds sleep method and promiscuous mode to allow
236 Chibi to act as an 802.15.4 packet sniffer, etc.).
237 - Added lcdProperties_t to lcd.h to indicate the properties of different
238 LCDs (to determine if there is a touch screen present, whether the
239 screen orientation can be changed, etc.)
240 - Added basic ST7735 LCD driver (128x160 pixel TFT LCD using 6-pin
241 SPI-esque interface). Work in progress (no orientation support, etc.).
242 - Added some simple examples in the 'tools/examples' folder.
243
244 v0.80 - 27 Jan 2011
245 ===================
246
247 - Added optimised lcdDrawVLine using orientation
248 though this should only be used on lines
249 greate than 20 pixels or so to see any real
250 advantage
251 - Added cmd_uart to allow the HW UART speed
252 to be set in EEPROM (between 9600 and
253 115200). Use the 'U' command.
254 - Updated Crossworks projects files to use
255 custom printf in 'core/libc' (gains about
256 1.3KB in release mode)
257 - Added driver for SSD1306 OLED displays
258 to '/drivers/bitmap/ssd1306'
259 - Changed commands in the CLI to single
260 characters and shortened descriptions
261 to save flash space (~0.7KB)
262 - Updated ILI9325 to allow the screen
263 orientation to be changed to portrait
264 of landscape mode.
265 - Added cmd_orientation to change the LCD
266 orientation from the CLI
267 - Fixed a bug in the PMU Wakeup interrupt
268 handler
269 - Added a circular buffer for outgoing CDC
270 data (cdc_buf.c) since you can only feed one
271 frame per ms (max 64 bytes). The speed needs
272 to be improved finding the right balance
273 between caching data and sending it to the EP,
274 but this should avoid any dropped characters.
275 More testing will be needed to improve this.
276 - Fixed a bug with the USB CDC buffer
277 - Added SILENTMODE to the CLI to disable the
278 command prompt and echo of input characters
279 (see CFG_INTERFACE_SILENTMODE). Useful
280 when another MCU is use the CLI rather than
281 a human.
282 - Added IRQ pin to the CLI to indicate when a
283 command is being processed (pin = low) and
284 when it has completed or a new command can
285 be processed (pin = high).
286 - Added 'cmd_tswait' to wait for a touch event
287 - Removed 'drivers/nfc/pn532' until proper drivers
288 can be written
289 - Added 'cmd_text' and 'cmd_textw' to the CLI to
290 render text on the LCD and get the width in
291 pixels of the specified text before rendering.
292
293 v0.70 - 18 Dec 2010
294 ===================
295
296 - Added 'calibrate' and 'gettext' commands to the CLI
297 - Added a dialogue box for the TFT LCD/Touchscreen
298 to input alpha-numeric data and return the
299 results as a string ('drivers/lcd/tft/dialogues/*')
300 - Added touch screen calibration code and UI
301 ('drivers/lcd/tft/touchscreen.c')
302 - Fixed a bug in ILI9325.c to make sure that the LCD
303 is reset during initialisation
304 - ** IMPORTANT ** Changed 'core/i2c/*' to fix a number
305 of bugs (thanks Rob65!) ... though this means all
306 i2c peripherals and drivers will need to be tested.
307 - Added 'colorscheme_t' to drawing.h to try to use a
308 standard color palette across GUI controls and make
309 it easy to change later. Currently only the button
310 and progress bar make use of this.
311 - Added 'lcdBacklightOn()' and 'lcdBacklightOff()' to
312 lcd.h
313 - Added 'CFG_TFTLCD_TS_THRESHOLD' to projectconfig.h
314 to configure touch-screen sensitivity when waiting
315 for a touch event
316 - Modified 'core/gpio/gpio.c' to reduce the compiled code
317 size. Repetitive switches where only the registers
318 change were modified to use temporary registers and
319 execute the code only once.
320 - Added the source and binaries for TheDotFactory to
321 'tools/dotfactory' for convenience sake. See:
322 http://www.pavius.net/downloads/tools/53-the-dot-factory
323 - Removed 'drivers/lcd/tft/tscalibration.c' and moved
324 the relevant code to touchscreen.c
325 - Removed the imgconv tool from 'tools/imgconv' (see
326 point below for more information)
327 - Removed the previous custom image code and replaced
328 it with 24-bit Windows bitmap files. This is a bit
329 slower (since 24-bit data needs to be converted to
330 RGB565 for each pixel and rows are rendered bottom
331 up making pixel drawing harder to optimise) but
332 converting and eventually saving images is easier.
333 The current code is functional but needs to be
334 heavily optimised.
335 - Made some minor optimisations to the data and cmd
336 functions in the ILI9325 driver. Other functions
337 need to be optimised as well, but these two should
338 be close to optimal now. Currently 25 cycles
339 compiled with -Os, 36 cycles with no optimisation.
340 - Added 'projects/command/drawing/cmd_bmp.c' to load
341 24-bit Windows bitmap images from the SD card and
342 display them on the TFT LCD.
343 - Added some schematics to '/tools/schematics' to
344 show the assumed pin configurations
345
346 v0.60 - 8 December 2010
347 =======================
348
349 - Added a number of CLI commands for the TFT LCD
350 (see 'project/commands/drawing')
351 - Modified FCLK_FAST() in 'drivers/fatfs/mmc.c' to set
352 the max speed to 6.0MHz for improved reliability.
353 Tested with a 4GB microSD card, 300KB/s can be read
354 using a 512 byte read buffer.
355 - Modified Chibi to use 16-bit timer 0 for us delays
356 (more accurate)
357 - Added a number of commands to
358 '/projects/commands/drawing' for basic TFT LCD
359 operations. Removed 'lcd-test.c' and 'lcd-fill.c'.
360 - Added a flag to projectconfig.h to make FATFS read-only
361 (to save a couple KB when space is tight).
362 - Moved 'project/eeprom.*' to 'drivers/eeprom' to add a
363 level of abstraction to eeprom access throughout the code
364 - Added a table to projectconfig.h to manage eeprom
365 addresses. First 256 byte of eeprom should be reserved
366 for this.
367 - Added 'drivers/lcd/tft/colors.h' to keep all common
368 16-bit RGB565 color definitions in one location
369 - Added some sample images to 'tools/imgconv' that can
370 be used to render a basic clock on a TFT LCD screen
371 (using drawImageFromFile in 'drivers/lcd/tft/drawing.c')
372 - Modified the makefile to automatically run './lpcrc'
373 post-build
374 - Added drawButton() to 'drivers/lcd/tft/drawing.c'
375 - Updated 'drivers/lcd/tft/touchscreen.c' to do basic
376 debouncing. tsReadZ() was added to detect pressure on
377 the touch screen, and tsWaitForEvent() will only exit
378 when the pressure passes a minimum threshold. (Thanks
379 to Limor for pointing out some code by Rossum for this.)
380 - Fixed some off-by-one pixel errors in cmd-test and
381 elsewhere
382
383 v0.51 - 27 November 2010
384 ========================
385
386 - Added simple RSA encryption/decryption driver. Currently limited to
387 using 64-bit and 32-bit numbers in key pairs, which isn't terribly secure,
388 but allows much smaller code size than if huge number support was included.
389 - Added a driver for the MCP4725 I2C DAC (see "drivers/dac/mcp4725").
390 - Moved 'rom_drivers.h' from 'core/usbhid-rom' to 'core' since it can be used
391 for usbmsd-rom as well if it is implemented at a later date.
392 - ili9325ReadData() added to ili9325.c by Adafruit Industries (thanks!)
393 - Modified FCLK_FAST() in 'drivers/fatfs/mmc.c' to set fast SPI speed
394 to 18MHz instead of the previous 4MHz. This allows for slightly faster
395 rendering of bitmap images from SD cards, amongst other things.
396 - Fixed ILI9325 driver to use 0,0 based pixels and not 1x1, meaning the
397 pixel co-ordinates are 0..239 for X and 0..319 for Y. There may still be
398 some off-by-one pixel issues that need to be further tested.
399
400 v0.50 - 26 October 2010
401 =======================
402
403 - Moved command.c and cmd_tbl.h to /project to try to keep all
404 project-specific files in one location to improve code-sharing and make
405 upgrading easier
406 - Created seperate .c files for every command for the command-line interface
407 to make it easier to maintain and share code between projects. All commands
408 listed in cmd_tbl.h are now stored in their own files in /project/commands
409 (ex.: "/project/commands/cmd_hello.c", etc.)
410 - Added a CLI command to demonstrate how to draw to the ILI9325 TFT LCD
411 - Added a CLI command to show the contents of any directory from the SD card
412 (/project/commmands/cmd_sd_dir.c)
413 - Added a CLI command showing how to enter deep-sleep and exit with a SW
414 wakeup (/project/commands/cmd_deepsleep.c). Please note that the wakeup
415 will not work if you are using USB for the CLI. To see the wakeup message,
416 you must use UART for the CLI, which is selected by uncommenting
417 CFG_PRINTF_UART in projectconfig.h
418 - Fixed pmu.c to set the core clock back to an appropriate state after wakeup
419 - Added simple wrapper for eeprom access (projects/eeprom.c)
420 - Reorganised drivers/lcd to take into account non TFT LCD displays.
421 - Added a preliminary (experimental) driver for 128x64 pixel ST7565-based
422 bitmap LCDs (ex: Adafruit Industries - http://bit.ly/9xj5vw) ... based on a
423 driver from Limor Fried at Adafruit
424 - Numerous bug fixes added by Roel Verdult (Linux compatibility, GCC warnings, etc.)
425 - Added stub files for PN532 driver (/drivers/nfc/pn532), and added CFG_PN532 to
426 projectconfig.h as an option
427 - Added a simple pwm example using 16-bit timer 1 and p1.9 (MAT0) for the output. PWM can be used
428 to drive stepper motors, or to dim LEDs by adjusting the duty-cycle, etc. The example can be
429 found in "/core/pwm"
430 - Added a bi-polar stepper motor driver based on the Arduino library. Basic position data was added
431 to detece deviation from the 'Home' position and to retrieve the spindle's current angle. See
432 "drivers/motor/stepper" for more information.
433 - Added test firmware for the UART and USBCDC CLI (tools/testfirmware)
434 - Added a table to projectconfig.h to try to keep track of pin and peripherals
435 usage by drivers and the included SW examples.
436 - Reorganised some pins used by drivers to avoid pin conflicts.
437 - Modified core/timer16/timer16.c to allow PWM output to be stopped after a
438 certain number of pulses have been sent out.
439
440 KNOWN ISSUES
441
442 - The SPI code needs to be modified to allow several SPI devices to be safely
443 connected on the same bus. At present, this has not been tested since the
444 SSP/SPI blocks are used exclusively in the current drivers.
445
This page took 0.066731 seconds and 5 git commands to generate.