DA14581

could not run DSPS

星期四, 2015-06-04 00:53--wangluyi1982

Hello support team,

I am running DSPS example, version 3.150.2, on my 14581 pro dev kits. The program went to hardfault handler and stopped there when opening a debug session.
I am able to run the UART example on this board.

I am using Keil v5. I have set up J5 according to section 8.1 UM-B-038. sleep mode is disabled in da14580_config.h.

Could you help?

Bug in arch_main.c

Fri, 2015-05-22 13:56--Joacimwe

有一个在arch_main.c bug

The cs_table is currently declared as an uint8_t array and therefore has alignment 1. However, during the booting there are store instructions that stores 16-bit data into this buffer.
I happen to have variables in my app that makes the cs_table getting an odd address when I look at the .map file. Then the hardfault handler gets executed during the booting.

After I change __attribute__((section("cs_area"), zero_init)) to __attribute__((section("cs_area"), zero_init, aligned(2))), it works good again.

Pages

Subscribe to RSS - DA14581