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

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

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

298 Views
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?
Labels (1)
0 Kudos
1 Reply

265 Views
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 Kudos