19 } at32f43x_types[] = {
20 { 0x70084540,
"AT32F435ZMT7", 4032,
"LQFP144" },
21 { 0x70083341,
"AT32F435ZGT7", 1024,
"LQFP144" },
22 { 0x70084598,
"AT32F435ZDT7", 448,
"LQFP144" },
23 { 0x70083242,
"AT32F435ZCT7", 256,
"LQFP144" },
24 { 0x70084543,
"AT32F435VMT7", 4032,
"LQFP100" },
25 { 0x70083344,
"AT32F435VGT7", 1024,
"LQFP100" },
26 { 0x70084599,
"AT32F435VDT7", 448,
"LQFP100" },
27 { 0x70083245,
"AT32F435VCT7", 256,
"LQFP100" },
28 { 0x70084546,
"AT32F435RMT7", 4032,
"LQFP64" },
29 { 0x70083347,
"AT32F435RGT7", 1024,
"LQFP64" },
30 { 0x7008459A,
"AT32F435RDT7", 448,
"LQFP64" },
31 { 0x70083248,
"AT32F435RCT7", 256,
"LQFP64" },
32 { 0x70084549,
"AT32F435CMT7", 4032,
"LQFP48" },
33 { 0x7008334A,
"AT32F435CGT7", 1024,
"LQFP48" },
34 { 0x7008459B,
"AT32F435CDT7", 448,
"LQFP48" },
35 { 0x7008324B,
"AT32F435CCT7", 256,
"LQFP48" },
36 { 0x7008454C,
"AT32F435CMU7", 4032,
"QFN48" },
37 { 0x7008334D,
"AT32F435CGU7", 1024,
"QFN48" },
38 { 0x7008459C,
"AT32F435CDU7", 448,
"QFN48" },
39 { 0x7008324E,
"AT32F435CCU7", 256,
"QFN48" },
40 { 0x7008454F,
"AT32F437ZMT7", 4032,
"LQFP144" },
41 { 0x70083350,
"AT32F437ZGT7", 1024,
"LQFP144" },
42 { 0x7008459D,
"AT32F437ZDT7", 448,
"LQFP144" },
43 { 0x70083251,
"AT32F437ZCT7", 256,
"LQFP144" },
44 { 0x70084552,
"AT32F437VMT7", 4032,
"LQFP100" },
45 { 0x70083353,
"AT32F437VGT7", 1024,
"LQFP100" },
46 { 0x7008459E,
"AT32F437VDT7", 448,
"LQFP100" },
47 { 0x70083254,
"AT32F437VCT7", 256,
"LQFP100" },
48 { 0x70084555,
"AT32F437RMT7", 4032,
"LQFP64" },
49 { 0x70083356,
"AT32F437RGT7", 1024,
"LQFP64" },
50 { 0x7008459F,
"AT32F437RDT7", 448,
"LQFP64" },
51 { 0x70083257,
"AT32F437RCT7", 256,
"LQFP64" },
54 for (
size_t i = 0; i < efi::size(at32f43x_types); i++) {
55 if (
id == at32f43x_types[i].uid) {
57 *pn = at32f43x_types[i].pn;
59 *
package = at32f43x_types[i].package;
72 uint8_t EOPB0 = *(__IO uint16_t *) (0x1FFFC010);
75 switch ((*(__IO uint16_t *) (FLASHSIZE_BASE))) {
80 return 512 - (64 * EOPB0);
85 return 512 - (64 * EOPB0);
91 return 512 - (64 * EOPB0);
109 *((
unsigned long *)0x2001FFF0) = 0xDEADBEEF;
165#if CH_DBG_ENABLE_STACK_CHECK
169 otp->activeStack = r13;
172 if (ch0.dbg.isr_cnt > 0) {
176 remainingStack = (int)(r13 - 1) - (int)otp->wabase;
178 otp->remainingStack = remainingStack;
179 return remainingStack;
Reset_Cause_t getMCUResetCause()
BOR_Level_t BOR_Get(void)
void setWatchdogResetPeriod(int)
BOR_Result_t BOR_Set(BOR_Level_t BORValue)
int getRemainingStack(thread_t *otp)
uint32_t __main_stack_base__
int at32GetMcuType(uint32_t id, const char **pn, const char **package, uint32_t *flashSize)
struct port_intctx intctx_t
void jump_to_bootloader()
int at32GetRamSizeKb(void)
static void reset_and_jump(void)
typedef __attribute__
Ignition Mode.
UNUSED(samplingTimeSeconds)
bool SharedParamsWriteByIndex(uint32_t idx, uint8_t value)
Writes a data byte to the shared parameter buffer at the specified index.
void SharedParamsInit(void)
Initializes the shared RAM parameters module.
void boardPrepareForStandby()
static uint16_t flashSize()