【KEIL4.74】社区版安装与激活详细步骤教程

【KEIL4.74】社区版安装与激活详细步骤教程

文章目录

1.登录 Arm Keil | Log in ,注册好后登录,复制第五项的PSN编号.

2.登录 此网站MDK-ARM Version 4.74 Product Update  ,完整填写问卷调查并提交。 

3.跳转到网站内可下载KEIL4.74版本

4.打开“File”的“License Management”拷贝CID编号。

5.跳转到网站获取Single-User License。

6.完整填写调查问卷(前两项分别写CID,PSN编号)。

7.点击提交之后,会在你注册邮箱收到的邮件中获得LIC编码。

8.打开“File”的“License Management”填写LIC码,并点击 AddLIC。

9.出现截止日期即代表激活成功!


1.登录 Arm Keil | Log in ,注册好后登录,复制第五项的PSN编号.

 Arm Keil | Log in 

2.登录 此网站MDK-ARM Version 4.74 Product Update  ,完整填写问卷调查并提交。      MDK-ARM Version 4.74 Product Update

 

 填写完整后提交。

3.跳转到网站内可下载KEIL4.74版本

链接:https://pan.baidu.com/s/1nfupWp3pi15hpMzAyXTCZw 
提取码:fryk

此处提供百度网盘分享KEIL4.74版本。

 4.打开“File”的“License Management”拷贝CID编号

 

5.跳转到网站获取Single-User License

6.完整填写调查问卷(前两项分别写CID,PSN编号

 

7.点击提交之后,会在你注册邮箱收到的邮件中获得LIC编码

8.打开“File”的“License Management”填写LIC码,并点击 AddLIC.

9.出现截止日期即代表激活成功!

 

1. FX3 SDK main components. User firmware Libraries ThreadX RTOS (cyu3threadx.a) FX3 API Library (cyfxapi.a) Serial Peripheral API Library (cyu3lpp.a) Storage API Library (cyu3sport.a) MIPI CSI-2 API Library (cyu3mipicsi.a) Take the example firmware lowpowertest debug reversion for the test, need link following library. libcyu3lpp.a libcyfxapi.a libcyu3threadx libc.a libgcc.a -lcyu3lpp -lcyfxapi -lcyu3threadx -lc -lgcc While the search path will be: -L"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\lib\gcc\arm-none-eabi\4.8.1" -L"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\arm-none-eabi\lib" -L"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\fw_lib\1_3_3\fx3_debug" Link script will be fx3.ld for 512KB SRAM. From fx3 initialization block, could understand the fx3 entry point is CyU3PFirmwareEntry() function, so need manually assign entry point by follow linker command. --entry,CyU3PFirmwareEntry So Keil 4.74 IDE Linker page needs to configure as following pic. 2. Specific GNU cross compile tool path. Under tap project->Manage Project Items… -> Folders/Extensions Point to use GCC cross compile tools, please fill GNU-Tool-Prefix “arm-none-eabi-” while GNU-Tool Folder “C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\” 3. C compile tap page configure. Predefined symbols __CYU3P_TX__=1. Include Path: ..\inc Without optimizations 4. Specific output file type. Under tap page Project->Options for target fx3->Output Need create object file with debug information. 5. After build elf file, execute user command. After precompiler, compiler and linker could get object file fx3.elf, need to convert to img file for download. So need execute user command: "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\util\elf2img\elf2img.exe" -i fx3.elf -o fx3.img –v Summary After configuration, click Build button will show build output log like following pic.
Keil MDK 4.74环境下,你可以使用以下代码段来初始化LPC1114微控制器的UART串口,配置波特率、数据位、停止位以及校验位。假设你已经在头文件中包含了相关的函数声明,并且已经将硬件寄存器映射到对应的变量。 ```c #include "lpc111x.h" // 包含LPC1114的头文件 void initialize_UART(void) { // 初始化串口 LPC_USART0->LCR = (1 << FCR.bits.BRGH) | 0x03; // 设置波特率,115200 波特率下 BRGH=1 和 divisor=16 LPC_USART0->DLM = 0; // 数据位位数,8位 LPC_USART0->DLL = 0; LPC_USART0->FDR = 0; // 停止位,1位 LPC_USART0->LCR |= (1 << PFLSH); // 开启填充字符(清除发送队列) // 配置奇校验 LPC_USART0->LCR &= ~(1 << PAR); // 清除奇偶校验位选择,奇校验 LPC_USART0->LCR |= (1 << SPEN); // 发送使能 // 中断使能 LPC_USART0->IER = (1 << TIIE) | (1 << RIIE); // 接收中断使能和发送中断使能 NVIC_EnableIRQ(UART0_IRQn); // 启动UART0中断处理 } // 当需要接收数据时调用这个函数 void wait_for_data(void) { while (!(LPC_USART0->LSR & (1 << RIF))) { // 等待接收标志RI变为1 __WFI(); // 如果有空闲CPU周期,进入低功耗模式 } } ``` 注意: 1. 这里假设`LPC_USART0`是UART0模块的别名,实际项目中请替换为你工程中的正确名称。 2. `NVIC_EnableIRQ()`用于开启中断服务请求,确保已正确注册并启用相应的中断向量。 3. 请确保你已经正确地设置了定时器和波特率发生器以达到115200bps的速率。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Karry D

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值