Difference between revisions of "CMSemicon BAT32G157"

From SEGGER Wiki
Jump to: navigation, search
(Evaluation Boards)
Line 73: Line 73:
   
 
==Evaluation Boards==
 
==Evaluation Boards==
*CMSemicon BAT32G157-EVB evaluation board: https://wiki.segger.com/CMSemicon_BAT32G157_EVB
+
*CMSemicon BAT32G157-EVB evaluation board: https://wiki.segger.com/CMSemicon_BAT32G157-EVB
   
 
==Example Application==
 
==Example Application==

Revision as of 16:12, 14 November 2022

The BAT32G157 series (BAT32 family) are 32-bit general-purpose microcontrollers based on the Arm® Cortex®-M0 processor.

Internal ECC RAM

Device StartAddr Size
BAT32G157GK48FA 0x20000000 32 KB
BAT32G157GK64FB 0x20000000 32 KB
  *** Additional information ***

In order to prevent errors when reading first time, the DLL intialises the first 4Kb of RAM starting at 0x2000_0000.
Due to this attaching to a running system is not possible.

Supported Flash Banks

Internal Flash

Device StartAddr Size J-Link Support
BAT32G157GK48FA 0x08000000 256 KB YES
BAT32G157GK64FB 0x08000000 256 KB YES

Internal Data Flash

Device StartAddr Size J-Link Support
BAT32G157GK48FA 0x08500200 2.5 KB YES
BAT32G157GK64FB 0x08500200 2.5 KB YES

Option Bytes

Within this flash area (offset: 0x0C) and data flash (offset: 0x4)

Please refer to the manual for detailed description

Offset Register
0xc0 WDT Control BYTE
0xc1 LVD Control BYTE (C1H)
0xc2 HOCO Control BYTE (FRQSEL)
0xc3 Flash Protect Control BYTE
0xc4 Boot Area Control BYTE
0xc5 QSPI flash protect option BYTE
0xc6 QSPI flash protect option BYTE0
0xc7 QSPI flash protect option BYTE1


Note:

AS THE OPTION BYTES ARE WITHIN THE NORMAL FLASH AREA PLEASE ENSURE NOT TO OVERWRITE WITH PROGRAM CODE

ONE POSSIBLE SOLUTION IS WITHIN THE EXAMPLES

Reset

The device uses normal reset, no special handling necessary.

Minimum requirements

  • J-Link software V7.82c or later

Evaluation Boards

Example Application