Booting dircetly into Redlink FW from flash
Booting dircetly into Redlink FW from flash
Hello,
the usual way to use the Redlink FW is a two-step approach:
- First the MCU of the probe enumerates as a DFU device.
- Then the Redlink Server downloads the current Redlink FW into SRAM
and the probe re-enumerates as a different HID device (VID 0x21BD, PID 0006) which is the probe FW.
This works quite fine, but if your target MCU also boots into USB at the same time the probe boots,
then the host cannot know which device is the probe and which one is the target.
In this scenario it would be desirable to flash the (current) Redlink FW once into the internal flash of the probe MCU and then directly boot from flash.
The probe would then enumerate as the"probe HID" device directly.
Can this be done easily, i.e. is there a Redlink FW that is relocated for start from internal flash?
We plan to deploy quite a lot (40+) of these "hard coded debuggers" for edu purposes in two labs.
The probes are already designed and tested with the LPC4320 (and up) and work fine so far.
AFAIK they could run on some LPC18xx as well. If so, does this require a different Redlink FW?
We just use the JTAG debug interface, no SWD, trace port or other fancy stuff.
Best regards,
Mike
First of all, redlink is designed to run on known NXP debug probe hardware only.
It is only tested on such probes, and we make no guarantees as to its use on other hardware.
Also redlink firmware will only run LPC43xx, there is no LPC18xx variant.
But those points aside, if you hardware had SPIFI flash then you should be able to program the image into that -
the LPC43xx bootloader would download it into RAM on startup).
LPCScrypt could be used to do this.
But there is no redlink firmware build available that could run from internal flash. < run from SRAM always >
Note that you mention LPC4320 - which of course has no internal flash.
If you are using internal flash then the simplest solution might be to try using CMSIS-DAP firmware,
which is designed to programmed and run from flash ......
http://www.lpcware.com/lpclink2-config-tool
Regards,
LPCXpresso Support
Update:
I decided to stick with the Redlink FW, because according to the documentation the CMSIS/DAP version cannot debug the multicore targets.
So I just wrote a "bootloader stub" residing in internal flash
- which copies the current Redlink FW (stored in internal flash as a BLOB also) to SRAM,
- sets up VTOR and the SP for SRAM operation and
- then jump to the "new" reset vector, i.e. starts the FW.
Works fine on a LPC4327.
Our "microboards" now enumerate immediately as "LPCLINK2 redlink" devices
and work as expected with LPCXpresso as JTAG probes.
Thanks for your help and clarification even on a project that is well "out of support scope".
Regards,
Mike
Glad to hear that you now have a solution that works for you.
You should take note though that the redlink firmware provided with one version of LPCXpresso may not work with,
or may not provide support for some features, when used with a future LPCXpresso release.
Thus I would recommend that you update the firmware you have flashed when you update to a new LPCXpresso version.
Also regarding the CMSIS-DAP firmware for LPC-Link2:
you are correct that using this firmware you can currently only connect from LPCXpresso to the M4 core inside the LPC43xx parts.
Allowing connections via CMSIS-DAP to the M0 core(s) is something we do intend to support in a future release LPCXpresso release though.
Regards,
LPCXpresso Support
Booting dircetly into Redlink FW from flash的更多相关文章
- 【转载】Serial NOR Flash and U-Boot
转载自:http://blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial-flash U-Boot supports serial N ...
- 创建squashfs
SquashFS 通常的livecd都有一个这个文件,是核心的文件系统 SquashFS 也是一个只读的文件系统,它可以将整个文件系统压缩在一起,存放在某个设备,某个分区或者普通的文件中.如果您将其压 ...
- Bug搬运工-CSCvg37458:ISR4K goes into booting loop with "flash:" in boot statement
ISR4K升级的时候要注意了! 很可能会碰到如下的问题: ISR4K goes into booting loop with "flash:" in boot statement ...
- [转]uboot中SPI Flash Booting配置
转自:https://e2echina.ti.com/question_answer/dsp_arm/sitara_arm/f/25/t/124834 最近和人一起调试SPI FLASH的配置问题,做 ...
- s3c2440 移值u-boot-2016.03 第2篇 支持Nand flash启动
1, 要求:在4K 的代码以内,完成 NOR NAND 类型判断,初始化 NAND 复制自身到 SDRAM ,重定向. 2, 在 /arch/arm/cpu/arm920t/ 文件夹里 添加一个 in ...
- LPC18xx LPC43xx LPC4370 Bootrom USB DFU FPB - Flash Patch and Breakpoint Unit
What is the difference between a Bootrom vs bootloader on ARM systems Bootrom Bootrom (or Boot ROM) ...
- Android eMMC Booting
Android eMMC Booting Contents [hide] 1 eMMC binaries 1.1 Creating the GPT table 1.2 Modifying .IMG F ...
- Android gingerbread eMMC booting
Android gingerbread eMMC booting This page is currently under construction. The content of this page ...
- Booting ARM Linux
来源:linux-2.6.30.4/Documentation/arm/Booting ARM Linux Booting ARM Linux ================= ...
随机推荐
- js数组方法forEach,map,filter,every,some实现
Array.prototype.map = function(fun /*, thisp*/) { var len = this.length; if (typeof fun != "fun ...
- 克隆虚拟机重启之后eth0不见的解决方案
今天用虚拟机克隆多一个虚拟机的时候,发现克隆之后的新虚拟机的网卡eth0在配置之后完全是用不了的,下面说一下我的解决办法,亲测可用. 1.用ipconfig命令查看ip信息的时候会发现虚拟机没有找到e ...
- 让浏览器重新下载css文件,解决不刷新缓存的问题
网站页面源代码中的css文件和js文件后面带一个问号,后面跟着一连串数字或字符,问号起不到实际作用,仅能当作后缀,如果用问号加参数的方法,可以添加版本号等信息 它的作用有:1.作为版本号,让自己方便记 ...
- Ettercap之ARP+DNS欺骗
1.网络攻击拓扑环境 网关:192.168.133.2 攻击者:192.168.133.128 受害者:192.168.133.137 2.原理讲解 ARP欺骗 简介:ARP(Address Reso ...
- linux系统下如何批量更改文件夹里面所有相同字符【转】
如网上源码下载下来我们需要调试,调试过程中需要修改里面相同文字,下面提供三种方法供参考 通过sed命令替换 sed -i "s/oldyunwei/newyunwei/g" gre ...
- lombok使用说明
简介lombok 的官方网址:http://projectlombok.org/lombok 提供了简单的注解的形式来帮助我们简化消除一些必须有但显得很臃肿的 java 代码.特别是相对于 POJO, ...
- Linux硬盘的检测(原创)
http://czmmiao.iteye.com/blog/1058215 概述 随着硬盘容量.速度的快速发展,硬盘的可靠性问题越来越重要,今天的单块硬盘存储容量可轻松达到1TB,硬盘损坏带来的影响非 ...
- 点击超链接打开本地QQ
2014年6月4日 10:20:18 张志斌 这个功能实际上是属于腾讯的推广项目"一键加群"功能: http://qun.qq.com/join.html 用户必须有自己的群,登录 ...
- knnMatch
先马克下,回头再看:http://blog.csdn.net/zkl99999/article/details/47950425 http://blog.csdn.net/yangtrees/arti ...
- Laravel中服务提供者和门面模式
在laravel中,我们可能需要用到自己添加的类时,可以建立一个文件夹专门存放类文件,也可以使用laravel的服务提供者的方式来使用. 这两者其实区别不大,主要是前者使用的话,会跟业务代码产生依赖, ...