Lastest GM328A - Page 1
Forum section: electronics / testgear

author: carl1961
author_rank: Contributor
timestamp: February 10, 2024, 10:21:51 pm
content: I got a GM328A a week ago, searched everywhere about GM328A. I learned what I could from pictures and data sheets. the Mega328P chip is not removable and seems firmware is locked so I fail to get a backup. I will post what I found. I won't try to update the old 1.12 firmware until I figure out the display type. I was hoping to get a dump of the firmware and hopefully find some info about the display. beats me why theses or made with open source firmware and they lock them. they never learn that if they or open and people (like me and others ) improve them, they could sell tons more than they would locked up.Got Display showing with Version 1.13 is Karl Heinz Kuebbler's MEGA328_COLOR_KITDisplay fixed Github with fileshttps://github.com/carl1961/New-GM328A

author: carl1961
author_rank: Contributor
timestamp: February 10, 2024, 10:53:46 pm
content: SinaProg pictures found SinaProg here on this forum by indman

author: carl1961
author_rank: Contributor
timestamp: February 10, 2024, 11:31:43 pm
content: AVRDUDESS 2.4 You can see the eeprom backed up, but the flash is not complete

author: carl1961
author_rank: Contributor
timestamp: February 11, 2024, 01:17:45 am
content: Changed Crystal to 16 Hz .. messed up screen

author: coromonadalix
author_rank: Super Contributor
timestamp: February 11, 2024, 02:07:07 am
content: there is a thread about 20$ component tester i would have been better to post thereand i had some problems with the lates avr dudess 2.4 i reverted on the older 2.3 ...for some 328 you must have the good selection, thre is a 328p and now a 328b who causes some headackesso far in the images i see your eeprom and flash reads, but i dont see the write settingsand did you read the fuses before any read or writenormally it is the 1st thing to do ... you note them, because on some occasion the fuses may have a lock bite setup, and the read will be messed up,you will need to have the good fuses settings to write or override the read protection ??

author: carl1961
author_rank: Contributor
timestamp: February 11, 2024, 02:36:07 am
content: Thanks for you post. I have not written to the atmega328p chip, only read what i could, the fuse in pictures is what i read from the chip.

author: indman
author_rank: Super Contributor
timestamp: February 11, 2024, 09:05:25 am
content: carl1961and to All,seehttps://www.eevblog.com/forum/testgear/tc1-lcr-meter-transistor-tester-fix/msg5119572/#msg5119572

author: carl1961
author_rank: Contributor
timestamp: February 11, 2024, 11:13:33 am
content: Got My screen back but not right yet, ST7735 TheHWcave settings New version 1.51m from MarkusEDIT: It was the 16 hz crystal I put in that messed the screen up along with needing to use SEMI in the config_328.h#if 1//#define LCD_ST7735 /* display controller ST7735 */#define LCD_SEMI_ST7735 /* display controller SEMI ST7735 */and putting the 8 hz crystal backCode:#if 1#define LCD_ST7735 /* display controller ST7735 */#define LCD_GRAPHIC /* graphic display */#define LCD_COLOR /* color display */#define LCD_SPI /* SPI interface *//* control and data lines */#define LCD_PORT PORTD /* port data register */#define LCD_DDR DDRD /* port data direction register */#define LCD_RES PD0 /* was PD4 <<<TheHWcave port pin used for /RESX (optional) */#define LCD_CS PD5 /* port pin used for /CSX (optional) */#define LCD_DC PD1 /* was PD3 <<<TheHWcave port pin used for D/CX */#define LCD_SCL PD2 /* port pin used for SCL */#define LCD_SDA PD3 /* was PD1 <<<TheHWcave port pin used for SDA *//* display settings */#define LCD_DOTS_X 128 /* number of horizontal dots */#define LCD_DOTS_Y 160 /* number of vertical dots *///#define LCD_OFFSET_X 4 /* enable x offset of 2 or 4 dots *///#define LCD_OFFSET_Y 2 /* enable y offset of 1 or 2 dots *///#define LCD_FLIP_X /* enable horizontal flip */#define LCD_FLIP_Y /* enable vertical flip */#define LCD_ROTATE /* switch X and Y (rotate by 90°) *///#define LCD_BGR /* reverse red and blue color channels *///#define LCD_LATE_ON /* turn on LCD after clearing it *//* font and symbols: horizontally aligned & flipped */#define FONT_10X16_HF /* 10x16 font *///#define FONT_6X8_ISO8859_2_HF /* 6x8 Central European font *///#define FONT_8X8_ISO8859_2_HF /* 8x8 Central European font *///#define FONT_8X12T_ISO8859_2_HF /* thin 8x12 Central European font *///#define FONT_8X16_ISO8859_2_HF /* 8x16 Central European font *///#define FONT_10X16_ISO8859_2_HF /* 10x16 Central European font *///#define FONT_8X16_WIN1251_HF /* 8x16 cyrillic font *///#define FONT_8X16ALT_WIN1251_HF /* 8x16 alternative cyrillic font */#define SYMBOLS_30X32_HF /* 30x32 symbols *///#define SYMBOLS_30X32_ALT1_HF /* 30x32 alternative symbols #1 *///#define SYMBOLS_30X32_ALT2_HF /* 30x32 alternative symbols #2 *///#define SYMBOLS_32X32_HF /* 32x32 symbols *///#define SYMBOLS_32X32_ALT1_HF /* 32x32 alternative symbols #1 *///#define SYMBOLS_32X32_ALT2_HF /* 32x32 alternative symbols #2 *//* SPI bus */#define SPI_BITBANG /* bit-bang SPI */#define SPI_PORT LCD_PORT /* SPI port data register */#define SPI_DDR LCD_DDR /* SPI port data direction register */#define SPI_SCK LCD_SCL /* port pin used for SCK */#define SPI_MOSI LCD_SDA /* port pin used for MOSI */#endif

