periph_dma_rom_uart Example Fail

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

periph_dma_rom_uart Example Fail

1,396 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by craven on Sun Dec 14 22:34:33 MST 2014
Hello

I'm Raven

I'm sorry. I speak English a little

I tested example source with periph_dma_rom_uart

But I'm faced with a Problem that Jump HardFault_Handler

I need to solution this problem

I used LPCXpresso

I attach Debug View

Thank you.

----View Debug -----------------------------------------
periph_dma_rom_uart Debug [C/C++ (NXP Semiconductors) MCU Application]
periph_dma_rom_uart.axf
Thread [1] <main> (Suspended : Signal : SIGSTOP:Stopped (signal))
HardFault_Handler() at cr_startup_lpc15xx.c:445 0x234
<signal handler called>() at 0xfffffff9
0x3006cda
dmaTXSend() at dma_rom_uart.c:236 0x678
gdb
--------------------------------------------------------------
Labels (1)
0 Kudos
Reply
2 Replies

1,371 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by craven on Mon Dec 15 00:44:32 MST 2014
Thank you for your help!
0 Kudos
Reply

1,371 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Dec 15 00:04:45 MST 2014
If you get a warning:


Quote:
Building file: ../example/src/dma_rom_uart.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M3 -I"D:\nxp\workLPCOpen15_orig\lpc_chip_15xx\inc" -I"D:\nxp\workLPCOpen15_orig\lpc_board_nxp_lpcxpresso_1549\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -specs=redlib.specs -MMD -MP -MF"example/src/dma_rom_uart.d" -MT"example/src/dma_rom_uart.o" -MT"example/src/dma_rom_uart.d" -o "example/src/dma_rom_uart.o" "../example/src/dma_rom_uart.c"
../example/src/dma_rom_uart.c:82:1: warning: empty declaration [enabled by default]
[color=#f00] static uint8_t dma_ram_block[RAMBLOCK]; __attribute__ ((aligned(512)));[/color]


Change:


#if defined( __GNUC__ )
/* GNU alignment to 512 bytes */
static uint8_t dma_ram_block[RAMBLOCK][color=#f00]; [/color]__attribute__ ((aligned(512)));
#endif /* defined (__GNUC__) */

to:
#if defined( __GNUC__ )
/* GNU alignment to 512 bytes */
static uint8_t dma_ram_block[RAMBLOCK] __attribute__ ((aligned(512)));
#endif /* defined (__GNUC__) */

0 Kudos
Reply