This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRFgo Studio: File generation error

I am trying to generate the services.h file and get an error that "Something was wrong with the advertising packet". I see at the end of the log it says "Return code: 0x2". I have tried making a number of changes with the same result. Is there somewhere that I can see the meaning of the different return codes. Here is the complete log in case it helps:

Generating code Calling init with format code set to:0x3 Security set to: 0x0 Init called with apperance:0000 Init called with with clocksource: 0x1 Clock accuracy: 0x1 16MHz clock bypass setting set to 0x0 Init called with dcdc converter enable set to 0x0 Init called with devicenamewritelength 0x0 gap_set_device_name name: nordicshort length: 0x6length: 0x6 ublue_setup_sec_set_params called with: auth_req: 0x0 io caps: 0x0 oob: 0x0 minimum size: 0x7 maximum key size: 0x10 bond timeout: 0x258 security request delay: 0xa Disabeling window limiting ublue_setup_hw_set_window_limit called with: limit set to: 0xff auto off counter set to: 0xff dropedPacketThreshold set to: 0xff hw_set_active_signal called with mode: 0x0 and distaceToTick: 0x0 hw_ad_set_tx_power called with inital power: 3 and gain set to: 0 ublue_setup_gap_set_ppcp called with inital minimum: 0x6 maximum 0x6 slave latency: 0x0 timeout multiplier: 0xffff Printout of table passed to ublue_setup_assign_vs_uuids Nr: 0: 0x9e 0xca 0xdc 0x24 0xe 0xe5 0xa9 0xe0 0x93 0xf3 0xa3 0xb5 0x0 0x0 0x40 0x6e Adding primary service with UUID: 0x1 base index: 0x2 and with location set to: 0x1 Adding characteristic with uuid: 0x2base: 0x2 maxdatalength: 20 attribute_len_type:0x2 description format code: 0x0 exponent: 0x0 unit: 0x0 namespace: 0x0 descriptor: 0x0 size of default value: 0 default value: forceToOpen 0x0 forceEncryption 0x0 Defining pipe with id: 0x1 UUID: 0002 Pipe type: 0x80 Security setting: 0x0 Adding characteristic with uuid: 0x3base: 0x2 maxdatalength: 20 attribute_len_type:0x2 description format code: 0x0 exponent: 0x0 unit: 0x0 namespace: 0x0 descriptor: 0x0 size of default value: 0 default value: forceToOpen 0x0 forceEncryption 0x0 Adding characteristic with uuid: 0x5base: 0x2 maxdatalength: 6 attribute_len_type:0x1 description format code: 0x0 exponent: 0x0 unit: 0x0 namespace: 0x0 descriptor: 0x0 size of default value: 6 default value: FFFFFFFFFFFF forceToOpen 0x0 forceEncryption 0x0 Adding characteristic with uuid: 0x4base: 0x2 maxdatalength: 9 attribute_len_type:0x2 description format code: 0x0 exponent: 0x0 unit: 0x0 namespace: 0x0 descriptor: 0x0 size of default value: 0 default value: forceToOpen 0x0 forceEncryption 0x0 Calling ublue_setup_ad_select_custom_fields with gmfields: 0x0scan response 0x0 bonded: 0x0scan response 0x0 brodcast: 0x0scan response 0x0 ublue_setup_ad_set_svcuuids: Number of local: 0 local uuids: Number of remote: 0 remote uuids: Calling: ublue_setup_set_timing_change_delay with value 0x5 Calling ublue_setup_ad_select_fields with gmfields: 0x1060scan response 0x20 bonded: 0x0scan response 0x0 brodcast: 0x1060scan response 0x120 ublue_setup_ad_select_fields failed, gmfeilds is now: 0x60bonded fields is now: 0x0 Return code: 0x2

Thanks,

Hello,

Thanks for the quick response. Since I posted I found a basic example XML file and started adding things to it one by one. It continued to work even after adding most of the the same things in my previous version. I am not sure what made the difference but I have gotten it to work.Neptune1_errors.xml I had previously tried changing many things with no luck. I am attaching one version of the XML file.

Parents Reply Children
No Data
Related