author: carl1961
author_rank: Contributor
timestamp: February 11, 2024, 11:56:13 am
content: Thanks indman

author: grossd
author_rank: Newbie
timestamp: December 16, 2024, 09:09:15 pm
content: I own a GM328A identical to the one in the photos by carl1961. When compiling version 1.53m in a Linux environment using the settings from this thread and "Clones" file, I got a flipped image and the colors didn't match. I am posting the settings that work for me. Maybe it will be useful for someone.Code:/** ST7735* - 4 wire SPI interface using bit-bang SPI*///#if 0//#define LCD_ST7735/* display controller ST7735 */#define LCD_SEMI_ST7735/* display controller SEMI ST7735 */#define LCD_GRAPHIC /* graphic display */#define LCD_COLOR /* color display */#define LCD_SPI /* SPI interface *//* control and data lines */#define LCD_PORT PORTD /* port data register */#define LCD_DDR DDRD /* port data direction register */#define LCD_RES PD0 /* port pin used for /RESX (optional) */#define LCD_CS PD5 /* port pin used for /CSX (optional) */#define LCD_DC PD1 /* port pin used for D/CX */#define LCD_SCL PD2 /* port pin used for SCL */#define LCD_SDA PD3 /* port pin used for SDA *//* display settings */#define LCD_DOTS_X 128 /* number of horizontal dots */#define LCD_DOTS_Y 160 /* number of vertical dots *///#define LCD_OFFSET_X 4 /* enable x offset of 2 or 4 dots *///#define LCD_OFFSET_Y 2 /* enable y offset of 1 or 2 dots */#define LCD_FLIP_X /* enable horizontal flip *///#define LCD_FLIP_Y /* enable vertical flip */#define LCD_ROTATE /* switch X and Y (rotate by 90°) */#define LCD_BGR /* reverse red and blue color channels *///#define LCD_LATE_ON /* turn on LCD after clearing it *//* font and symbols: horizontally aligned & flipped */#define FONT_8x16_ALT_HF /* 8x16 alternative font *///#define FONT_10X16_HF /* 10x16 font *///#define FONT_6X8_ISO8859_2_HF /* 6x8 Central European font *///#define FONT_8X8_ISO8859_2_HF /* 8x8 Central European font *///#define FONT_8X12T_ISO8859_2_HF /* thin 8x12 Central European font *///#define FONT_8X16_ISO8859_2_HF /* 8x16 Central European font *///#define FONT_10X16_ISO8859_2_HF /* 10x16 Central European font *///#define FONT_8X16_WIN1251_HF /* 8x16 cyrillic font *///#define FONT_8X16ALT_WIN1251_HF /* 8x16 alternative cyrillic font *///#define SYMBOLS_30X32_HF /* 30x32 symbols *///#define SYMBOLS_30X32_ALT1_HF /* 30x32 alternative symbols #1 *///#define SYMBOLS_30X32_ALT2_HF /* 30x32 alternative symbols #2 */#define SYMBOLS_32X32_HF /* 32x32 symbols *///#define SYMBOLS_32X32_ALT1_HF /* 32x32 alternative symbols #1 *///#define SYMBOLS_32X32_ALT2_HF /* 32x32 alternative symbols #2 *//* SPI bus */#define SPI_BITBANG /* bit-bang SPI */#define SPI_PORT LCD_PORT /* SPI port data register */#define SPI_DDR LCD_DDR /* SPI port data direction register */#define SPI_SCK LCD_SCL /* port pin used for SCK */#define SPI_MOSI LCD_SDA /* port pin used for MOSI *///#endif