【经验】使用中微的BAT32A237车规级MCU写DataFlash后程序空间数据被修改的解决办法
中微推出的BAT32A237系列是工作温度为-40℃~125℃的车规级MCU,采用ARM的Cortex-M0+内核,最高可工作于48MHz主频,集成I2C、SPI、UART、LIN、CAN总线等多种标准接口,12bit ADC、8bit DAC、比较器,可编程增益放大器等功能。BAT32A237还具有出色的低功耗性能,运行功耗为120μA/MHz@48MHz,在深度睡眠模式下功耗仅0.7μA。广泛适用于车载产品的开发。
BAT32A237集成了一个1.5KB的专用数据存储空间,可以用于存储数据信息,避免占用程序空间,影响程序的运行。在使用时,有可能出现,程序可以正常运行,当往数据存储空间写入某些数据后,程序不能运行。将程序空间的数据读出来,和程序比较,会发现数据完全被修改。这是什么原因造成的呢?
从Flash的结构图中可以看到,数据存储空间地址为0x500000到0x5005FF之间。在手册的闪存数据保护选项字节介绍中,OCDM的地址为0x500004,BTEN的地址为0x500005,当BTEN为0时,使能引导交换功能,0x0000到0x0FFF和0x1000到0x1FFF空间的内容进行交换。OCDM和BTEN的地址刚好在数据存储空间地址范围内,所以写数据到数据存储空间,就有误触发BTEN的风险。这也是程序空间的数据被修改的原因。
为了解决这个问题,我们可以跳过数据空间的第一块空间,将数据写入从0x500200开始的地址。如果数据量较大,需要用满1.5KB的数据空间,这就需要分析存储在BTEN地址的数据是否为1。如果为1,不会对程序空间造成影响;如果为0,就需要对数据进行调整,让BTEN地址的数据保持为1。
- |
- +1 赞 0
- 收藏
- 评论 0
本文由东方的风提供,版权归世强硬创平台所有,非经授权,任何媒体、网站或个人不得转载,授权转载时须注明“来源:世强硬创平台”。
相关推荐
【经验】使用KEIL5外部创建的工程无法打开的解决方法
客户使用的BAT32A237系列是中微半导体研发的车规级高品质的32位MCU,工作温度-40~125℃,适用于汽车复杂运行工况和恶劣环境中,已经在汽车车载电子控制模块中具有广泛应用。在打开外部工程时,出现这样的问题:头文件不能识别,以及打不开驱动文件。
设计经验 发布时间 : 2023-06-07
【经验】KEIL开发环境下安装中微半导体MCU BAT32A237 pack包失败解决方法
用户在开发这个产品时,可以使用KEIL进行开发,中微官方也提供了对应的pack文件。但是有用户在使用时,安装不了pack包。排除提供的pack包损坏原因,查看KEIL的版本。客户使用的keil版本为V5.14.0.0,中微官网上推荐版本为V5.32。将版本更新至V5.28后,pack包成功安装,问题解决。
设计经验 发布时间 : 2023-06-21
【经验】中微MCU BAT32A237的两个串口使用不同波特率出错的解决办法
中微推出的车规级ARM MCU BAT32A237采用ARM的Cortex-M0+内核,最高可工作于48MHz主频,集成I2C、SPI、UART、LIN、CAN总线等接口,12bit ADC、8bit DAC、比较器,可编程增益放大器功能。
设计经验 发布时间 : 2023-01-05
中微半导体微控制器(MCU)选型表
中微半导体提供以下8位MCU/32位MCU参数选型,主频8MHz-128MHz,电压1.8V-5.5V。
产品型号
|
品类
|
封装形式
|
主频(MHz)
|
内核
|
工作温度 (℃)
|
电压 (V)
|
Memory Type
|
ROM
|
RAM
|
GPIO
|
DMA
|
Timer
|
WDT/WWDT
|
UART
|
I²C
|
SPI
|
PWME/PWM
|
SAR-ADC-unit
|
SAR-ADC-bit
|
SAR-ADC-ch
|
COMP
|
BAT32A233KC24NA
|
32位通用MCU
|
QFN24
|
64MHz
|
M0+
|
-40℃ ~125℃
|
2.0V~5.5V
|
FLASH
|
32KB
|
4KB
|
21
|
40
|
9
|
1
|
2
|
2+1
|
2+1
|
7
|
1
|
12
|
8
|
2
|
选型表 - 中微半导体 立即选型
中微半导体(Cmsemicon)MCU/电源/驱动产品选型指南
型号- BAT32G179,CMS79F73X,BAT32A233,BAT32A239,BAT32A237,CMS32M5系列,CMS8H1205B,CMS32M6526C,CMS7850-1,CMS1668,BAT32G137-A,CMS8S7885,SC8F083,CMS79F72X,BAT32A系列,CMS80F253X,CMS79FT62XB,CMS79FT61X,SC8F6790,CMS6D220,CMS24AD2301,CMS6164,CMS32H6241,CMS32L032,CMS32L031,CMS79F72XB,CMS32M5533E,CMS80F731X,CMS8S7895,CMS1641,BAT32G157,CMS1640,BAT32A337,CMS32F402,CMS79F53X5,CMS32M6系列,CMS32F0332,CMS9B312,SC8P052,CMS9B313,SC8P053,CMS32M6536E,SC8P054,CMS32M7510,CMS75XX,CMS8H1215C,CMS8S5880,CMS32M5736,CMS8S5887,CMS8S5889,CMS80F231X,SC8F2892B,CMS32M6534E,CMS8H5145,CMS9B321,CMS32M6710,CMS6021,CMS32L051,CMS32M5,CMS32M6,BAT32G139,CMS32M7,CMS80F761X,CMS8S5898,CMS8S5899,BAT32G135,BAT32A279,CMS8S5897,BAT32G137,CMS79F51XX,CMS8H120D,CMS32M7系列,CMS32M6736E,CMS32H6157,CMS8H1213,CMS8H1215,CMS1628,CMS8S6990,SC8F054,CMS32M6526,BAT32A6700,CMS3D205,BAT32A6300,CMS32H3201,CMS32F0301,CMS8H5120,CMS7850,CMS79F53X,CMS32L073,SC8P171XE,CMS79F13X,CMS8S006,SC8F073,CMS32F045,SC8F072,CMS80F751X,BAT32G113,CMS80F262X,CMS1650S,CMS6971,CMS79F12X,CMS32M5536,CMS32F033,CMS32F035,BAT32G127,CMS24AD2001,CMS24AD2002,CMS32M6510,BAT32A,CMS79F11X,BAT32G133,CMS32F030
芯海科技车规级SAR ADC新品CS1795X荣获“中国芯”
2024年11月7日,2024中国微电子产业促进大会暨第十九届“中国芯”优秀产品征集结果发布仪式在珠海横琴粤澳深度合作区隆重举行。芯海科技旗下集成高精度基准的低功耗汽车级SAR ADC芯片CS1795X系列,从280家芯片企业的364款产品中脱颖而出,荣获本届“中国芯”优秀技术创新产品奖。
原厂动态 发布时间 : 2024-11-13
微容科技(VIIYONG)车规系列片式多层陶瓷电容器选型指南
目录- 公司简介和产品介绍 产品型号规格及代码定义 车规MLCC产品范围 车规MLCC-C0G系列 车规MLCC-X7R系列 车规MLCC-X7S系列 车规MLCC-X7T系列 应用技术要求
型号- A360J0201C0G500NA,A271F0805C0G101NK,A271J0805C0G101NK,A392M0402X7R250NB,A331G0805C0G251NK,A1R2A0402C0G250NB,A100G0603C0G101ND,A0R5B0603C0G101ND,A821M0402X7R160NB,A471K0201X7R100NA,A471M0201X7R100NA,A392K0402X7R250NB,A821K0402X7R160NB,A1R8B0201C0G250NA,A3R0A0603C0G500ND,A272K0603X7R101ND,A272K0402X7R160NB,A226M1210X7S250N3,A272M0402X7R160NB,A102J1206C0G631N1,A105M0805X7S101NH,A102F1206C0G631N1,A103G1206C0G631N1,A2R7A0603C0G101ND,A2R7C0603C0G101ND,A8R2C0201C0G500NA,A1R5B0402C0G500NB,A105K0805X7S101NH,A102M0201X7R100NA,A225K0805X7R250N5,A226K1210X7S250N3,A473K0603X7R101ND,A3R0C0603C0G500ND,A102K0201X7R100NA,A225M0805X7R250N5,A122G0603C0G101ND,A180G0201C0G500NA,A180G0201C0G250NA,A683J1206C0G500N1,A5R6C0402C0G250NB,A0R6A0603C0G101ND,A332J0805C0G251NH,A561K0402X7R250NB,A104M0402X7R160NB,A227M1210X7T2R5N3,A683F1206C0G500N1,A562F1210C0G631NO,A3R6B0402C0G500NB,A1R3B0402C0G250NB,A153K0402X7R100NB,A104M0603X7R101ND,A562J1210C0G631NO,A101F0603C0G101ND,A103F1206C0G500NE,A153M0402X7R100NB,A472G1206C0G631N1,A104K0603X7R101ND,A332F0805C0G251NH,A105K0805X7R160N5,A221F0402C0G250NB,A240F0603C0G500ND,A153G1206C0G101NE,A105M0805X7R160N5,A6R0B0201C0G500NA,A6R0B0201C0G250NA,A9R0C0603C0G101ND,A103J0805C0G101NH,A332K0402X7R100NB,A6R2D0201C0G500NA,A221J0402C0G250NB,A7R5B0603C0G500ND,A7R5D0603C0G500ND,A240J0603C0G500ND,A183G1210C0G631NP,A6R0D0201C0G500NA,A222G1206C0G251NO,A332M0402X7R100NB,A563M0402X7R500NB,A8R0C0201C0G250NA,A1R1B0402C0G250NB,A151J0805C0G251NK,A103J1206C0G500NE,A8R2C0201C0G250NA,A561M0402X7R500NB,A103F0805C0G101NH,A563K0402X7R500NB,A104K0402X7R160NB,A151F0805C0G251NK,A561K0402X7R500NB,A121F0603C0G101ND,A123F1206C0G500NE,A360J0201C0G250NA,A392M0402X7R500NB,A1R0B0603C0G500ND,A121J0603C0G101ND,A123J1206C0G500NE,A223G0805C0G500N5,A392K0402X7R500NB,A823K0603X7R101ND,A182M0201X7R250NA,A823K0402X7R160NB,A272J0603C0G500ND,A102G0603C0G101ND,A471G0805C0G101NK,A823M0402X7R160NB,A333F1206C0G101NE,A6R0D0201C0G250NA,A104G1206C0G500N1,A152M0201X7R250NA,A681F0603C0G101ND,A681J0603C0G101ND,A152K0201X7R250NA,A221M0402X7R101NB,A1R6A0402C0G500NB,A272F0603C0G500ND,A333J1206C0G101NE,A221M0201X7R160NA,A223M0603X7R500ND,A3R3B0603C0G500ND,A8R0C0201C0G500NA,A471M0402X7R160NB,A1R2A0402C0G500NB,A1R2C0402C0G500NB,A1R3B0402C0G500NB,A101J0603C0G101ND,A360F0201C0G250NA,A1R6C0402C0G500NB,A223K0603X7R500ND,A823K0805X7R101N5,A471G0603C0G101ND,A221K0402X7R101NB,A823M0805X7R101N5,A272G0805C0G101NK,A471K0402X7R160NB,A390G0402C0G250NB,A472J0805C0G101NH,A221K0201X7R160NA,A682K0201X7R100NA,A8R0B0402C0G500NB,A8R0D0402C0G500NB,A5R0B0603C0G500ND,A682M0201X7R100NA,A560G0201C0G250NA,A220G0402C0G250NB,A820G0603C0G500ND,A271G1206C0G631NK,A123K0402X7R100NB,A122K0201X7R100NA,A101G0805C0G201ND,A472F0805C0G101NH,A182K0201X7R250NA,A123M0402X7R100NB,A1R0A0402C0G250NB,A272K0201X7R100NA,A1R0C0402C0G250NB,A471F1206C0G631NK,A471J1206C0G631NK,A152G0805C0G251NK,A272M0201X7R100NA,A102G0805C0G101NK,A122M0201X7R100NA,A4R0A0201C0G250NA,A683K0402X7R100NB,A0R9A0603C0G500ND,A562K0201X7R250NA,A6R8B0603C0G101ND,A1R2B0603C0G500ND,A561G1206C0G251NK,A1R6C0402C0G250NB,A3R3A0402C0G500NB,A222K0402X7R250NB,A240G0402C0G250NB,A270G0603C0G101ND,A2R0B0201C0G500NA,A1R5A0201C0G250NA,A330F0201C0G500NA,A682F1206C0G631N1,A3R0B0402C0G250NB,A182G0805C0G251NK,A1R8C0402C0G500NB,A183G1206C0G101NE,A563M0402X7R250NB,A330J0201C0G500NA,A1R0C0402C0G500NB,A3R9A0402C0G250NB,A106M0603X7T6R3NK,A472G0603C0G500ND,A2R4B0603C0G101ND,A120G0603C0G101ND,A273J1206C0G500NE,A102M0402X7R160NB,A821M0201X7R100NA,A391K0402X7R101NB,A822K0201X7R160NA,A102M0603X7R101ND,A473G1206C0G500N1,A1R5B0402C0G250NB,A682J1206C0G631N1,A273F1206C0G500NE,A822K0603X7R250ND,A391K0201X7R160NA,A1R5A0201C0G500NA,A101J0805C0G101ND,A820F0603C0G101ND,A6R2B0201C0G250NA,A104M0805X7R101N5,A820J0603C0G101ND,A106M0805X7S250NH,A7R0B0603C0G101ND,A101F0805C0G101ND,A682G0805C0G251NH,A223M0603X7R250ND,A183K0402X7R100NB,A4R0C0201C0G500NA,A822G0805C0G500N5,A361F1206C0G251NK,A681M0402X7R100NB,A5R1B0603C0G101ND,X7T系列,A222J0603C0G500ND,A122M0603X7R101ND,A431K0201X7R100NA,A0R7B0603C0G101ND,A5R1C0603C0G500ND,A682K0402X7R160NB,A221J1206C0G251NK,A6R2B0201C0G500NA,A360G0402C0G500NB,A220G0402C0G500NB,A391J1206C0G251NK,A4R3B0603C0G101ND,A471J0603C0G500ND,A271K0201X7R160NA,A3R3C0402C0G250NB,A271K0402X7R101NB,A273K0603X7R500ND,A105M0603X7R250ND,A1R6B0201C0G250NA,A122M0402X7R160NB,A152G0603C0G101ND,A152F1210C0G631NK,A474M0603X7R160ND,A153G1210C0G631NP,A471F0603C0G500ND,A152J1210C0G631NK,A682K0603X7R101ND,A222F0603C0G500ND,A391F1206C0G251NK,A683M0603X7R160ND,A4R3B0201C0G250NA,A5R6B0603C0G500ND,A1R1A0603C0G500ND,A3R6C0201C0G250NA,A183M0402X7R500NB,A1R5C0603C0G500ND,A180F0402C0G500NB,A222G1210C0G631NO,A5R6D0201C0G250NA,A8R2D0402C0G500NB,A3R6A0603C0G500ND,A272M0603X7R101ND,A1R1C0201C0G250NA,A473K0402X7R160NB,A681J0805C0G251NK,A182F1210C0G631NK,A1R8B0201C0G500NA,A474K0805X7S101NH,A821G0603C0G101ND,A475M0603X7T6R3NK,A182J1210C0G631NK,A473M0805X7R101N5,A106K0805X7T6R3NH,A240G0402C0G500NB,A8R0D0402C0G250NB,A331M0201X7R250NA,A560G0201C0G500NA,A6R2C0402C0G500NB,A390G0402C0G500NB,A221F120
【应用】中微半导体推出基于车规级微控制器芯片的汽车氛围灯方案,主频高达48MHz,支持休眠唤醒
中微半导体汽车氛围灯方案基于Arm Cortex®M0+内核BAT32A237芯片,使用LIN总线与主机通信,支持休眠唤醒,降低系统功耗,通过对上拉及恒流源开关进行控制,配合电流采样电路,实现LN自动寻址功能。
应用方案 发布时间 : 2023-04-05
曦华科技CVM012x——全球首款负载电容超纳法级车载触控MCU,正式通过ISO 26262功能安全产品认证
曦华科技CVM012x系列是全球首颗超越nF级负载电容限制的车载触控MCU,产品严格践行ISO26262:2018标准要求,经国际公认测试、检验和认证机构SGS 独立审核,近日获颁功能安全ASIL-B 产品认证证书,将助力曦华科技在国内和国际开拓更广阔的市场。
原厂动态 发布时间 : 2024-11-01
【视频】2023年8月17日可编程器件新技术研讨会
地平线、EPSON、中微等分享RISC-V MCU、车规32位MCU、低功耗时钟芯片、车规级存储、可编程时钟等新品。
活动 发布时间 : 2023-11-29
昂瑞微电子车规级蓝牙SoC芯片OM6650AM通过权威第三方测试机构AEC-Q100车规级认证
2023年9月,昂瑞微电子车规级蓝牙SoC芯片OM6650AM通过权威第三方测试机构AEC-Q100车规级认证,并已向各大车载应用厂商进行推广。显示了公司在布局车规级芯片产品线方面的实力和决心。
原厂动态 发布时间 : 2023-09-23
BAT32A237 Ultra-low-power 32-bit microcontroller based on the ARM® Cortex-M0®+ Built-in 128K bytes Flash, rich analog functions, security functions, timers and various communication interfaces Datasheet
型号- BAT32A237KH64FB,BAT32A237KH32FP,BAT32A237KH40,BAT32A237KH32,BAT32A237KH64,BAT32A237 SERIES,BAT32A237KH40NB,BAT32A237KH48FA,BAT32A237,BAT32A237KE24NA,BAT32A237KH48
中微半导体 (Cmsemicon)汽车电子器件(Soc) 选型指南
描述- 中微半导体设备(上海)股份有限公司(证券简称“中微公司”,证券代码“688012”)是一家以中国为基地、面向全球的微观加工高端设备公司,为集成电路和泛半导体行业提供极具竞争力的高端设备和高品质的服务。
型号- BAT32A233KC32NA,BAT32A237KH32FP,BAT32A279KM64FB,BAT32A279,BAT32A6XXX SERIES,BAT32A233,BAT32A337,BAT32A2X SERIES,BAT32A239,BAT32A237,BAT32A3X,BAT32A3X SERIES,BAT32A6700KH48NB,BAT32A237KH40NB,BAT32A239KK80FA,BAT32A6700,BAT32A337SH64FB,BAT32A239KK64FB,BAT32A337SH48FA,BAT32A6300,BAT32A239KK48NB,BAT32A279KM100FA,BAT32A6300KC32NA,BAT32A233KC32FP,BAT32A237KH48FA,BAT32A239KK48FA,BAT32A237KH64FB,BAT32A337SH32FP,BAT32A2X,BAT32A279KM80FA,BAT32A337SH40NB,BAT32A6703KH40NB,BAT32A237KE24NA,BAT32A233KC24NA,BAT32A6703,BAT32A6XXX
【视频】2023年3月30日汽车电子新技术研讨会
国民技术、拓尔微、XSENS、极海、芯海等厂商分享国产车规MCU、AI芯片、惯导模块、激光雷达、智能座舱等全新汽车电子产品与新技术。
活动 发布时间 : 2023-11-29
BAT32A237基于 ARM® Cortex®-M0+的超低功耗 32 位微控制器内置 128K 字节 Flash,丰富的模拟功能,安全机能,定时器及各种通讯接口数据手册
型号- BAT32A237KH64FB,BAT32A237KH32FP,BAT32A237系列,BAT32A237KH40,BAT32A237KE24,BAT32A237KH32,BAT32A237KH64,BAT32A237KH40NB,BAT32A237KH48FA,BAT32A237,BAT32A237KE24NA,BAT32A237KH48
电子商城
现货市场
服务
可定制变压器电压最高4.5KV,高频30MHz;支持平面变压器、平板变压器、OBC变压器、DCDC变压器、PLC信号变压器、3D电源、电流变压器、反激变压器、直流直流变压器、车载充电器变压器、门极驱动变压器等产品定制。
最小起订量: 100000 提交需求>
可定制LAMP LED、 CHIP LED、 PLCC LED、 汽车用车规级LED、COB LED的尺寸/电压/电流等参数,电压1.5-37V,电流5-150mA,波长470-940nm。
最小起订量: 30000 提交需求>
登录 | 立即注册
提交评论