Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Keil RTX and bootloading
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
4 replies
Subscribers
127 subscribers
Views
3542 views
Users
0 members are here
Related
Keil RTX and bootloading
Offline
Johan Moraal
over 7 years ago
Note: This was originally posted on 25th January 2011 at http://forums.arm.com
Hi all.
I've recently written a secondary bootloader for NXP LPC17xx devices. The design is relatively simple: All our products have embedded serial flash connected with an SPI bus to the micro. The user application is responsible to load a binary image onto the serial flash. When the bootloader starts, it checks the serial flash for a binary image. If one is not found, it jumps to the user application. If one is found, it verifies the integrity of the image by doing a CRC check. If the check passes it begins to update the LPC's flash from the binary image on the serial flash.
I've confirmed that the bootloader application is working properly. Firstly I checked the LPC's flash with a ULINK Pro and made sure the bootloader is not accidentally overridden. Then I uploaded a small application that reads and verifies a large chunk of flash and blinks a led. All these tests succeeded and I'm confident my bootloader works properly.
The problem arises when I try to upload an application which uses the Keil RL-ARM real time OS. When I upload this type of application, nothing happens. I traced the problem with a ULINK and I found that the trace stops at SVC_Handler in startup_LPC17xx.s.
All our RL-ARM based applications run in privileged mode. I know the RTOS uses SVC to access hardware etc in privileged mode.
Is there something I should do in the bootloader in order to support RL apps?
Parents
Offline
Joseph Yiu
over 7 years ago
Note: This was originally posted on 25th January 2011 at
http://forums.arm.com
Hi there,
The Keil RTX Kernel should contain the require SVC handler. For some unknown reasons, the SVC vector in your compiled image might be pointing to the dummy SVC handler in the startup code rather than the OS kernel. You might need to check your compile and linking options to see if anything can affect it.
The dummy SVC handler in the startup code should be declared as [WEAK], which mean it can be overridden by a real SVC handler is it is presented. You can also try remove the dummy SVC handler in the startup code to see if it can solve the problem.
Are you using the source code version or precompiled RTX kernel library?
If using the source version, make sure HAL_CM3.c is included in the project.
This contains the "SVC_Handler".
regards,
Joseph
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Joseph Yiu
over 7 years ago
Note: This was originally posted on 25th January 2011 at
http://forums.arm.com
Hi there,
The Keil RTX Kernel should contain the require SVC handler. For some unknown reasons, the SVC vector in your compiled image might be pointing to the dummy SVC handler in the startup code rather than the OS kernel. You might need to check your compile and linking options to see if anything can affect it.
The dummy SVC handler in the startup code should be declared as [WEAK], which mean it can be overridden by a real SVC handler is it is presented. You can also try remove the dummy SVC handler in the startup code to see if it can solve the problem.
Are you using the source code version or precompiled RTX kernel library?
If using the source version, make sure HAL_CM3.c is included in the project.
This contains the "SVC_Handler".
regards,
Joseph
Cancel
Up
0
Down
Reply
Cancel
Children
No data
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Suggested Answer
Positioning a function in a Position Independent Executable for ARMV8
0
1477
views
3
replies
Latest
6 days ago
by
Stephen Theobald
Answered
Link a pure binary file to image with scatter file
0
1448
views
3
replies
Latest
6 days ago
by
Ronan Synnott
Answered
Failed to read contents of Internal RAM L1-I_DATA in ARM DS
0
Arm Development Studio
Cache
Debug and Trace Services Layer (DTSL)
4031
views
23
replies
Latest
19 days ago
by
Boon Khai
Suggested Answer
DS-5 connect fail when cortex-r5 is in lock-step mode
0
3705
views
10
replies
Latest
26 days ago
by
Stuart Hirons
Suggested Answer
On Cortex-M4F microcontrollers: is fixed point math faster or floating point?
0
3372
views
10
replies
Latest
27 days ago
by
Ronan Synnott
>
View all questions in Arm Development Studio forum