CMSISv1p30_LPC13xx cannot be build in LPCXpresso IDE ver.7

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CMSISv1p30_LPC13xx cannot be build in LPCXpresso IDE ver.7

1,386 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by okano on Tue Feb 25 19:40:20 MST 2014
A library "CMSISv1p30_LPC13xx" cannot be build on LPCXpresso ver.7.
It shows error message like below.
Any suggestion to fix this?

11:36:35 **** Build of configuration Debug for project CMSISv1p30_LPC13xx ****
make all
Building file: ../src/core_cm3.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__REDLIB__ -I"/Users/tedd/Documents/LPCXpresso_7.0.0/workspace/CMSISv1p30_LPC13xx/inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/core_cm3.d" -MT"src/core_cm3.d" -o "src/core_cm3.o" "../src/core_cm3.c"
/var/folders/q0/zbz1k45n2nd_glxn8d0_gl580000gq/T//ccjj72lU.s: Assembler messages:
/var/folders/q0/zbz1k45n2nd_glxn8d0_gl580000gq/T//ccjj72lU.s:772: Error: registers may not be the same -- `strexb r3,r2,[r3]'
/var/folders/q0/zbz1k45n2nd_glxn8d0_gl580000gq/T//ccjj72lU.s:818: Error: registers may not be the same -- `strexh r3,r2,[r3]'
make: *** [src/core_cm3.o] Error 1

11:36:35 Build Finished (took 109ms)
Labels (1)
0 Kudos
Reply
5 Replies

1,257 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jagibu on Tue Jun 07 11:13:07 MST 2016

Quote: LabRat

Just add a '[color=#f00]&[/color]' in core_cm3.c



Thank You - it works !
0 Kudos
Reply

1,257 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by alex_cds on Mon Oct 26 04:51:07 MST 2015
thanks a lot!! It worked...
0 Kudos
Reply

1,257 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by surendra22feb on Thu Mar 27 00:02:56 MST 2014
Thank You so much for the solution it works :)
0 Kudos
Reply

1,257 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by okano on Wed Feb 26 00:59:33 MST 2014
Thank you!
It works file.
0 Kudos
Reply

1,257 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Tue Feb 25 20:23:07 MST 2014

Quote: okano
Any suggestion to fix this?



Just add a '[color=#f00]&[/color]' in core_cm3.c:
/**
 * @brief  STR Exclusive (8 bit)
 *
 * @param  value  value to store
 * @param  *addr  address pointer
 * @return        successful / failed
 *
 * Exclusive STR command for 8 bit values
 */
uint32_t __STREXB(uint8_t value, uint8_t *addr)
{
   uint32_t result=0;
  
   __ASM volatile ("strexb %0, %2, [%1]" : "=[color=#f00]&[/color]r" (result) : "r" (addr), "r" (value) );
   return(result);
}

/**
 * @brief  STR Exclusive (16 bit)
 *
 * @param  value  value to store
 * @param  *addr  address pointer
 * @return        successful / failed
 *
 * Exclusive STR command for 16 bit values
 */
uint32_t __STREXH(uint16_t value, uint16_t *addr)
{
   uint32_t result=0;
  
   __ASM volatile ("strexh %0, %2, [%1]" : "=[color=#f00]&[/color]r" (result) : "r" (addr), "r" (value) );
   return(result);
}
0 Kudos
Reply