Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    INFO | XDK DEVICE 1: HardFault_Occured_going to reset the processor

    Highlighted
    Member

    INFO | XDK DEVICE 1: HardFault_Occured_going to reset the processor

    Hi all,

    I am running this code https://github.com/iot2tangle/XDK110-Bosch.git.

    But the following error code comes back.

    DanEvers_0-1602421150002.png

    Afterwards it tries again and again with no success. 

    Thanks all!

     

    5 REPLIES 5
    Highlighted
    New Contributor

    Re: INFO | XDK DEVICE 1: HardFault_Occured_going to reset the processor

    Hello DanEvers

    There are 2 applications in https://github.com/iot2tangle/XDK110-Bosch.git link you have shared.

    In which application are you getting "HardFault_Occured_going to reset the processor" Error?

    Highlighted
    Member

    Re: INFO | XDK DEVICE 1: HardFault_Occured_going to reset the processor

    Hi Mahalingam,

    thanks for your reply and sorry for missing out on that info. I am refering to this one:

    https://github.com/iot2tangle/XDK110-Bosch/tree/master/http-sdcard

    Thanks,

    Daniel 

    Highlighted
    New Contributor

    Re: INFO | XDK DEVICE 1: HardFault_Occured_going to reset the processor

    Hello DanEvers

    I have downloaded http-sdcard application from https://github.com/iot2tangle/XDK110-Bosch/tree/master/http-sdcard link

    Imported http-sdcard application in Workbench. I have modified the source code according to my network settings. Compiled the http-sdcard application and Flashed the http-sdcard application into XDK device.

    Sensor payload was constructed and sent successfully. I didn't get "INFO | XDK DEVICE 1: HardFault_Occured_going to reset the processor" message in console.

    Please find the console log below,

     

     

     

     INFO | Connection to port 'COM12' established
     INFO | XDK DEVICE 1: This is a CC3100R device
     INFO | XDK DEVICE 1: CHIP 0x4000000
     INFO | XDK DEVICE 1: MAC 31.1.5.0.2
     INFO | XDK DEVICE 1: PHY 1.0.3.37
     INFO | XDK DEVICE 1: NWP 2.11.0.1
     INFO | XDK DEVICE 1: ROM 0x3333
     INFO | XDK DEVICE 1: HOST 1.0.1.11
     INFO | XDK DEVICE 1: Connected to WPA network successfully
     INFO | XDK DEVICE 1: IP address of device  192.168.178.115
     INFO | XDK DEVICE 1:               Mask    255.255.255.0
     INFO | XDK DEVICE 1:               Gateway 192.168.178.1
     INFO | XDK DEVICE 1:               DNS     192.168.178.1
     INFO | XDK DEVICE 1: WLANPersonalWPA2Connect : Connected to WPA network successfully. 
     INFO | XDK DEVICE 1: Connecting to "tek-wifi2 
     INFO | XDK DEVICE 1:  NTP request Sending Complete
     INFO | XDK DEVICE 1: Environmental Sensor initialization Success
     INFO | XDK DEVICE 1: Accelerometer Sensor initialization Success
     INFO | XDK DEVICE 1: Gyroscope Sensor initialization Success
     INFO | XDK DEVICE 1: Inertial Sensor initialization Success
     INFO | XDK DEVICE 1: Light Sensor initialization Success
     INFO | XDK DEVICE 1: Magnetometer Sensor initialization Success
     INFO | XDK DEVICE 1: Acoustic Sensor initialization Success
     INFO | XDK DEVICE 1: Connected to network. First HTTP request will be made soon.
     INFO | XDK DEVICE 1: NTP got UTC secSince1970: 1602850415
     INFO | XDK DEVICE 1: --{"iot2tangle":[{"sensor": "Environmental","data":[{"Pressure":"95387"},{"Temp":"35470"},{"Humidity":"48"}]},{"sensor":"Accel","data":[{"x":"-3"},{"y":"-88"},{"z":"1036"}]},{"sensor":"Gyroscope","data":[{"x":"-4270"},{"y":"-4880"},{"z":"-4392"}]},{"sensor":"Inertial","data":[{"x":"-854"},{"y":"244"},{"z":"-854"}]},{"sensor":"Light","data":[{"milliLux":"15030"}]},{"sensor":"Magnetometer","data":[{"x":"63"},{"y":"28"},{"z":"15"}]},{"sensor":"Acoustic","data":[{"mp":"0.003309"}]} ],"device": "XDK-HTT","timestamp": "1602850418"}
     INFO | XDK DEVICE 1: HttpRestClientRequestSentCallback: HTTP request sent successfully.
     INFO | XDK DEVICE 1: HttpRestClientPostResponseCallback: received HTTP status other than 200 OK. status=404
     INFO | XDK DEVICE 1: HttpRestClientPostResponseCallback: HTTP rest client POST was successful.

     

     

     

     I have also attached the code changes for your reference.

    I have downloaded application from the link shared. I did not change anything in the source code, other than the network configurations. It worked without any problem.

    Highlighted
    Member

    Re: INFO | XDK DEVICE 1: HardFault_Occured_going to reset the processor

    Hi Mahalingam,

    thanks again for your reply and support. 

    I've used the changes you recommended and hardcoded them into the .c file lines 507 and 509 for my wifi credentials. Flashing the device and connecting to my Wifi works but still receive the same error after the sensors are initialized. 

    I am using a XDK Workbench 3.6.1 on a latest MacOS Catalina, hence I think it might be an issue related to the IDE on a MacBook environment. Either that or the XDK is somehow damaged. 

    Thanks,
    Daniel

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist