Calling USB ROM API functions from internal SRAM raise Hard Fault exception

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Calling USB ROM API functions from internal SRAM raise Hard Fault exception

751 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Harvester on Wed Oct 07 14:17:41 MST 2015
Hello.
I need to write the code used USB ROM API functions, which will be executed from internal SRAM.
I had try to run some usbd_rom examples (ie, cdc_vcom) from internal SRAM.
I had define new Target, set IROM1: 0x10000000...0x10008000 and IRAM2: 0x20000000...0x20010000, select "lpc18xx_43xx_debug_iram.ini" initialization file. An application starts but durin executing USBD_API->hw->Init() function Hard Fault exception is rised .
What I must do to solve this problem?
标签 (1)
0 项奖励
回复
1 回复

718 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Harvester on Fri Oct 09 02:23:57 MST 2015
I'm sorry, it's my mistake. I didn't change base address for USB stack buffer (0x200000000).
0 项奖励
回复