Refs #778, #981. Corrected the demo bootloader C-startup, fixed a warning in the flash driver and added the S-record for the demo bootloader.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@814 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2020-11-25 11:28:05 +00:00
parent c91c5bfe59
commit 7c5eac6910
6 changed files with 1288 additions and 9 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1123,7 +1123,7 @@
<Group>
<GroupName>App</GroupName>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
@ -1275,7 +1275,7 @@
<Group>
<GroupName>Core</GroupName>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>

View File

@ -80,9 +80,9 @@
<nStopB2X>0</nStopB2X>
</BeforeMake>
<AfterMake>
<RunUserProg1>0</RunUserProg1>
<RunUserProg1>1</RunUserProg1>
<RunUserProg2>0</RunUserProg2>
<UserProg1Name></UserProg1Name>
<UserProg1Name>fromelf --m32 --output=..\bin\openblt_stm32f746.srec ..\bin\openblt_stm32f746.axf</UserProg1Name>
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>

View File

@ -67,6 +67,7 @@ __heap_limit
; Vector Table Mapped to Address 0 at Reset
AREA RESET, DATA, READONLY
IMPORT SysTick_Handler
EXPORT __Vectors
EXPORT __Vectors_End
EXPORT __Vectors_Size
@ -244,10 +245,6 @@ PendSV_Handler PROC
EXPORT PendSV_Handler [WEAK]
B .
ENDP
SysTick_Handler PROC
EXPORT SysTick_Handler [WEAK]
B .
ENDP
Default_Handler PROC

View File

@ -758,7 +758,7 @@ static blt_bool FlashWriteBlock(tFlashBlockInfo *block)
/* compare the byte value located in flash with the one that was supposed to
* be programmed there
*/
if (((volatile blt_int8u *)prog_addr)[byte_idx] != prog_data[byte_idx])
if (((blt_int8u *)prog_addr)[byte_idx] != prog_data[byte_idx])
{
/* byte value in flash is not as expected, so a programming error must have
* happened